Changeset 7627 for code/branches/releasetodo/src/libraries/core
- Timestamp:
- Nov 9, 2010, 9:53:34 PM (14 years ago)
- Location:
- code/branches/releasetodo/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/releasetodo/src/libraries/core/GUIManager.cc
r7403 r7627 43 43 #include <CEGUIWindow.h> 44 44 #include <CEGUIWindowManager.h> 45 #include <CEGUI/elements/CEGUIListbox.h> 46 #include <CEGUI/elements/CEGUIListboxItem.h> 45 47 #include <ogreceguirenderer/OgreCEGUIRenderer.h> 46 48 … … 440 442 window->subscribeScriptedEvent(event, function); 441 443 } 444 445 void GUIManager::setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& tooltip) 446 { 447 item->setTooltipText(tooltip); 448 } 449 450 void GUIManager::setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled) 451 { 452 listbox->setItemTooltipsEnabled(enabled); 453 } 454 455 442 456 } -
code/branches/releasetodo/src/libraries/core/GUIManager.h
r7403 r7627 106 106 // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work 107 107 static void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export 108 static void setTooltipTextHelper(CEGUI::ListboxItem* item, const std::string& toooltip); //tolua_export 109 static void setItemTooltipsEnabledHelper(CEGUI::Listbox* listbox, bool enabled); //tolua_export 108 110 109 111 static GUIManager& getInstance() { return Singleton<GUIManager>::getInstance(); } // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.