Changeset 7663 for code/branches/menu/data/gui/scripts/MultiplayerMenu.lua
- Timestamp:
- Nov 24, 2010, 3:33:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/gui/scripts/MultiplayerMenu.lua
r7587 r7663 3 3 local P = createMenuSheet("MultiplayerMenu") 4 4 5 P.buttonList = {} 6 5 7 function P.onLoad() 6 P.multiplayerMode = "startClient" 8 P.multiplayerMode = "startClient" 9 10 local item = { 11 ["button"] = winMgr:getWindow("orxonox/MultiplayerJoinButton2"), 12 ["function"] = P.MultiplayerJoinButton_clicked 13 } 14 P.buttonList[1] = item 15 16 local item = { 17 ["button"] = winMgr:getWindow("orxonox/MultiplayerHostButton2"), 18 ["function"] = P.MultiplayerHostButton_clicked 19 } 20 P.buttonList[2] = item 21 22 local item = { 23 ["button"] = winMgr:getWindow("orxonox/MultiplayerBackButton"), 24 ["function"] = P.MultiplayerBackButton_clicked 25 } 26 P.buttonList[4] = item 27 7 28 end 8 29 9 30 function P.onShow() 10 31 P.showServerList() 32 P.oldindex = -2 33 P.index = -1 11 34 end 12 35 … … 109 132 end 110 133 134 function P.onKeyPressed() 135 cout(0,code) 136 buttonIteratorHelper(P.buttonList, code, P, 2, 2) 137 --indexTester(P.buttonList,code,P,2,3) 138 end 139 111 140 return P 112 141
Note: See TracChangeset
for help on using the changeset viewer.