Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2140 for code/branches/overlay


Ignore:
Timestamp:
Nov 5, 2008, 12:38:04 AM (16 years ago)
Author:
rgrieder
Message:

Stats overlay should now be loaded. Could not test it yet because of still missing media files.

Location:
code/branches/overlay/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/overlay/src/orxonox/gamestates/GSLevel.cc

    r2103 r2140  
    6060        , radar_(0)
    6161        , startFile_(0)
     62        , stats_(0)
    6263        , cameraManager_(0)
    6364        , levelManager_(0)
     
    9394            // Start the Radar
    9495            this->radar_ = new Radar();
     96
     97            stats_ = new XMLFile(Settings::getDataPath() + "overlay/stats.oxo");
     98            Loader::open(stats_);
    9599        }
    96100
  • code/branches/overlay/src/orxonox/gamestates/GSLevel.h

    r2103 r2140  
    6868        Radar*                radar_;            //!< represents the Radar (not the HUD part)
    6969        XMLFile*              startFile_;        //!< current hard coded default level
     70        XMLFile*              stats_;
    7071        CameraManager*        cameraManager_;
    7172        LevelManager*         levelManager_;
  • code/branches/overlay/src/orxonox/overlays/stats/Stats.cc

    r2120 r2140  
    3535#include <OgreOverlayManager.h>
    3636#include <OgreOverlayContainer.h>
    37 #include <OgreFontManager.h>
    38 #include <OgreFont.h>
    3937
    40 #include "util/Math.h"
    4138#include "util/Convert.h"
    4239#include "util/Debug.h"
    4340#include "core/CoreIncludes.h"
    4441#include "core/ConfigValueIncludes.h"
    45 #include "core/ConsoleCommand.h"
    46 #include "core/input/InputManager.h"
    47 #include "core/input/SimpleInputState.h"
    48 #include "core/input/InputBuffer.h"
    49 #include "GraphicsEngine.h"
    5042
    5143namespace orxonox
    5244{
    53     //CreateFactory(Stats);
     45    CreateFactory(Stats);
    5446
    5547    /**
Note: See TracChangeset for help on using the changeset viewer.