- Timestamp:
- May 9, 2019, 4:04:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapi.cc
r12362 r12363 1 1 #include "mouseapi.h" 2 3 #if OGRE_VERSION >= 0x010900 4 # include <Overlay/OgreOverlayManager.h> 5 # include <Overlay/OgrePanelOverlayElement.h> 6 #else 7 # include <OgreOverlayManager.h> 8 # include <OgrePanelOverlayElement.h> 9 #endif 10 11 #include "util/StringUtils.h" 2 12 3 13 namespace orxonox{ … … 29 39 } 30 40 //GUIManager::getInstance().showGUI("MouseAPICursor", true);//Display a mouse cursor by displaying a empty menu 41 /*cursor = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() 42 .createOverlayElement("Panel", "MouseAPI_cursor_" + getUniqueNumberString())); 43 cursor->setMaterialName("Orxonox/RadarMarker");//todo: better material 44 cursor->setPosition(0,0); 45 cursor->setDimensions(0.1,0.1); 46 Ogre::Overlay* overlay = Ogre::OverlayManager::getSingleton().create( "MouseAPI_cursor_" + getUniqueNumberString() ); 47 overlay->show();*/ 48 //this->overlay_->add2D(this->cursor); 31 49 } 32 50 … … 84 102 { 85 103 InputManager::getInstance().leaveState("game");//hack: todo: crate 2nd input state with prioritz 98 for cegui(cursor) 86 GUIManager::getInstance().showGUI("MouseAPICursor", false);//hack todo: only if gui not shown & evt better if not in mouse mooved104 //GUIManager::getInstance().showGUI("MouseAPICursor", false);//hack todo: only if gui not shown & evt better if not in mouse mooved 87 105 } 88 106
Note: See TracChangeset
for help on using the changeset viewer.