Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 21, 2005, 8:17:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: rebuild Element2D. Now it is more like PNode

File:
1 edited

Legend:

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

    r5083 r5089  
    4646  this->inputLineText = TextEngine::getInstance()->createText("fonts/earth.ttf", 10, TEXT_DYNAMIC, 255, 0, 0);
    4747  this->inputLineText->setText(NULL);
    48 
    49   //this->addBufferLineStatic("asjflksjdvklasmv %s", "doom");
    50   //TextEngine::getInstance()->debug();
    51   //exit(-1);
    5248}
    5349
     
    6561  delete this->inputLineText;
    6662
     63
    6764  Shell::singletonRef = NULL;
    6865}
     
    8683    this->bufferText[i] = TextEngine::getInstance()->createText("fonts/earth.ttf", this->textSize, TEXT_DYNAMIC, 255, 0, 0);
    8784    this->bufferText[i]->setAlignment(TEXT_ALIGN_LEFT);
    88     this->bufferText[i]->setPosition2D(5, 400 + 12*i);
     85    this->bufferText[i]->setRelCoor2D(5, 400 + 12*i);
    8986    this->bufferText[i]->setText(NULL);
     87    this->bufferText[i]->setParent2D(this);
    9088  }
    9189
     
    132130  va_start(arguments, line);
    133131
     132#if DEBUG > 3
    134133  if (Shell::singletonRef == NULL)
    135    vprintf(line, arguments);
     134#endif
     135
     136  vprintf(line, arguments);
     137#if DEBUG > 3
    136138  else
     139#endif
    137140    Shell::singletonRef->addBufferLine(line, arguments);
    138141  return true;
Note: See TracChangeset for help on using the changeset viewer.