Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8995 in orxonox.OLD


Ignore:
Timestamp:
Jul 2, 2006, 5:43:28 AM (18 years ago)
Author:
bensch
Message:

hud: radar shown inside of the HUD

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r8994 r8995  
    5050  notifier->setAbsCoor2D(100,100);
    5151
    52   this->radar = new OrxGui::GLGuiRadar();
     52  this->_radar = new OrxGui::GLGuiRadar();
    5353
    5454  this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE);
     
    6666  delete this->notifier;
    6767
    68   delete this->radar;
     68  delete this->_radar;
    6969  // delete what has to be deleted here
    7070}
     
    174174  this->notifier->setWidgetSize(0.25 * this->resX, 0.6 * this->resY);
    175175
     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();
     179
    176180  if (this->energyWidget != NULL)
    177181  {
  • trunk/src/util/hud.h

    r8994 r8995  
    4343  void removeWeaponWidget(OrxGui::GLGuiWidget* widget);
    4444
     45  OrxGui::GLGuiRadar* radar() const { return _radar; };
     46
    4547  void updateWeaponManager();
    4648
     
    6264  OrxGui::GLGuiNotifier*   notifier;
    6365  OrxGui::GLGuiInputLine*  inputLine;
    64   OrxGui::GLGuiRadar*      radar;
     66  OrxGui::GLGuiRadar*      _radar;
    6567
    6668  WeaponManager*           weaponManager;
Note: See TracChangeset for help on using the changeset viewer.