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.

Location:
code/branches/releasetodo/data
Files:
3 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
  • code/branches/releasetodo/data/levels/empty_level.oxw

    r7163 r7625  
     1<LevelInfo
     2 name = "Empty level"
     3 description = "A level with absolutely nothing in it."
     4 tags = "test, empty"
     5/>
     6
    17<?lua
    28  include("stats.oxo")
  • code/branches/releasetodo/data/levels/notifications.oxw

    r7614 r7625  
     1<LevelInfo
     2 name = "Notifications showcase"
     3 description = "Level to test and showcase notifications."
     4 tags = "test, showcase, notifications"
     5/>
     6
    17<?lua
    28  include("hudtemplates3.oxo")
     
    511  include("templates/lodinformation.oxt")
    612?>
    7 
    8 <LevelInfo
    9  name = "Notifications showcase"
    10  description = "Level to test and showcase notifications."
    11  tags = "test, showcase, notifications"
    12 />
    1313
    1414<Level
Note: See TracChangeset for help on using the changeset viewer.