Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2005, 12:30:14 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: extended functionality to implement progress bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/glmenu_imagescreen.cc

    r3362 r3363  
    171171  SDL_Delay(1000);
    172172}
    173 
    174173 
     174
    175175/**
    176176    \brief sets the background image name
     
    197197void GLMenuImageScreen::setSize(float height, float width)
    198198{}
     199
     200
     201/**
     202   \brief set the maximum of countable steps
     203   \param maximum of steps
     204*/
     205void GLMenuImageScreen::setMaximum(int maxStep)
     206{
     207  this->maxStep = maxStep;
     208}
     209
     210
     211/**
     212   \brief gets the maximum of countable steps
     213*/
     214int GLMenuImageScreen::getMaximum()
     215{
     216  return this->maxStep;
     217}
     218
     219
     220/**
     221   \brief set current value
     222   \param current value
     223*/
     224void GLMenuImageScreen::setValue(int currentValue)
     225{
     226  this->currentValue = currentValue;
     227  this->draw();
     228}
     229
     230
     231/**
     232   \brief get the current value
     233 */
     234int GLMenuImageScreen::getValue()
     235{
     236  return this->currentValue;
     237}
     238
     239
     240/**
     241    \brief call this to trigger a progress event
     242   
     243    this has to redraw the progress bar and the whole image
     244 */
     245void GLMenuImageScreen::step ()
     246{
     247  this->currentValue++;
     248}
Note: See TracChangeset for help on using the changeset viewer.