Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 4:38:28 PM (8 years ago)
Author:
meierman
Message:

Judihui it works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/FlagHUD.cc

    r10895 r10900  
    5252
    5353    void FlagHUD::setFlagCount(int flagCount) {
     54        if(flagCount == 0){
     55            this->panel_->hide();
     56            return;
     57        }
    5458        this->panel_->setDimensions(
    5559            this->panel_->_getRelativeWidth() / ((float) flagCount_) * ((float) flagCount),
     
    6165    }
    6266
    63     /*void FlagHUD::tick(float dt)
     67    void FlagHUD::tick(float dt)
    6468    {
    6569        SUPER(FlagHUD, tick, dt);
    6670
    67         if (this->hoverGame)
    68         {
    69             setFlagCount(2);
    70         }
    71     }*/
     71            setFlagCount(this->hoverGame->getFlags());
     72       
     73    }
    7274
    7375    void FlagHUD::changedOwner()
Note: See TracChangeset for help on using the changeset viewer.