Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5074 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Aug 19, 2005, 1:52:25 AM (19 years ago)
Author:
bensch
Message:

Shell: the shell outputs one Line now :)

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell.cc

    r5073 r5074  
    3535  this->buffer = new tList<char>;
    3636
     37  //this->bufferSize = 0;
     38  //this->bufferDisplaySize = 0;
    3739  this->setBufferSize(100);
    3840  this->setBufferDisplaySize(5);
    39 }
    40 
     41
     42
     43  this->addBufferLine("asjflksjdvklasmv", NULL);
     44  TextEngine::getInstance()->debug();
     45  //exit(-1);
     46}
    4147
    4248Shell* Shell::singletonRef = NULL;
     
    5258}
    5359
     60/**
     61 * sets The count of Lines to display in the buffer.
     62 * @param bufferDisplaySize the count of lines to display in the Shell-Buffer.
     63 */
    5464void Shell::setBufferDisplaySize(unsigned int bufferDisplaySize)
    5565{
     
    6474  {
    6575    Text* newText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
     76    newText->setAlignment(TEXT_ALIGN_LEFT);
     77    newText->setPosition2D(5, 5);
     78    newText->setText("");
    6679    this->bufferText->add(newText);
    6780    // add the Text here
     
    115128  strcpy(newLine, tmp);
    116129
    117   this->buffer->add(newLine);
     130  this->buffer->addAtBeginning(newLine);
    118131
    119132  if (this->buffer->getSize() > this->bufferSize)
     
    123136  }
    124137
     138  this->bufferText->firstElement()->setText(newLine);
    125139
    126140}
     
    230244 * @param dt the elapsed time since the last tick();
    231245 */
    232 void Shell::tick(float dt)
    233 {
    234 }
     246//void Shell::tick(float dt)
     247//{
     248//}
    235249
    236250/**
  • trunk/src/util/shell.h

    r5072 r5074  
    5959
    6060    // Element2D-functions
    61     void tick(float dt);
     61//    void tick(float dt);
    6262    virtual void draw() const;
    6363
Note: See TracChangeset for help on using the changeset viewer.