Changeset 5980 for code/trunk/src/modules
- Timestamp:
- Oct 21, 2009, 4:06:50 PM (15 years ago)
- Location:
- code/trunk/src/modules/overlays
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/overlays/GUIOverlay.cc
r5978 r5980 62 62 { 63 63 SUPER(GUIOverlay, changedVisibility); 64 64 65 65 //Setting player now. 66 GUIManager::getInstance().setPlayer(this->guiName_, (orxonox_cast<ControllableEntity*>(this->getOwner()))->getPlayer()); 66 if( this->getOwner() ) 67 GUIManager::getInstance().setPlayer(this->guiName_, (orxonox_cast<ControllableEntity*>(this->getOwner()))->getPlayer()); 67 68 68 69 if (this->isVisible()) -
code/trunk/src/modules/overlays/stats/CreateLines.cc
r5929 r5980 87 87 this->background_->setVisible(visible); 88 88 } 89 void CreateLines::changedVisibility() 90 { 91 this->scoreText_->changedVisibility(); 92 this->deathsText_->changedVisibility(); 93 this->playerNameText_->changedVisibility(); 94 this->background_->changedVisibility(); 95 } 96 97 void CreateLines::setOverlayGroup( OverlayGroup* group ) 98 { 99 this->scoreText_->setOverlayGroup( group ); 100 this->deathsText_->setOverlayGroup( group ); 101 this->playerNameText_->setOverlayGroup( group ); 102 this->background_->setOverlayGroup( group ); 103 } 89 104 90 105 /** -
code/trunk/src/modules/overlays/stats/CreateLines.h
r5781 r5980 44 44 45 45 void setVisibility(bool); 46 void changedVisibility(); 47 void setOverlayGroup( OverlayGroup* group ); 46 48 47 49 //void setNumberOfColumns(unsigned int numberOfColumns, unsigned int lineIndex); -
code/trunk/src/modules/overlays/stats/Scoreboard.cc
r5929 r5980 69 69 70 70 for (unsigned int i = 0; i < this->lines_.size(); ++i) 71 this->lines_[i]-> setVisibility(this->isVisible());71 this->lines_[i]->changedVisibility(); 72 72 } 73 73 … … 89 89 CreateLines* lines = new CreateLines(leftOffset, topOffset + (distance + height) * lines_.size(), width, height); 90 90 lines->setVisibility(this->isVisible()); 91 lines->setOverlayGroup( this->getOverlayGroup() ); 91 92 this->lines_.push_back(lines); 92 93 }
Note: See TracChangeset
for help on using the changeset viewer.