Changeset 7922 for code/branches/usability/data/gui/scripts/CreditsMenu.lua
- Timestamp:
- Feb 20, 2011, 12:47:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/CreditsMenu.lua
r7732 r7922 3 3 local P = createMenuSheet("CreditsMenu") 4 4 5 P.buttonList = {}6 5 P.scrollbarWidth = 13 7 6 8 7 function P.onLoad() 9 local item = { 8 P:initButtons(1, 1) 9 P:setButton(1, 1, { 10 10 ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), 11 ["function"] = P.CreditsBackButton_clicked 12 } 13 P.buttonList[1] = item 11 ["callback"] = P.CreditsBackButton_clicked 12 }) 14 13 end 15 14 16 15 function P.onShow() 17 --indices to iterate through buttonlist18 P.oldindex = -219 P.index = -120 21 16 local description = winMgr:getWindow("orxonox/CreditsText") 22 17 description:setProperty("HorzFormatting", "WordWrapLeftAligned") … … 33 28 end 34 29 35 function P.onKeyPressed()36 buttonIteratorHelper(P.buttonList, code, P, 1, 1)37 end38 39 30 return P 40 31
Note: See TracChangeset
for help on using the changeset viewer.