Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10336 in orxonox.OLD for branches/gui/src/lib/gui/gl/glgui_widget.cc


Ignore:
Timestamp:
Jan 24, 2007, 4:47:34 PM (17 years ago)
Author:
hejja
Message:

Versuch State fuer die buttons einzubauen..

File:
1 edited

Legend:

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

    r10273 r10336  
    565565  }
    566566
     567 
     568 
     569 
     570 
     571 
    567572  /**
    568573  * @brief sets the Background Texture to all States.
     
    579584  }
    580585
     586  void GLGuiWidget::setBackgroundTexture(const std::string& textureName, OrxGui::State state)
     587  {
     588    _style[state]._background.setDiffuseMap(textureName);
     589    _style[state]._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0));
     590
     591    if (state == _state) {
     592      _currentStyle._background.setDiffuseMap(textureName);
     593      _currentStyle._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0));
     594    }
     595  }
     596 
     597 
     598 
     599 
    581600  /**
    582601   * @brief sets the Background Texture.
Note: See TracChangeset for help on using the changeset viewer.