Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/CreditsMenu.lua @ 8892

Last change on this file since 8892 was 8888, checked in by smerkli, 13 years ago

Improved file formatting for better readability and reduced eyestrain :D

  • Property svn:eol-style set to native
File size: 1.1 KB
RevLine 
[6363]1-- CreditsMenu.lua
2
[6746]3local P = createMenuSheet("CreditsMenu")
[6363]4
[7732]5P.scrollbarWidth = 13
[7689]6
7function P.onLoad()
[8079]8    P:setButton(1, 1, {
[7689]9            ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"),
[8079]10            ["callback"]  = P.CreditsBackButton_clicked
11    })
[7689]12end
13
14function P.onShow()
[7732]15    local description = winMgr:getWindow("orxonox/CreditsText")
16    description:setProperty("HorzFormatting", "WordWrapLeftAligned")
17    description:setProperty("VertFormatting", "TopAligned")
[8888]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 \\
22      http://www.orxonox.net \n \
23      Credits:")
[7732]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))
[7689]28end
29
[6363]30function P.CreditsBackButton_clicked(e)
[6746]31    hideMenuSheet(P.name)
[6363]32end
33
34return P
35
Note: See TracBrowser for help on using the repository browser.