Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2018, 2:52:30 PM (6 years ago)
Author:
merholzl
Message:

World Map merging

Location:
code/branches/Merge_HS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Merge_HS18

  • code/branches/Merge_HS18/data/gui/scripts/CampaignMenu.lua

    r11805 r12180  
    22
    33local P = createMenuSheet("CampaignMenu")
     4
    45
    56function P:onShow()
     
    3334    end
    3435end
    35 
     36--Updated Buttons der levels
    3637function P.updateButton(index, button)
     38    --Wenn genuegend Levels vorhanden sind, wird der Butten angezeigt
    3739    if (P.shouldDisplayButton(index)) then
    3840        button:setProperty("Visible", "True")
    3941
     42        --wenn genuegend levels bestanden sind, wird er benutzbar
    4043        if (P.shouldEnableButton(index)) then
    4144            button:setProperty("Disabled", "False")
    4245        end
    4346    end
     47end
     48
     49function P.Test(e)
     50     orxonox.execute("startMainMenu")
    4451end
    4552
     
    6976end
    7077
     78
     79
     80
    7181function P.Mission1Button_clicked(e)
     82    P.loadLevel(P.FindLevel(0))
     83end
     84function P.KeyPressed(e)
    7285    P.loadLevel(P.FindLevel(0))
    7386end
     
    110123end
    111124
     125function P.loadMap()
     126    orxonox.execute("changeGame  dynamicMatch.oxw")
     127     hideAllMenuSheets()
     128end
     129
    112130function P.FindLevel(index)
    113131    local filename = orxonox.LevelManager:getInstance():getCampaignMission(index)
Note: See TracChangeset for help on using the changeset viewer.