Changeset 7896 in orxonox.OLD for branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
- Timestamp:
- May 27, 2006, 5:41:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7891 r7896 47 47 { 48 48 this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton"); 49 this->frontMat.setDiffuse(1,0,0);50 49 } 51 50 … … 53 52 { 54 53 printf("%s received focus\n", this->getLabel().c_str()); 55 this->frontMaterial().setDiffuse(0, 1, 0);54 GLGuiWidget::receivedFocus(); 56 55 } 57 56 … … 59 58 { 60 59 printf("%s removed focus\n", this->getLabel().c_str()); 61 this->frontMaterial().setDiffuse(1, 0, 0);60 GLGuiWidget::removedFocus(); 62 61 63 62 } … … 66 65 { 67 66 printf("%s clicked\n", this->getLabel().c_str()); 68 this->frontMaterial().setDiffuse(0, 0, 1);67 GLGuiWidget::clicked(); 69 68 } 70 69 … … 73 72 { 74 73 printf("%s released\n", this->getLabel().c_str()); 75 this->frontMat.setDiffuse(0,1,0);74 GLGuiWidget::released(); 76 75 } 77 76
Note: See TracChangeset
for help on using the changeset viewer.