Changeset 8448 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_pushbutton.cc
- Timestamp:
- Jun 15, 2006, 12:48:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_pushbutton.cc
r8145 r8448 45 45 void GLGuiPushButton::resize() 46 46 { 47 this->labelText().setRelCoor2D(borderLeft() + 5, borderTop() + 5);48 this->setSize2D(this->labelText().getSizeX2D() + 10 + borderLeft()+borderRight(), this->labelText().getSizeY2D() + 10+ borderTop() + borderBottom() );47 this->labelText().setRelCoor2D(borderLeft(), borderTop()); 48 this->setSize2D(this->labelText().getSizeX2D() + borderLeft() + borderRight(), this->labelText().getSizeY2D() + borderTop() + borderBottom() ); 49 49 50 50 GLGuiWidget::resize(); 51 this->frontRect().setTopLeft(borderLeft(), borderTop());52 this->frontRect().setSize(this->getSizeX2D() - (borderLeft() + borderRight()), this->getSizeY2D() - (borderTop() + borderBottom())); 51 /* this->frontRect().setTopLeft(borderLeft(), borderTop()); 52 this->frontRect().setSize(this->getSizeX2D() - (borderLeft() + borderRight()), this->getSizeY2D() - (borderTop() + borderBottom()));*/ 53 53 } 54 54 … … 97 97 GLGuiButton::draw(); 98 98 99 this->frontMaterial().select();100 this->drawRect(this->frontRect());101 99 this->endDraw(); 102 // this->label->draw();103 // printf("test");104 100 } 105 101
Note: See TracChangeset
for help on using the changeset viewer.