- Timestamp:
- Mar 7, 2011, 9:57:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/SingleplayerMenu.lua
r7928 r8040 25 25 end 26 26 27 function P.onShow() 28 if P.showAll ~= orxonox.GUIManager:inDevMode() then 29 local window = winMgr:getWindow("orxonox/SingleplayerShowAllCheckbox") 30 local button = tolua.cast(window,"CEGUI::Checkbox") 31 P.showAll = not P.showAll 32 button:setSelected(P.showAll) 33 P.createLevelList() 34 end 35 end 36 27 37 function P.createLevelList() 28 38 P.levelList = {} … … 44 54 index = index + 1 45 55 end 46 --TODO: Reintroduce sorting, if needed. At the moment it's sorted by filename.47 --table.sort(levelList)48 56 for k,v in pairs(P.levelList) do 49 57 local item = CEGUI.createListboxTextItem(v:getName())
Note: See TracChangeset
for help on using the changeset viewer.