Last change
on this file since 7669 was
7663,
checked in by konrad, 14 years ago
|
key handling in some menu sheets has been added.
|
-
Property svn:eol-style set to
native
|
File size:
515 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- CreditsMenu.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("CreditsMenu") |
---|
[6363] | 4 | |
---|
[7663] | 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 | P.oldindex = -2 |
---|
| 17 | P.index = -1 |
---|
| 18 | end |
---|
| 19 | |
---|
[6363] | 20 | function P.CreditsBackButton_clicked(e) |
---|
[6746] | 21 | hideMenuSheet(P.name) |
---|
[6363] | 22 | end |
---|
| 23 | |
---|
[7663] | 24 | function P.onKeyPressed() |
---|
| 25 | buttonIteratorHelper(P.buttonList, code, P, 1, 1) |
---|
| 26 | end |
---|
| 27 | |
---|
[6363] | 28 | return P |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.