Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2017, 4:30:11 PM (3 years ago)
Author:
patricwi
Message:

story mode map merged

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/gui/scripts/CampaignMenu.lua

    r11052 r11359  
    99function P.updateButtons()
    1010    P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button"))
     11    P.updateButton(0, winMgr:getWindow("orxonox/Mission1Text"))
    1112    P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button"))
     13    P.updateButton(1, winMgr:getWindow("orxonox/Mission2Text"))
    1214    P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button"))
     15    P.updateButton(2, winMgr:getWindow("orxonox/Mission3Text"))
    1316    P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button"))
     17    P.updateButton(3, winMgr:getWindow("orxonox/Mission4Text"))
    1418    P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button"))
     19    P.updateButton(4, winMgr:getWindow("orxonox/Mission5Text"))
    1520    P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button"))
     21    P.updateButton(5, winMgr:getWindow("orxonox/Mission6Text"))
    1622    P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button"))
     23    P.updateButton(6, winMgr:getWindow("orxonox/Mission7Text"))
    1724    P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button"))
     25    P.updateButton(7, winMgr:getWindow("orxonox/Mission8Text"))
    1826    P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button"))
     27    P.updateButton(8, winMgr:getWindow("orxonox/Mission9Text"))
    1928
    2029
     
    97106
    98107function P.loadLevel(level)
    99     orxonox.execute("startGame " .. level:getXMLFilename())
     108    orxonox.execute("changeGame " .. level:getXMLFilename())
    100109    hideAllMenuSheets()
    101110end
     
    118127
    119128function P.CampaignMenuBackButton_clicked(e)
    120     hideMenuSheet(P.name)
     129    orxonox.execute("startMainMenu")
     130    hideMenuSheet("CampaignMenu")
    121131end
    122132
Note: See TracChangeset for help on using the changeset viewer.