Changeset 7891 in orxonox.OLD for branches/gui/src
- Timestamp:
- May 27, 2006, 3:23:27 AM (19 years ago)
- Location:
- branches/gui/src/lib/gui/gl_gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_cursor.cc
r7885 r7891 61 61 this->setAbsCoor2D(100, 100); 62 62 this->setLayer(E2D_LAYER_ABOVE_ALL); 63 this->color = 0.0f; 63 64 64 65 } … … 66 67 void GLGuiCursor::tick(float dt) 67 68 { 68 Vector color; 69 this->backMaterial().getDiffuseColor(color.x, color.y, color.z); 70 color = Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(80.0*dt,0.0,.0)); 69 this->color += dt*10.0; 70 if (this->color > 360.0) 71 this->color -= 360.0; 72 Vector color = Color::HSVtoRGB(Vector(this->color, 1.0, 1.0)); 71 73 this->backMaterial().setDiffuse(color.x, color.y, color.z); 72 74 -
branches/gui/src/lib/gui/gl_gui/glgui_cursor.h
r7876 r7891 42 42 Vector2D movement; 43 43 44 float color; // so f****ing temporary... ... .... 45 44 46 static float _mouseSensitivity; 45 47 -
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7890 r7891 54 54 printf("%s received focus\n", this->getLabel().c_str()); 55 55 this->frontMaterial().setDiffuse(0, 1, 0); 56 } 56 57 57 58 Vector test;59 this->frontMaterial().getDiffuseColor(test.x, test.y, test.z);60 test.debug();61 }62 58 void GLGuiPushButton::removedFocus() 63 59 {
Note: See TracChangeset
for help on using the changeset viewer.