Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Some Quest stuff, and the rest for the GUIOverlay I failed to commit before.

File:
1 edited

Legend:

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

    r2957 r2963  
    242242    /**
    243243    @brief
     244        Registers a GUIOverlay with the GUIManager so that the GUIOverlay can be accessed by it's name through the GUIManager.
     245    @param name
     246        The name of the GUI.
     247    @param overlay
     248        A pointer to the GUIOverlay of the GUI.
     249    @return
     250        Returns false if the Overlay was already present.
     251    */
     252    bool GUIManager::registerOverlay(std::string name, GUIOverlay* overlay)
     253    {
     254        return (this->guiOverlays_.insert(std::pair<std::string, GUIOverlay*>(name, overlay))).second;
     255    }
     256
     257    /**
     258    @brief
     259        Get the GUIOverlay of the GUI with the given name.
     260    @param name
     261        The name of the GUI.
     262    @return
     263        Returns a pointer to the GUIOverlay.
     264    */
     265    GUIOverlay* GUIManager::getOverlay(std::string name)
     266    {
     267        return (this->guiOverlays_.find(name))->second;
     268    }
     269
     270    /**
     271    @brief
    244272        Tells the GUIManager which SceneManager to use
    245273    @param camera
Note: See TracChangeset for help on using the changeset viewer.