Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8469 in orxonox.OLD for branches/gui


Ignore:
Timestamp:
Jun 15, 2006, 2:59:17 PM (18 years ago)
Author:
bensch
Message:

orxonox/gui: more style-stuff

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

Legend:

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

    r8460 r8469  
    2929  GLGuiStyle::GLGuiStyle (const TiXmlElement* root)
    3030  {
     31    _font = NULL;
     32
     33
    3134    if (root != NULL)
    3235      this->loadParams(root);
     
    4346  }
    4447
     48  void GLGuiStyle::reset()
     49  {
     50    this->setBorderLeft(1.0);
     51    this->setBorderRight(1.0);
     52    this->setBorderTop(1.0);
     53    this->setBorderBottom(1.0);
     54
     55    this->setTextSize(20.0);
     56    this->setBackgroundColor(1.0);
     57    this->setForegroundColor(1.0);
     58
     59    this->setFeaturePosition(FeatureLeft);
     60    this->setFont(NULL);
     61
     62    this->setAnimated(true);
     63    this->setAnimatedStateChanges(true);
     64  }
     65
    4566  void GLGuiStyle::loadParams(const TiXmlElement* root)
    4667  {
     
    196217  }
    197218
    198   void GLGuiStyle::animatedStateChanges(bool animated)
     219  void GLGuiStyle::setAnimatedStateChanges(bool animated)
    199220  {
    200221    this->_animatedStateChanges = animated;
  • branches/gui/src/lib/gui/gl/glgui_style.h

    r8448 r8469  
    4343
    4444    /// SETUP
     45    void reset();
    4546    void loadParams(const TiXmlElement* root);
    4647
     
    8586
    8687    void setAnimated(bool animated);
    87     void animatedStateChanges(bool animated);
     88    void setAnimatedStateChanges(bool animated);
    8889
    8990  private:
Note: See TracChangeset for help on using the changeset viewer.