|
Last change
on this file since 9352 was
8888,
checked in by smerkli, 14 years ago
|
|
Improved file formatting for better readability and reduced eyestrain 
|
-
Property svn:eol-style set to
native
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | -- CreditsMenu.lua |
|---|
| 2 | |
|---|
| 3 | local P = createMenuSheet("CreditsMenu") |
|---|
| 4 | |
|---|
| 5 | P.scrollbarWidth = 13 |
|---|
| 6 | |
|---|
| 7 | function P.onLoad() |
|---|
| 8 | P:setButton(1, 1, { |
|---|
| 9 | ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"), |
|---|
| 10 | ["callback"] = P.CreditsBackButton_clicked |
|---|
| 11 | }) |
|---|
| 12 | end |
|---|
| 13 | |
|---|
| 14 | function P.onShow() |
|---|
| 15 | local description = winMgr:getWindow("orxonox/CreditsText") |
|---|
| 16 | description:setProperty("HorzFormatting", "WordWrapLeftAligned") |
|---|
| 17 | description:setProperty("VertFormatting", "TopAligned") |
|---|
| 18 | description:setText(" Orxonox version 0.0.3 \n \ |
|---|
| 19 | Programming Language: C++ - lua - tcl \ |
|---|
| 20 | Environment: OpenAL - Ogre - OIS - CEGUI - enet - ODE \ |
|---|
| 21 | Licence: GNU General Public Licence - Creative Commons \n \ |
|---|
| 22 | http://www.orxonox.net \n \ |
|---|
| 23 | Credits:") |
|---|
| 24 | |
|---|
| 25 | description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(1.0, 0))) |
|---|
| 26 | height = getStaticTextWindowHeight(description) |
|---|
| 27 | description:setHeight(CEGUI.UDim(0, height)) |
|---|
| 28 | end |
|---|
| 29 | |
|---|
| 30 | function P.CreditsBackButton_clicked(e) |
|---|
| 31 | hideMenuSheet(P.name) |
|---|
| 32 | end |
|---|
| 33 | |
|---|
| 34 | return P |
|---|
| 35 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.