- Timestamp:
- May 16, 2019, 2:27:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapicursor.cc
r12363 r12377 10 10 cursor = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() 11 11 .createOverlayElement("Panel", "MouseAPI_cursor_" + getUniqueNumberString())); 12 cursor->setMaterialName(TextureGenerator::getMaterialName( 13 cursorname, Ogre::ColourValue::White)); 14 12 updateCursor(); 15 13 overlay_->add2D(this->cursor); 16 14 scale(Vector2(0.03,0.03)); … … 22 20 if(running) 23 21 MouseAPI::getInstance().deactivate(); 22 if(this->isInitialized()) 23 Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->cursor); 24 24 } 25 25 … … 30 30 SUPER(MouseAPICursor, XMLPort, xmlelement, mode); 31 31 XMLPortParam(MouseAPICursor, "cursorShape", setCursorName, getCursorName,xmlelement, mode); 32 //XMLPortParam(MouseAPICursor, "cursorColor", setCursorColor, getCursorColor,xmlelement, mode);//TODO: ColoValue::setAsARGB()32 XMLPortParam(MouseAPICursor, "cursorColor", setCursorColor, getCursorColor,xmlelement, mode); 33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.