Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 6:38:36 PM (16 years ago)
Author:
bknecht
Message:

corrected strange behaviour

Location:
code/branches/FICN/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/hud/HUD.cc

    r587 r588  
    22#include <Ogre.h>
    33#include <OIS/OIS.h>
    4 #include <CEGUI/CEGUI.h>
    5 #include <CEGUIRenderer.h>
     4//#include <CEGUI/CEGUI.h>
     5//#include <CEGUIRenderer.h>
    66
    77
  • code/branches/FICN/src/orxonox/orxonox.cc

    r584 r588  
    6464
    6565#include "particle/ParticleInterface.h"
     66
     67#include "hud/HUD.h"
    6668
    6769//network stuff
     
    402404  void Orxonox::setupRenderSystem()
    403405  {
    404     if (/*!root_->restoreConfig() &&*/ !root_->showConfigDialog())
     406    if (!root_->restoreConfig() && !root_->showConfigDialog())
    405407      throw Exception(52, "User canceled the config dialog!", "OrxApplication::setupRenderSystem()");
    406408  }
     
    430432    loader_->loadLevel();
    431433
    432     auMan_->ambientStart();
     434    Overlay* hudOverlay = OverlayManager::getSingleton().getByName("Orxonox/HUD1.2");
     435    hud::HUD* orxonoxHud;
     436    orxonoxHud = new hud::HUD();
     437    orxonoxHud->setEnergyValue(20);
     438    orxonoxHud->setEnergyDistr(20,20,60);
     439    hudOverlay->show();
     440
     441
     442        /*
     443    auMan_->ambientAdd("a1");
     444    auMan_->ambientAdd("a2");
     445    auMan_->ambientAdd("a3");
     446                                //auMan->ambientAdd("ambient1");
     447    auMan_->ambientStart();*/
    433448  }
    434449
  • code/branches/FICN/src/orxonox/run_manager.cc

    r513 r588  
    5454#include "weapon/base_weapon.h"
    5555
    56 #include "hud/hud_overlay.h"
    57 #include "hud/test_overlay.h"
     56//#include "hud/hud_overlay.h"
     57//#include "hud/test_overlay.h"
     58#include "hud/HUD.h"
    5859
    5960#include "run_manager.h"
     
    142143
    143144    // create HUD
    144     hud_ = new hud::TestOverlay(window_);
    145     hud_->show();
     145    //hud_ = new hud::TestOverlay(window_);
     146    //hud_->show();
     147    /*hud_ = new hud::HUD();
     148    hud_->show();*/
    146149
    147150
     
    206209    if (bulletManager_)
    207210      delete bulletManager_;
    208     if (hud_)
    209       delete hud_;
     211    /*if (hud_)
     212      delete hud_;*/
    210213  }
    211214
     
    241244      + " | Ammo stock = "
    242245      + StringConverter::toString(playerShip_->getAmmoStock());
    243     hud_->setDebugText(tempStr);
    244 
    245     hud_->tick(time, deltaTime);
     246    //hud_->setDebugText(tempStr);
     247
     248    //hud_->tick(time, deltaTime);
    246249
    247250    // update the bullet positions
     
    444447  void RunManager::showDebugOverlay(bool show)
    445448  {
    446     if (hud_)
     449    /*if (hud_)
    447450    {
    448451      if (show)
     
    450453      else
    451454        hud_->hide();
    452     }
     455    }*/
    453456  }
    454457
  • code/branches/FICN/src/orxonox/run_manager.h

    r342 r588  
    4747  public:
    4848    virtual ~RunManager();
    49    
     49
    5050    void initialise(OgreControl*);
    5151
     
    109109          OrxonoxScene *backgroundScene_;
    110110          OrxonoxShip  *playerShip_;
    111     hud::TestOverlay *hud_;
     111    //hud::TestOverlay *hud_;
     112          //hud::HUD  *hud_;
    112113
    113114    // Bullet manager
Note: See TracChangeset for help on using the changeset viewer.