Changeset 10270 in orxonox.OLD for branches/playability/src/util
- Timestamp:
- Jan 17, 2007, 5:52:08 PM (18 years ago)
- Location:
- branches/playability/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.cc
r10234 r10270 30 30 #include "specials/glgui_notifier.h" 31 31 #include "elements/glgui_radar.h" 32 #include "world_entities/space_ships/space_ship.h" 32 33 33 34 … … 69 70 70 71 this->_radar = new OrxGui::GLGuiRadar(); 72 this->radarCenterNode = NULL; 71 73 72 74 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); … … 329 331 PRINTF(4)("UPDATING RADAR\n"); 330 332 this->_radar->setParent2D(this->leftRect); 331 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 333 if (radarCenterNode == NULL) 334 this->_radar->setCenterNode(State::getPlayer()->getPlayable()); 335 else 336 this->_radar->setCenterNode(this->radarCenterNode); 337 332 338 //this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0)); 333 339 this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_00), Color(1, 0, 0)); -
branches/playability/src/util/hud.h
r10233 r10270 46 46 47 47 void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL); 48 inline void setRadarCenterNode(PNode* node) {this->radarCenterNode = node;}; 48 49 49 50 void addWeaponWidget(OrxGui::GLGuiWidget* widget); … … 90 91 OrxGui::GLGuiInputLine* inputLine; 91 92 OrxGui::GLGuiRadar* _radar; 93 PNode* radarCenterNode; 92 94 93 95 OrxGui::GLGuiWidget* rightRect;
Note: See TracChangeset
for help on using the changeset viewer.