Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8607 in orxonox.OLD


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

orxonox/gui: looks like before now, but way cooler :)

File:
1 edited

Legend:

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

    r8606 r8607  
    317317  {
    318318    _style[state]._borderLeft = value;
     319    if (state == _state)
     320      _currentStyle._borderLeft = value;
    319321  }
    320322
     
    351353  {
    352354    _style[state]._borderRight = value;
     355    if (state == _state)
     356      _currentStyle._borderRight = value;
    353357  }
    354358
     
    386390  {
    387391    _style[state]._borderTop = value;
     392    if (state == _state)
     393      _currentStyle._borderTop = value;
    388394  }
    389395
     
    421427  {
    422428    _style[state]._borderBottom = value;
     429    if (state == _state)
     430      _currentStyle._borderBottom = value;
     431
    423432  }
    424433
     
    456465  {
    457466    _style[state]._textSize = value;
     467    if (state == _state)
     468      _currentStyle._textSize = value;
    458469  }
    459470
     
    491502  {
    492503    _style[state]._background.setDiffuseColor(color);
     504    if (state == _state)
     505      _currentStyle._background.setDiffuseColor(color);
     506
    493507  }
    494508
     
    539553  {
    540554    _style[state]._background.setDiffuseMap(texture);
     555    if (state == _state)
     556      _currentStyle._background.setDiffuseMap(texture);
    541557  }
    542558
     
    576592  {
    577593    _style[state]._foreground.setDiffuseColor(color);
     594    if (state == _state)
     595      _currentStyle._foreground.setDiffuseColor(color);
     596
    578597  }
    579598
     
    605624  {
    606625    this->_style[state]._background = material;
     626    if (state == _state)
     627      _currentStyle._background = material;
     628
    607629  }
    608630
     
    610632  {
    611633    for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i)
    612       this->_style[i]._background.loadParams(element);
     634      this->loadBackgroundMaterial(element, (OrxGui::State)i);
    613635  }
    614636
     
    616638  {
    617639    this->_style[state]._background.loadParams(element);
    618   }
     640    if (state == _state)
     641      this->_currentStyle._background = _style[state]._background;
     642  }
     643
    619644  void GLGuiWidget::loadBackgroundMaterialS(const TiXmlElement* element, const std::string& stateName)
    620645  {
Note: See TracChangeset for help on using the changeset viewer.