Changeset 7875 in orxonox.OLD for branches/gui/src/lib
- Timestamp:
- May 26, 2006, 3:56:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_button.cc
r7874 r7875 29 29 { 30 30 this->init(); 31 31 32 this->setLabel(label); 32 33 this->label.setFont("fonts/final_frontier.ttf", 100);34 this->label.setSize(10);35 this->label.setText("TEST");36 33 } 37 34 … … 62 59 this->label.setText(label); 63 60 this->label.setRelCoor2D(5, 5); 64 printf("SIZE OF TEXT %s %f\n", label.c_str(), this->label.getSizeX2D()); 65 this->setSize2D(this->label.getSizeX2D(), this->label.getSizeY2D()+10); 66 printf("SIZE OF BUTTON %f\n", this->getSizeX2D()); 61 this->setSize2D(this->label.getSizeX2D() + 10, this->label.getSizeY2D() + 10); 67 62 68 63 }
Note: See TracChangeset
for help on using the changeset viewer.