Changeset 7687 for code/branches/menu/data/gui/scripts/MultiplayerMenu.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/MultiplayerMenu.lua
r7663 r7687 8 8 P.multiplayerMode = "startClient" 9 9 10 --button are arranged in a 2x2 matrix, the left lower item is nil 10 11 local item = { 11 12 ["button"] = winMgr:getWindow("orxonox/MultiplayerJoinButton2"), 12 ["function"] = P.MultiplayerJoinButton _clicked13 ["function"] = P.MultiplayerJoinButton2_clicked 13 14 } 14 15 P.buttonList[1] = item … … 16 17 local item = { 17 18 ["button"] = winMgr:getWindow("orxonox/MultiplayerHostButton2"), 18 ["function"] = P.MultiplayerHostButton _clicked19 ["function"] = P.MultiplayerHostButton2_clicked 19 20 } 20 21 P.buttonList[2] = item … … 30 31 function P.onShow() 31 32 P.showServerList() 33 34 --indices to iterate through buttonlist 32 35 P.oldindex = -2 33 36 P.index = -1 … … 133 136 134 137 function P.onKeyPressed() 135 cout(0,code)136 138 buttonIteratorHelper(P.buttonList, code, P, 2, 2) 137 --indexTester(P.buttonList,code,P,2,3)138 139 end 139 140
Note: See TracChangeset
for help on using the changeset viewer.