Changeset 6722 for code/branches/gamestates2/src/libraries
- Timestamp:
- Apr 13, 2010, 6:17:51 PM (15 years ago)
- Location:
- code/branches/gamestates2/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/src/libraries/core/GUIManager.cc
r6662 r6722 226 226 227 227 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) + ")"); 233 232 } 234 233 … … 237 236 Hack-ish. Needed for GUIOverlay. 238 237 */ 239 void GUIManager::showGUIExtra(const std::string& name, const std::string& ptr, bool hidePrevious, bool showCursor)240 { 241 this->executeCode("show GUI(\"" + 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 + ")"); 242 241 } 243 242 … … 250 249 /*static*/ void GUIManager::hideGUI(const std::string& name) 251 250 { 252 GUIManager::getInstance().executeCode("hide GUI(\"" + name + "\")");251 GUIManager::getInstance().executeCode("hideMenuSheet(\"" + name + "\")"); 253 252 } 254 253 -
code/branches/gamestates2/src/libraries/core/GUIManager.h
r6662 r6722 75 75 76 76 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); 79 79 static void hideGUI(const std::string& name); 80 80 void keyESC();
Note: See TracChangeset
for help on using the changeset viewer.