Changeset 2498 for code/branches/presentation/src/orxonox/overlays
- Timestamp:
- Dec 17, 2008, 6:02:47 AM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/overlays/stats
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/overlays/stats/Scoreboard.cc
r2495 r2498 53 53 { 54 54 RegisterObject(Scoreboard); 55 this->setGametype(creator->getGametype());56 55 } 57 56 … … 89 88 { 90 89 // create new lines 91 this->lines_.push_back(new CreateLines(leftOffset, topOffset + (distance + height) * lines_.size(), width, height)); 90 CreateLines* lines = new CreateLines(leftOffset, topOffset + (distance + height) * lines_.size(), width, height); 91 lines->setVisibility(this->isVisible()); 92 this->lines_.push_back(lines); 92 93 } 93 94 while (playerList.size() < this->lines_.size()) … … 121 122 // this->createlines_->setNumberOfColumns(numberOfColumns, i); 122 123 123 // // columnText = this->g ametype_->getPlayersName();124 // // columnText = this->getGametype()->getPlayersName(); 124 125 // columnText = "PlayerName"; 125 126 // this->createlines_->alignColumn(columnIndex, topOffset, leftOffset); … … 129 130 // leftOffset = leftOffset + 0.3; 130 131 131 // // columnText = this->g ametype_->getPlayersFrags();132 // // columnText = this->getGametype()->getPlayersFrags(); 132 133 // columnText = "PlayerFrags"; 133 134 // this->createlines_->alignColumn(columnIndex, topOffset, leftOffset); -
code/branches/presentation/src/orxonox/overlays/stats/Scoreboard.h
r2495 r2498 50 50 virtual void tick(float dt); 51 51 52 inline void setGametype(Gametype* gt)53 { this->gametype_ = gt; }54 inline Gametype* getGametype() const55 { return this->gametype_; }56 57 52 inline void setCreateLines(CreateLines* cl) 58 53 { this->createlines_ = cl; } … … 75 70 float lineSpacing; 76 71 std::string columnText; 77 Gametype* gametype_;78 72 CreateLines* createlines_; 79 73 };
Note: See TracChangeset
for help on using the changeset viewer.