Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8627 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 20, 2006, 2:02:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/gui: text is positioned

Location:
branches/gui/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/glgui_table.cc

    r8626 r8627  
    224224  {
    225225    float columnPos = 0.0f;
     226    float rowPos;
    226227    unsigned int i, j;
    227228    for (i = 0; i< fromLeft; ++i)
     
    234235      this->_headers[i].setRelCoor2D(columnPos, 0);
    235236
     237      // not required, but a good idea :)
     238      this->_headers[i].setLineWidth(_columnWidths[i]);
     239
     240      rowPos = 10.0f;
    236241      for (j = fromTop; j < this->rowCount(); ++j)
    237242      {
    238 
     243        this->_entries[j][i].setRelCoor2D(columnPos, rowPos);
     244        this->_entries[j][i].setLineWidth(_columnWidths[i]);
     245        rowPos += 10.0f;
    239246      }
    240247      columnPos+=this->_columnWidths[i];
  • branches/gui/src/story_entities/simple_game_menu.cc

    r8619 r8627  
    131131    headers.push_back("3");
    132132    table->setHeader(headers);
     133    table->setEntry(1, 2, "Test");
     134    table->setEntry(2, 1, "MultiLine SuperTest to see how it works");
    133135
    134136
Note: See TracChangeset for help on using the changeset viewer.