Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2010, 9:53:34 PM (14 years ago)
Author:
dafrick
Message:

Now we have the level description as tooltip. Unforunately for this to work i had to write two additional wrappers for CEGUI lua functions, so I guess it's time to start investigating why some CEGUI functions work in lua and some don't.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/releasetodo/data/gui/scripts/SingleplayerMenu.lua

    r7626 r7627  
    1919    local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/SingleplayerLevelListbox"))
    2020    listbox:resetList()
     21    orxonox.GUIManager:setItemTooltipsEnabledHelper(listbox, true)
    2122    local preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
    2223    local size = orxonox.LevelManager:getInstance():getNumberOfLevels()
     
    4546        --local lItem = tolua.cast("CEGUI::ListboxItem", P.itemList[k])
    4647        --lItem:setTooltipText(v:getDescription())
     48        orxonox.GUIManager:setTooltipTextHelper(P.itemList[k], v:getDescription())
    4749    end
    4850end
Note: See TracChangeset for help on using the changeset viewer.