Last change
on this file since 7715 was
7689,
checked in by dafrick, 14 years ago
|
Merging menu branch to trunk.
|
-
Property svn:eol-style set to
native
|
File size:
559 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- CreditsMenu.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("CreditsMenu") |
---|
[6363] | 4 | |
---|
[7689] | 5 | P.buttonList = {} |
---|
| 6 | |
---|
| 7 | function P.onLoad() |
---|
| 8 | local item = { |
---|
| 9 | ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), |
---|
| 10 | ["function"] = P.CreditsBackButton_clicked |
---|
| 11 | } |
---|
| 12 | P.buttonList[1] = item |
---|
| 13 | end |
---|
| 14 | |
---|
| 15 | function P.onShow() |
---|
| 16 | --indices to iterate through buttonlist |
---|
| 17 | P.oldindex = -2 |
---|
| 18 | P.index = -1 |
---|
| 19 | end |
---|
| 20 | |
---|
[6363] | 21 | function P.CreditsBackButton_clicked(e) |
---|
[6746] | 22 | hideMenuSheet(P.name) |
---|
[6363] | 23 | end |
---|
| 24 | |
---|
[7689] | 25 | function P.onKeyPressed() |
---|
| 26 | buttonIteratorHelper(P.buttonList, code, P, 1, 1) |
---|
| 27 | end |
---|
| 28 | |
---|
[6363] | 29 | return P |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.