Changeset 3327 for code/trunk/src/orxonox/overlays
- Timestamp:
- Jul 19, 2009, 5:31:02 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3269,3271-3275,3278,3285,3290-3294,3310
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/GUIOverlay.cc
r3301 r3327 70 70 str = out.str(); 71 71 GUIManager::getInstance().executeCode("showCursor()"); 72 InputManager::getInstance(). requestEnterState("guiMouseOnly");72 InputManager::getInstance().enterState("guiMouseOnly"); 73 73 GUIManager::getInstance().executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")"); 74 74 } … … 77 77 GUIManager::getInstance().executeCode("hideGUI(\"" + this->guiName_ + "\")"); 78 78 GUIManager::getInstance().executeCode("hideCursor()"); 79 InputManager::getInstance(). requestLeaveState("guiMouseOnly");79 InputManager::getInstance().leaveState("guiMouseOnly"); 80 80 } 81 81 } -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r3301 r3327 47 47 #include "core/XMLPort.h" 48 48 #include "core/ConsoleCommand.h" 49 #include "GraphicsManager.h"50 49 51 50 namespace orxonox … … 81 80 82 81 // Get aspect ratio from the render window. Later on, we get informed automatically 83 Ogre::RenderWindow* defaultWindow = GraphicsManager::getInstance().getRenderWindow(); 84 this->windowAspectRatio_ = static_cast<float>(defaultWindow->getWidth()) / defaultWindow->getHeight(); 82 this->windowAspectRatio_ = static_cast<float>(this->getWindowWidth()) / this->getWindowHeight(); 85 83 this->sizeCorrectionChanged(); 86 84 -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
r3196 r3327 42 42 #include "util/OgreForwardRefs.h" 43 43 #include "core/BaseObject.h" 44 #include " interfaces/WindowEventListener.h"44 #include "core/WindowEventListener.h" 45 45 46 46 namespace orxonox -
code/trunk/src/orxonox/overlays/console/InGameConsole.cc
r3301 r3327 49 49 #include "core/ConsoleCommand.h" 50 50 #include "core/input/InputManager.h" 51 #include "core/input/ SimpleInputState.h"51 #include "core/input/InputState.h" 52 52 #include "core/input/InputBuffer.h" 53 53 … … 98 98 99 99 // destroy the input state previously created (InputBuffer gets destroyed by the Shell) 100 InputManager::getInstance(). requestDestroyState("console");100 InputManager::getInstance().destroyState("console"); 101 101 102 102 Ogre::OverlayManager* ovMan = Ogre::OverlayManager::getSingletonPtr(); … … 158 158 if (bHidesAllInput_) 159 159 { 160 inputState_->setMouseHandler(&Input Manager::EMPTY_HANDLER);161 inputState_->setJoyStickHandler(&Input Manager::EMPTY_HANDLER);160 inputState_->setMouseHandler(&InputHandler::EMPTY); 161 inputState_->setJoyStickHandler(&InputHandler::EMPTY); 162 162 } 163 163 else … … 172 172 @brief Initializes the InGameConsole. 173 173 */ 174 void InGameConsole::initialise( int windowWidth, int windowHeight)174 void InGameConsole::initialise() 175 175 { 176 176 // create the corresponding input state 177 inputState_ = InputManager::getInstance().createInputState <SimpleInputState>("console", false, false, InputStatePriority::Console);177 inputState_ = InputManager::getInstance().createInputState("console", false, false, InputStatePriority::Console); 178 178 inputState_->setKeyHandler(Shell::getInstance().getInputBuffer()); 179 179 bHidesAllInputChanged(); … … 248 248 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 249 249 250 this->windowResized( windowWidth, windowHeight);250 this->windowResized(this->getWindowWidth(), this->getWindowWidth()); 251 251 252 252 // move overlay "above" the top edge of the screen … … 507 507 { 508 508 this->bActive_ = true; 509 InputManager::getInstance(). requestEnterState("console");509 InputManager::getInstance().enterState("console"); 510 510 Shell::getInstance().registerListener(this); 511 511 … … 529 529 { 530 530 this->bActive_ = false; 531 InputManager::getInstance(). requestLeaveState("console");531 InputManager::getInstance().leaveState("console"); 532 532 Shell::getInstance().unregisterListener(this); 533 533 -
code/trunk/src/orxonox/overlays/console/InGameConsole.h
r3196 r3327 36 36 #include "util/OgreForwardRefs.h" 37 37 #include "core/Shell.h" 38 #include " interfaces/WindowEventListener.h"38 #include "core/WindowEventListener.h" 39 39 40 40 namespace orxonox … … 46 46 ~InGameConsole(); 47 47 48 void initialise( int windowWidth, int windowHeight);48 void initialise(); 49 49 void destroy(); 50 50 void setConfigValues(); … … 101 101 102 102 // input related 103 SimpleInputState* inputState_;103 InputState* inputState_; 104 104 105 105 // config values
Note: See TracChangeset
for help on using the changeset viewer.