Changeset 7627 for code/branches/releasetodo/data/gui/scripts
- Timestamp:
- Nov 9, 2010, 9:53:34 PM (14 years ago)
- Location:
- code/branches/releasetodo/data/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/releasetodo/data/gui/scripts/MultiplayerMenu.lua
r7626 r7627 81 81 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/MultiplayerListbox")) 82 82 listbox:resetList() 83 orxonox.GUIManager:setItemTooltipsEnabledHelper(listbox, true) 83 84 local preselect = orxonox.LevelManager:getInstance():getDefaultLevel() 84 85 local size = orxonox.LevelManager:getInstance():getNumberOfLevels() … … 105 106 P.itemList[k] = listbox:getListboxItemFromIndex(k-1) 106 107 --TODO: The description as tooltip would be nice. 107 --local lItem = tolua.cast("CEGUI::ListboxItem", P.itemList[k])108 --local lItem = P.itemList[k] 108 109 --lItem:setTooltipText(v:getDescription()) 110 orxonox.GUIManager:setTooltipTextHelper(P.itemList[k], v:getDescription()) 109 111 end 110 112 end -
code/branches/releasetodo/data/gui/scripts/SingleplayerMenu.lua
r7626 r7627 19 19 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/SingleplayerLevelListbox")) 20 20 listbox:resetList() 21 orxonox.GUIManager:setItemTooltipsEnabledHelper(listbox, true) 21 22 local preselect = orxonox.LevelManager:getInstance():getDefaultLevel() 22 23 local size = orxonox.LevelManager:getInstance():getNumberOfLevels() … … 45 46 --local lItem = tolua.cast("CEGUI::ListboxItem", P.itemList[k]) 46 47 --lItem:setTooltipText(v:getDescription()) 48 orxonox.GUIManager:setTooltipTextHelper(P.itemList[k], v:getDescription()) 47 49 end 48 50 end
Note: See TracChangeset
for help on using the changeset viewer.