Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8324 was 8079, checked in by landauf, 14 years ago

merged usability branch back to trunk

incomplete summary of the changes in this branch:

  • enhanced keyboard navigation in GUIs
  • implemented new graphics menu and changeable window size at runtime
  • added developer mode
  • HUD shows if game is paused, game pauses if ingame menu is opened
  • removed a few obsolete commands and hid some that are more for internal use
  • numpad works in console and gui
  • faster loading of level info
  • enhanced usage of compositors (Shader class)
  • improved camera handling, configurable FOV and aspect ratio
  • 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")
18    description:setText("                                   Orxonox version 0.0.3 \n\n       Programming Language:  C++ - lua - tcl \n       Environment:  OpenAL - Ogre - OIS - CEGUI - enet - ODE \n       Licence:  GNU General Public Licence - Creative Commons \n       http://www.orxonox.net \n \n       Credits:")
19
20    description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(1.0, 0)))
21    height = getStaticTextWindowHeight(description)
22    description:setHeight(CEGUI.UDim(0, height))
[7689]23end
24
[6363]25function P.CreditsBackButton_clicked(e)
[6746]26    hideMenuSheet(P.name)
[6363]27end
28
29return P
30
Note: See TracBrowser for help on using the repository browser.