Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8419 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_button.cc


Ignore:
Timestamp:
Jun 14, 2006, 11:07:48 PM (18 years ago)
Author:
bensch
Message:

Better coloring sceme

File:
1 edited

Legend:

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

    r8378 r8419  
    5555
    5656    this->_label.setFont("fonts/final_frontier.ttf", 20);
    57     this->frontColor().setColor(1, 0, 0, 1.0);
     57    this->setFrontColor(Color(1, 0, 0, 1.0));
    5858
    5959    this->_label.setParent2D(this);
     
    6969
    7070
     71  void GLGuiButton::updateFrontColor()
     72  {
     73    this->_label.setColor(this->frontColor());
     74    printf("TEST Color is "); this->frontColor().debug();
     75  }
    7176
    7277  void GLGuiButton::clicking(const Vector2D& pos)
    7378  {
     79    GLGuiWidget::clicking(pos);
    7480    emit(clicked());
    7581  }
    7682  void GLGuiButton::releasing(const Vector2D& pos)
    7783  {
     84    GLGuiWidget::releasing(pos);
    7885    emit(released());
    7986  }
Note: See TracChangeset for help on using the changeset viewer.