Changeset 11313 for code/branches/Highscore_HS16/data
- Timestamp:
- Nov 28, 2016, 4:53:24 PM (8 years ago)
- Location:
- code/branches/Highscore_HS16/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Highscore_HS16/data/defaultConfig/orxonox.ini
r11052 r11313 9 9 campaignMissions_[7] = "shuttleAttack.oxw" 10 10 campaignMissions_[8] = "shuttleRetaliation.oxw" 11 12 [Highscore] 13 tests_[0] = "name1" 14 tests_[1] = "name2" 15 -
code/branches/Highscore_HS16/data/gui/scripts/HighscoreMenu.lua
r11304 r11313 24 24 25 25 P.scoreList = {} 26 27 for i=1,20 do 28 table.insert(P.nameList, "Player "..i) 26 test = orxonox.Highscore:getInstance():getNumberOfHighscores() 27 28 for i=0,orxonox.Highscore:getInstance():getNumberOfHighscores()-1 do 29 table.insert(P.nameList, orxonox.Highscore:getInstance():getHighscore(i)) 29 30 table.insert(P.scoreList, i) 30 31 … … 41 42 P.createFilterTab(v:getName(), v:getName()) 42 43 end 43 local highscores = v:getHighscores()44 orxonox.CommandExecutor:execute("log test:".. highscores)44 --local highscores = v:getHighscores() 45 --orxonox.CommandExecutor:execute("log test:".. highscores) 45 46 46 47 end … … 55 56 56 57 function P.onShow() 58 P.nameList = {} 59 60 P.scoreList = {} 61 test = orxonox.Highscore:getInstance():getNumberOfHighscores() 62 63 for i=0,orxonox.Highscore:getInstance():getNumberOfHighscores()-1 do 64 table.insert(P.nameList, orxonox.Highscore:getInstance():getHighscore(i)) 65 table.insert(P.scoreList, i) 66 67 end 57 68 --local description = winMgr:getWindow("orxonox/HighscoreText") 58 69
Note: See TracChangeset
for help on using the changeset viewer.