- Timestamp:
- Apr 13, 2010, 6:17:51 PM (15 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.