Changeset 11191 for code/branches/bindermFS16/data
- Timestamp:
- May 19, 2016, 5:37:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bindermFS16/data/gui/scripts/CampaignMenu.lua
r11186 r11191 17 17 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button")) 18 18 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button")) 19 end 19 20 20 21 -- if (P.getIndexOfLastFinishedMission() == orxonox.LevelManager:getInstance():getNumberOfCampaignMissions() - 1) then22 -- local label = winMgr:getWindow("orxonox/CampaignMenuCongratulation")23 -- label:setProperty("Visible","True")24 -- end25 end26 21 27 22 function P.updateButton(index, button) … … 46 41 end 47 42 end 48 49 --function P.shouldDisplayButton(index)50 -- local size = orxonox.LevelManager:getInstance():getNumberOfCampaignMissions()51 -- return index < size52 --end53 54 --function P.shouldActivateButton(index) --checks if button should be activated or not55 -- return index <= P.getIndexOfLastFinishedMission() + 156 --end57 43 58 44 function P.getIndexOfLastFinishedMission()
Note: See TracChangeset
for help on using the changeset viewer.