Changeset 7403 for code/trunk/src/libraries/core
- Timestamp:
- Sep 11, 2010, 10:20:44 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/notifications (added) merged: 7319,7324,7326,7338-7343,7348-7349,7351,7354-7355,7358-7360,7362,7395,7398-7400
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GUIManager.cc
r7401 r7403 99 99 GUIManager* GUIManager::singletonPtr_s = 0; 100 100 101 SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, true);101 SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, false); 102 102 SetConsoleCommand("hideGUI", &GUIManager::hideGUI); 103 103 … … 237 237 @param bHidePrevious 238 238 If true all displayed GUIs on the stack, that are below this GUI are hidden. 239 @param bNoInput 240 If true the GUI is transparent to input. 239 241 240 242 The function executes the Lua function with the same name in case the GUIManager is ready. 241 243 */ 242 /*static*/ void GUIManager::showGUI(const std::string& name, bool bHidePrevious )243 { 244 GUIManager::getInstance().executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + " )");244 /*static*/ void GUIManager::showGUI(const std::string& name, bool bHidePrevious, bool bNoInput) 245 { 246 GUIManager::getInstance().executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + ", " + multi_cast<std::string>(bNoInput) + ")"); 245 247 } 246 248 … … 249 251 Hack-ish. Needed for GUIOverlay. 250 252 */ 251 void GUIManager::showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious )252 { 253 this->executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + ", " + ptr + ")");253 void GUIManager::showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious, bool bNoInput) 254 { 255 this->executeCode("showMenuSheet(\"" + name + "\", " + multi_cast<std::string>(bHidePrevious) + ", " + multi_cast<std::string>(bNoInput) + ", " + ptr + ")"); 254 256 } 255 257 -
code/trunk/src/libraries/core/GUIManager.h
r7401 r7403 80 80 81 81 void loadGUI(const std::string& name); 82 static void showGUI(const std::string& name, bool bHidePrevious = false );83 void showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious = false );82 static void showGUI(const std::string& name, bool bHidePrevious = false, bool bNoInput = false); 83 void showGUIExtra(const std::string& name, const std::string& ptr, bool bHidePrevious = false, bool bNoInput = false); 84 84 static void hideGUI(const std::string& name); 85 85 void keyESC();
Note: See TracChangeset
for help on using the changeset viewer.