Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2009, 8:05:37 PM (15 years ago)
Author:
rgrieder
Message:

Copied a gui script file for the (hopefully) last time. This implements the changes from r3339.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • data/media/gui/scripts/mainmenu_4.lua

    r5578 r5583  
    1111    listbox = winMgr:getWindow("orxonox/LevelListbox")
    1212    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
    1627        item = CEGUI.createListboxTextItem(v)       
    1728        item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
Note: See TracChangeset for help on using the changeset viewer.