Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2962 for code/trunk/src


Ignore:
Timestamp:
May 10, 2009, 11:38:28 PM (16 years ago)
Author:
dafrick
Message:

Created collecting of GUIOverlays in the GUIManager to make the accessible through the GUIManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gui/GUIManager.h

    r2896 r2962  
    4141#include <CEGUISystem.h>
    4242#include "core/input/InputInterfaces.h"
     43#include <map>
     44#include "overlays/GUIOverlay.h"
    4345
    4446// Forward declaration
     
    8789        void executeCode(const std::string& str);
    8890
     91        bool registerOverlay(std::string name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.
     92        GUIOverlay* getOverlay(std::string name); // Get the GUIOverlay of the GUI with the given name.
     93
    8994        void setCamera(Ogre::Camera* camera);
    9095
     
    129134        State                       state_;             //!< reflects state of the GUIManager
    130135
     136        std::map<std::string, GUIOverlay*> guiOverlays_;//!< A list of all GUIOverlay's.
     137
    131138        static GUIManager*          singletonRef_s;     //!< Singleton reference to GUIManager
     139
    132140    }; // tolua_export
    133141} // tolua_export
Note: See TracChangeset for help on using the changeset viewer.