Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2010, 3:56:34 PM (15 years ago)
Author:
rgrieder
Message:

Added XML loadable wrapper class that can load GUI sheets.

Location:
code/branches/gamestate/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestate/src/libraries/core/GUIManager.cc

    r6417 r6441  
    208208    }
    209209
     210    /** Loads a GUI sheet by Lua script
     211    @param name
     212        The name of the GUI (like the script name, but without the extension)
     213    */
     214    void GUIManager::loadGUI(const std::string& name)
     215    {
     216        this->executeCode("loadGUI(\"" + name + "\")");
     217    }
     218
    210219    /**
    211220    @brief
  • code/branches/gamestate/src/libraries/core/GUIManager.h

    r6417 r6441  
    6969        void preUpdate(const Clock& time);
    7070
     71        void loadGUI(const std::string& name);
    7172        static void showGUI(const std::string& name, bool hidePrevious=false, bool showCursor=true);
    7273        void showGUIExtra(const std::string& name, const std::string& ptr, bool hidePrevious=false, bool showCursor=true);
  • code/branches/gamestate/src/orxonox/overlays/CMakeLists.txt

    r5929 r6441  
    11ADD_SOURCE_FILES(ORXONOX_SRC_FILES
     2  GUISheet.cc
    23  OrxonoxOverlay.cc
    34  OverlayGroup.cc
Note: See TracChangeset for help on using the changeset viewer.