Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8425 in orxonox.OLD for branches/gui/src/lib


Ignore:
Timestamp:
Jun 15, 2006, 12:04:42 AM (18 years ago)
Author:
bensch
Message:

nicer updates

Location:
branches/gui/src/lib/gui/gl
Files:
3 edited

Legend:

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

    r8424 r8425  
    163163  void GLGuiInputLine::resize()
    164164  {
    165     this->_text.setRelCoor2D(this->borderLeft() + 2.0, this->borderTop() + 2.0);
    166     this->setSize2D( this->_text.getSize2D() + Vector2D(borderLeft() + borderRight() + 4.0, borderTop() + borderBottom() + 4.0));
     165    this->_text.setRelCoor2D(this->borderLeft(), this->borderTop());
     166    this->setSize2D( this->_text.getSize2D() + Vector2D(borderLeft() + borderRight(), borderTop() + borderBottom()));
    167167    GLGuiWidget::resize();
    168168/*    this->frontRect().setTopLeft(borderLeft(), borderTop());
  • branches/gui/src/lib/gui/gl/glgui_pushbutton.cc

    r8378 r8425  
    4545  void GLGuiPushButton::resize()
    4646  {
    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() );
    4949
    5050    GLGuiWidget::resize();
     
    9898
    9999    this->endDraw();
    100     //   this->label->draw();
    101     //  printf("test");
    102100  }
    103101
  • branches/gui/src/lib/gui/gl/glgui_widget.cc

    r8424 r8425  
    7070    this->_frontColor.setColor(1.0, 0.0, 0.0);
    7171
    72     this->_borderLeft = 10.0;
     72    this->_borderLeft = 15.0;
    7373    this->_borderRight = 1.0;
    7474    this->_borderTop = 1.0;
Note: See TracChangeset for help on using the changeset viewer.