Last change
on this file since 9266 was
9016,
checked in by jo, 13 years ago
|
Merging presentation2011 branch to trunk. Please check for possible bugs.
|
-
Property svn:eol-style set to
native
|
File size:
593 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- CreditsMenu.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("CreditsMenu") |
---|
[6363] | 4 | |
---|
[7732] | 5 | P.scrollbarWidth = 13 |
---|
[7689] | 6 | |
---|
| 7 | function P.onLoad() |
---|
[8079] | 8 | P:setButton(1, 1, { |
---|
[7689] | 9 | ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), |
---|
[8079] | 10 | ["callback"] = P.CreditsBackButton_clicked |
---|
| 11 | }) |
---|
[7689] | 12 | end |
---|
| 13 | |
---|
| 14 | function P.onShow() |
---|
[7732] | 15 | local description = winMgr:getWindow("orxonox/CreditsText") |
---|
| 16 | |
---|
| 17 | height = getStaticTextWindowHeight(description) |
---|
[9016] | 18 | description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(0.0, height))) |
---|
[7689] | 19 | end |
---|
| 20 | |
---|
[6363] | 21 | function P.CreditsBackButton_clicked(e) |
---|
[6746] | 22 | hideMenuSheet(P.name) |
---|
[6363] | 23 | end |
---|
| 24 | |
---|
| 25 | return P |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.