Changeset 7687 for code/branches/menu/data/gui/scripts/HostMenu.lua
- Timestamp:
- Dec 1, 2010, 2:04:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/gui/scripts/HostMenu.lua
r7587 r7687 4 4 5 5 P.multiplayerMode = "startServer" 6 7 P.buttonList = {} 8 9 function P.onLoad() 10 P.multiplayerMode = "startClient" 11 12 local item = { 13 ["button"] = winMgr:getWindow("orxonox/HostMenuStartButton"), 14 ["function"] = P.HostMenuStartButton_clicked 15 } 16 P.buttonList[1] = item 17 18 local item = { 19 ["button"] = winMgr:getWindow("orxonox/HostMenuBackButton"), 20 ["function"] = P.HostMenuBackButton_clicked 21 } 22 P.buttonList[2] = item 23 end 6 24 7 25 function P.onShow() … … 19 37 P.showLevelList() 20 38 end 39 40 P.oldindex = -2 41 P.index = -1 21 42 22 43 end … … 80 101 81 102 103 function P.onKeyPressed() 104 buttonIteratorHelper(P.buttonList, code, P, 1, 2) 105 end 106 107 82 108 83 109 return P
Note: See TracChangeset
for help on using the changeset viewer.