Changeset 5583 for data/media/gui/scripts
- Timestamp:
- Jul 23, 2009, 8:05:37 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/mainmenu_4.lua
r5578 r5583 11 11 listbox = winMgr:getWindow("orxonox/LevelListbox") 12 12 preselect = orxonox.LevelManager:getInstance():getDefaultLevel() 13 orxonox.GUIManager:getInstance():getLevelList() --levellist variable ist set now 14 table.sort(levellist) 15 for k,v in pairs(levellist) do 13 orxonox.LevelManager:getInstance():compileAvailableLevelList() 14 local levelList = {} 15 local index = 0 16 local level = "" 17 while true do 18 level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index) 19 if level == "" then 20 break 21 end 22 table.insert(levelList, level) 23 index = index + 1 24 end 25 table.sort(levelList) 26 for k,v in pairs(levelList) do 16 27 item = CEGUI.createListboxTextItem(v) 17 28 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
Note: See TracChangeset
for help on using the changeset viewer.