Changeset 11313 for code/branches
- Timestamp:
- Nov 28, 2016, 4:53:24 PM (8 years ago)
- Location:
- code/branches/Highscore_HS16
- Files:
-
- 2 added
- 2 deleted
- 5 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 -
code/branches/Highscore_HS16/src/libraries/core/CMakeLists.txt
r11304 r11313 27 27 GameMode.cc 28 28 GameState.cc 29 Highscore.cc30 29 Language.cc 31 30 Loader.cc … … 91 90 GraphicsManager.h 92 91 GUIManager.h 93 Highscore.h94 92 Loader.h 95 93 LuaState.h -
code/branches/Highscore_HS16/src/modules/jump/Jump.cc
r11071 r11313 34 34 #include "Jump.h" 35 35 #include "core/CoreIncludes.h" 36 #include "Highscore.h" 36 37 37 38 #include "JumpCenterpoint.h" … … 311 312 cleanup(); 312 313 GSLevel::startMainMenu(); 313 314 orxout() << "Test Highscore" << endl; 315 if (Highscore::exists()){ 316 orxout() << "exists" << endl; 317 Highscore::getInstance().storeHighscore("player","jump",sectionNumber_ - 2); 318 } 314 319 Deathmatch::end(); 315 320 } -
code/branches/Highscore_HS16/src/orxonox/CMakeLists.txt
r11304 r11313 27 27 LevelInfo.cc 28 28 LevelManager.cc 29 Highscore.cc 29 30 Main.cc 30 31 MoodManager.cc … … 61 62 LevelInfo.h 62 63 LevelManager.h 64 Highscore.h 63 65 MoodManager.h 64 66 controllers/HumanController.h
Note: See TracChangeset
for help on using the changeset viewer.