Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8608 in orxonox.OLD for branches


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

animateback works

File:
1 edited

Legend:

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

    r8607 r8608  
    116116    this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE);
    117117
     118    this->setBorderLeft(15);
    118119    this->setBackgroundTexture("gui_element_background.png");
    119120
     
    166167  void GLGuiWidget::setFrontColor(const Color& frontColor, bool instantaniously)
    167168  {
    168 /*    if (instantaniously)
    169     {
    170       this->setForegroundColor(frontColor);
    171       if (this->_toFrontColor != NULL)
    172       {
    173         delete this->_toFrontColor;
    174         this->_toFrontColor = NULL;
    175       }
    176     }
    177     else if (!this->_toFrontColor)
    178       this->_toFrontColor = new Color(frontColor);
    179     else
    180       *this->_toFrontColor = frontColor;
    181     //this->_frontColor = frontColor;
    182     //this->updateFrontColor();*/
     169    this->_currentStyle._foreground.setDiffuseColor(frontColor);
     170    this->animateBack();
    183171  };
    184172
Note: See TracChangeset for help on using the changeset viewer.