Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7891 in orxonox.OLD for branches/gui


Ignore:
Timestamp:
May 27, 2006, 3:23:27 AM (18 years ago)
Author:
bensch
Message:

gui: coloring of the Cursor ok

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  
    6161    this->setAbsCoor2D(100, 100);
    6262    this->setLayer(E2D_LAYER_ABOVE_ALL);
     63    this->color = 0.0f;
    6364
    6465  }
     
    6667  void GLGuiCursor::tick(float dt)
    6768  {
    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));
    7173    this->backMaterial().setDiffuse(color.x, color.y, color.z);
    7274
  • branches/gui/src/lib/gui/gl_gui/glgui_cursor.h

    r7876 r7891  
    4242    Vector2D      movement;
    4343
     44    float         color; // so f****ing temporary... ... ....
     45
    4446    static float _mouseSensitivity;
    4547
  • branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r7890 r7891  
    5454    printf("%s received focus\n", this->getLabel().c_str());
    5555    this->frontMaterial().setDiffuse(0, 1, 0);
     56  }
    5657
    57 
    58     Vector test;
    59     this->frontMaterial().getDiffuseColor(test.x, test.y, test.z);
    60     test.debug();
    61   }
    6258  void GLGuiPushButton::removedFocus()
    6359  {
Note: See TracChangeset for help on using the changeset viewer.