Changeset 7687 for code/branches/menu/data/gui/scripts/MainMenu.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/MainMenu.lua
r7663 r7687 6 6 P.buttonList = {} 7 7 8 P.testArray = {}9 10 11 8 function P.onLoad() 9 --buttons are arranged in a 6x1 Matrix (list) 12 10 local item = { 13 11 ["button"] = winMgr:getWindow("orxonox/QuickGameTestButton"), … … 48 46 49 47 function P.onShow() 48 --indices to iterate through buttonlist 50 49 P.oldindex = -2 51 50 P.index = -1 … … 78 77 end 79 78 80 81 --[[82 list = {}83 local item =84 {85 ["button"] = buttonWindow,86 ["function"] = buttonFunction,87 }88 table.insert(list, item)89 item = list[i]90 91 for i,item in pairs(list) do92 button = item["button"]93 end94 95 --]]96 --[[97 function createList()98 list = {}99 100 local j101 while j < P.loadAlong102 local item =103 {104 ["button"] = buttonWindow,105 ["function"] = buttonFunction,106 }107 table.insert(list, item)108 end109 110 --]]111 112 79 function P.onKeyPressed() 113 cout(0,code)114 80 buttonIteratorHelper(P.buttonList, code, P, 6, 1) 115 --indexTester(P.buttonList,code,P,6,1)116 81 end 117 82
Note: See TracChangeset
for help on using the changeset viewer.