Last change
on this file since 7670 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
|
Line | |
---|
1 | -- CreditsMenu.lua |
---|
2 | |
---|
3 | local P = createMenuSheet("CreditsMenu") |
---|
4 | |
---|
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 | |
---|
20 | function P.CreditsBackButton_clicked(e) |
---|
21 | hideMenuSheet(P.name) |
---|
22 | end |
---|
23 | |
---|
24 | function P.onKeyPressed() |
---|
25 | buttonIteratorHelper(P.buttonList, code, P, 1, 1) |
---|
26 | end |
---|
27 | |
---|
28 | return P |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.