Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 23, 2017, 2:56:00 PM (7 years ago)
Author:
patricwi
Message:

reset back in time

Location:
code/branches/HUD_HS16
Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/HUD_HS16

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

    r11497 r11499  
    99function P.updateButtons()
    1010    P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button"))
    11     P.updateButton(0, winMgr:getWindow("orxonox/Mission1Text"))
    1211    P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button"))
    13     P.updateButton(1, winMgr:getWindow("orxonox/Mission2Text"))
    1412    P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button"))
    15     P.updateButton(2, winMgr:getWindow("orxonox/Mission3Text"))
    1613    P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button"))
    17     P.updateButton(3, winMgr:getWindow("orxonox/Mission4Text"))
    1814    P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button"))
    19     P.updateButton(4, winMgr:getWindow("orxonox/Mission5Text"))
    2015    P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button"))
    21     P.updateButton(5, winMgr:getWindow("orxonox/Mission6Text"))
    2216    P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button"))
    23     P.updateButton(6, winMgr:getWindow("orxonox/Mission7Text"))
    2417    P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button"))
    25     P.updateButton(7, winMgr:getWindow("orxonox/Mission8Text"))
    2618    P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button"))
    27     P.updateButton(8, winMgr:getWindow("orxonox/Mission9Text"))
    2819
    2920
     
    10697
    10798function P.loadLevel(level)
    108     orxonox.execute("changeGame " .. level:getXMLFilename())
     99    orxonox.execute("startGame " .. level:getXMLFilename())
    109100    hideAllMenuSheets()
    110101end
     
    127118
    128119function P.CampaignMenuBackButton_clicked(e)
    129     orxonox.execute("startMainMenu")
    130     hideMenuSheet("CampaignMenu")
     120    hideMenuSheet(P.name)
    131121end
    132122
  • code/branches/HUD_HS16/data/gui/scripts/MainMenu.lua

    r11497 r11499  
    22
    33local P = createMenuSheet("MainMenu")
    4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "HighscoreMenu", "SettingsMenu", "CreditsMenu" }
     4P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" }
    55
    66function P.onLoad()
     
    2222
    2323    P:setButton(4, 1, {
    24             ["button"] = winMgr:getWindow("orxonox/HighscoreButton"),
    25             ["callback"]  = P.MultiplayerButton_clicked
    26     })
    27 
    28     P:setButton(5, 1, {
    2924            ["button"] = winMgr:getWindow("orxonox/SettingsButton"),
    3025            ["callback"]  = P.SettingsButton_clicked
    3126    })
    3227
    33     P:setButton(6, 1, {
     28    P:setButton(5, 1, {
    3429            ["button"] = winMgr:getWindow("orxonox/CreditsButton"),
    3530            ["callback"]  = P.CreditsButton_clicked
    3631    })
    3732
    38     P:setButton(7, 1, {
     33    P:setButton(6, 1, {
    3934            ["button"] = winMgr:getWindow("orxonox/ExitButton"),
    4035            ["callback"]  = P.ExitButton_clicked
     
    5651end
    5752
    58 function P.HighscoreButton_clicked(e)
    59     showMenuSheet("HighscoreMenu", true)
    60 end
    61 
    6253function P.SettingsButton_clicked(e)
    6354    showMenuSheet("SettingsMenu", true)
  • code/branches/HUD_HS16/data/gui/scripts/MiscConfigMenu.lua

    r11497 r11499  
    1818
    1919    P.commandList = {}
    20     table.insert(P.commandList, "Highscore playerName_")
    2120    table.insert(P.commandList, "KeyBinder mouseSensitivity_")
    2221    table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_")
     
    4443
    4544    P.nameList = {}
    46     table.insert(P.nameList, "Playername")
    4745    table.insert(P.nameList, "Mouse sensitivity")
    4846    table.insert(P.nameList, "Mouse acceleration")
  • code/branches/HUD_HS16/data/gui/scripts/SingleplayerMenu.lua

    r11497 r11499  
    172172
    173173function P.CampaignButton_clicked(e)
    174     -- showMenuSheet("CampaignMenu", true)
    175     hideAllMenuSheets()
    176     orxonox.execute("startGame StoryModeMap.oxw")
     174    showMenuSheet("CampaignMenu", true)
    177175end
    178176
Note: See TracChangeset for help on using the changeset viewer.