|
Last change
on this file since 7711 was
7689,
checked in by dafrick, 15 years ago
|
|
Merging menu branch to trunk.
|
-
Property svn:eol-style set to
native
|
|
File size:
559 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 | --indices to iterate through buttonlist |
|---|
| 17 | P.oldindex = -2 |
|---|
| 18 | P.index = -1 |
|---|
| 19 | end |
|---|
| 20 | |
|---|
| 21 | function P.CreditsBackButton_clicked(e) |
|---|
| 22 | hideMenuSheet(P.name) |
|---|
| 23 | end |
|---|
| 24 | |
|---|
| 25 | function P.onKeyPressed() |
|---|
| 26 | buttonIteratorHelper(P.buttonList, code, P, 1, 1) |
|---|
| 27 | end |
|---|
| 28 | |
|---|
| 29 | return P |
|---|
| 30 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.