Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8606 in orxonox.OLD


Ignore:
Timestamp:
Jun 20, 2006, 10:08:39 AM (18 years ago)
Author:
bensch
Message:

gui: almost the same functionality

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

Legend:

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

    r8605 r8606  
    5757    this->setClassID(CL_GLGUI_CURSOR, "GLGuiCursor");
    5858
    59     this->setBackgroundColor(Color(1.0,0.0,0.0, 1.0));
     59    this->setBackgroundColor(Color(1.0, 1.0, 1.0, 1.0));
    6060    this->setBackgroundTexture("cursor.png");
    6161    this->setSize2D(50, 50);
  • branches/gui/src/lib/gui/gl/glgui_widget.cc

    r8605 r8606  
    103103
    104104
    105     this->setBackgroundColor(Color(0, 0, 0, 1));
     105    this->setBackgroundColor(Color(.51, 0, 0, .5));
    106106    this->_style[0]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    107107    this->_style[1]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     
    117117
    118118    this->setBackgroundTexture("gui_element_background.png");
    119     this->switchState(OrxGui::Normal);
     119
     120    this->switchState(_state);
     121    this->_currentStyle = this->_style[_state];
    120122  }
    121123
Note: See TracChangeset for help on using the changeset viewer.