Changeset 8996 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jul 2, 2006, 6:25:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8995 r8996 27 27 #include "specials/glgui_notifier.h" 28 28 #include "elements/glgui_radar.h" 29 30 31 32 /// HACK 33 #include "player.h" 34 #include "playable.h" 29 35 30 36 /** … … 128 134 129 135 this->updateWeaponManager(); 130 // this->updateResolution();136 // this->updateResolution(); 131 137 } 132 138 … … 174 180 this->notifier->setWidgetSize(0.25 * this->resX, 0.6 * this->resY); 175 181 176 this->_radar->setAbsCoor2D(0.8 * this->resX, 0.1 * this->resY); 177 this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY); 178 this->_radar->show(); 182 183 if (State::getPlayer() && State::getPlayer()->getPlayable() && State::getObjectManager()) 184 { 185 printf("UPDATING RADAR\n"); 186 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 187 this->_radar->addEntityList(&State::getObjectManager()->getObjectList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color::red); 188 this->_radar->setAbsCoor2D(0.8 * this->resX, 0.1 * this->resY); 189 this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY); 190 this->_radar->show(); 191 } 192 179 193 180 194 if (this->energyWidget != NULL)
Note: See TracChangeset
for help on using the changeset viewer.