Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2010, 6:17:51 PM (15 years ago)
Author:
rgrieder
Message:

Renamed showGUI and hideGUI to showMenuSheet and hideMenuSheet.

Location:
code/branches/gamestates2/src/libraries/core
Files:
2 edited

Legend:

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

    r6662 r6722  
    226226
    227227        The function executes the Lua function with the same name in case the GUIManager is ready.
    228         For more details check out loadGUI_2.lua where the function presides.
    229     */
    230     /*static*/ void GUIManager::showGUI(const std::string& name, bool hidePrevious, bool showCursor)
    231     {
    232         GUIManager::getInstance().executeCode("showGUI(\"" + name + "\", " + multi_cast<std::string>(hidePrevious) + ", " + multi_cast<std::string>(showCursor) + ")");
     228    */
     229    /*static*/ void GUIManager::showGUI(const std::string& name, bool bHidePrevious)
     230    {
     231        GUIManager::getInstance().executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + ")");
    233232    }
    234233
     
    237236        Hack-ish. Needed for GUIOverlay.
    238237    */
    239     void GUIManager::showGUIExtra(const std::string& name, const std::string& ptr, bool hidePrevious, bool showCursor)
    240     {
    241         this->executeCode("showGUI(\"" + name + "\", " + multi_cast<std::string>(hidePrevious) + ", " + multi_cast<std::string>(showCursor) + ", " + ptr + ")");
     238    void GUIManager::showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious)
     239    {
     240        this->executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + ", " + ptr + ")");
    242241    }
    243242
     
    250249    /*static*/ void GUIManager::hideGUI(const std::string& name)
    251250    {
    252         GUIManager::getInstance().executeCode("hideGUI(\"" + name + "\")");
     251        GUIManager::getInstance().executeCode("hideMenuSheet(\"" + name + "\")");
    253252    }
    254253
  • code/branches/gamestates2/src/libraries/core/GUIManager.h

    r6662 r6722  
    7575
    7676        void loadGUI(const std::string& name);
    77         static void showGUI(const std::string& name, bool hidePrevious=false, bool showCursor=true);
    78         void showGUIExtra(const std::string& name, const std::string& ptr, bool hidePrevious=false, bool showCursor=true);
     77        static void showGUI(const std::string& name, bool bHidePrevious = false);
     78        void showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious = false);
    7979        static void hideGUI(const std::string& name);
    8080        void keyESC();
Note: See TracChangeset for help on using the changeset viewer.