Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8984 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Jul 1, 2006, 4:23:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: gui with fading :)

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

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_bar.cc

    r8983 r8984  
    7070
    7171    this->_value = value;
    72 
    73     this->_frontRect.setRight(this->getSizeX2D() * (_value -_minimum)/ (_minimum + _maximum));
     72    this->_frontRect.setSize((this->getSizeX2D() - borderLeft() - borderRight()) * (_value -_minimum)/ (_minimum + _maximum)
     73        ,this->getSizeY2D() - borderTop() - borderBottom());
    7474  }
    7575  void GLGuiBar::setMinimum(float minimum)
     
    9797  }
    9898
    99   void GLGuiBar::updateFrontColor()
    100   {
    101     this->font().setDiffuseColor(Color());
    102   }
    103 
    104 
    10599
    106100  /**
     
    112106    GLGuiWidget::draw();
    113107
    114     this->font().select();
    115     glDisable(GL_BLEND);
     108    this->foreground().select();
    116109    this->drawRect(this->_frontRect);
    117110
  • trunk/src/lib/gui/gl/glgui_bar.h

    r8983 r8984  
    4040  protected:
    4141    virtual void resize();
    42     virtual void updateFrontColor();
    4342
    4443  private:
Note: See TracChangeset for help on using the changeset viewer.