Changeset 2958
- Timestamp:
- May 9, 2009, 10:08:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/GUIOverlay.cc
r2957 r2958 29 29 #include "GUIOverlay.h" 30 30 #include "OrxonoxStableHeaders.h" 31 #include <string> 32 #include <sstream> 33 #include "core/input/InputManager.h" 31 34 32 35 #include "../gui/GUIManager.h" … … 56 59 SUPER(GUIOverlay, changedVisibility); 57 60 61 COUT(1) << "Somethings happened!!!" << std::endl; 62 58 63 if (this->isVisible()) 59 GUIManager::getInstancePtr()->executeCode("showGUI(\"" + this->guiName_ + "\", " + this + ")"); 64 { 65 std::string str; 66 std::stringstream out; 67 out << (long)this; 68 str = out.str(); 69 COUT(1) << str << std::endl; 70 GUIManager::getInstancePtr()->executeCode("showCursor()"); 71 InputManager::getInstance().requestEnterState("guiMouseOnly"); 72 GUIManager::getInstancePtr()->executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")"); 73 } 60 74 else 75 { 61 76 GUIManager::getInstancePtr()->executeCode("hideGUI(\"" + this->guiName_ + "\")"); 77 GUIManager::getInstancePtr()->executeCode("hideCursor()"); 78 InputManager::getInstance().requestLeaveState("guiMouseOnly"); 79 } 62 80 } 63 81
Note: See TracChangeset
for help on using the changeset viewer.