Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2010, 8:17:20 PM (14 years ago)
Author:
dafrick
Message:

Introducing LevelInfo class, which can be used to specify things about a Level and which is used to provide more flexibility in displaying a list of levels.
Basic functionality works, now all that needs to be dones is to exploit the new functionality.

File:
1 edited

Legend:

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

    r7163 r7625  
    66    listbox = winMgr:getWindow("orxonox/SingleplayerLevelListbox")
    77    preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
    8     orxonox.LevelManager:getInstance():compileAvailableLevelList()
     8    size = orxonox.LevelManager:getInstance():getNumberOfLevels()
    99    local levelList = {}
    1010    local index = 0
    1111    local level = ""
    12     while true do
     12    while index < size do
    1313      level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
    14       if level == "" then
    15         break
    16       end
    1714      table.insert(levelList, level)
    1815      index = index + 1
Note: See TracChangeset for help on using the changeset viewer.