Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 24, 2018, 2:50:16 AM (7 years ago)
Author:
landauf
Message:

migrated HighscoreMenu.lua and CampaignMenu.lua to cegui 0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/data/gui/scripts/CampaignMenu.lua

    r11359 r11805  
    88
    99function P.updateButtons()
    10     P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button"))
    11     P.updateButton(0, winMgr:getWindow("orxonox/Mission1Text"))
    12     P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button"))
    13     P.updateButton(1, winMgr:getWindow("orxonox/Mission2Text"))
    14     P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button"))
    15     P.updateButton(2, winMgr:getWindow("orxonox/Mission3Text"))
    16     P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button"))
    17     P.updateButton(3, winMgr:getWindow("orxonox/Mission4Text"))
    18     P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button"))
    19     P.updateButton(4, winMgr:getWindow("orxonox/Mission5Text"))
    20     P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button"))
    21     P.updateButton(5, winMgr:getWindow("orxonox/Mission6Text"))
    22     P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button"))
    23     P.updateButton(6, winMgr:getWindow("orxonox/Mission7Text"))
    24     P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button"))
    25     P.updateButton(7, winMgr:getWindow("orxonox/Mission8Text"))
    26     P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button"))
    27     P.updateButton(8, winMgr:getWindow("orxonox/Mission9Text"))
     10    P.updateButton(0, P.window:getChild("Mission1Button"))
     11    P.updateButton(0, P.window:getChild("Mission1Text"))
     12    P.updateButton(1, P.window:getChild("Mission2Button"))
     13    P.updateButton(1, P.window:getChild("Mission2Text"))
     14    P.updateButton(2, P.window:getChild("Mission3Button"))
     15    P.updateButton(2, P.window:getChild("Mission3Text"))
     16    P.updateButton(3, P.window:getChild("Mission4Button"))
     17    P.updateButton(3, P.window:getChild("Mission4Text"))
     18    P.updateButton(4, P.window:getChild("Mission5Button"))
     19    P.updateButton(4, P.window:getChild("Mission5Text"))
     20    P.updateButton(5, P.window:getChild("Mission6Button"))
     21    P.updateButton(5, P.window:getChild("Mission6Text"))
     22    P.updateButton(6, P.window:getChild("Mission7Button"))
     23    P.updateButton(6, P.window:getChild("Mission7Text"))
     24    P.updateButton(7, P.window:getChild("Mission8Button"))
     25    P.updateButton(7, P.window:getChild("Mission8Text"))
     26    P.updateButton(8, P.window:getChild("Mission9Button"))
     27    P.updateButton(8, P.window:getChild("Mission9Text"))
    2828
    2929
    3030    if (P.getIndexOfLastFinishedMission() == orxonox.LevelManager:getInstance():getNumberOfCampaignMissions() - 1) then
    31         local label = winMgr:getWindow("orxonox/CampaignMenuCongratulation")
     31        local label = P.window:getChild("CampaignMenuCongratulation")
    3232        label:setProperty("Visible","True")
    3333    end
Note: See TracChangeset for help on using the changeset viewer.