Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12357 was 11797, checked in by landauf, 7 years ago

updated CreditsMenu.lua and SingleplayerMenu.lua to cegui 0.8

  • Property svn:eol-style set to native
File size: 625 bytes
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, {
[11797]9            ["button"] = P.window:getChild("CreditsBackButton"),
[8079]10            ["callback"]  = P.CreditsBackButton_clicked
11    })
[7689]12end
13
14function P.onShow()
[11797]15    local description = P.window:getChild("CreditsWindow/CreditsMenuWrapper/CreditsMenuPane/CreditsText")
[7732]16
17    height = getStaticTextWindowHeight(description)
[11797]18    description:setSize(CEGUI.USize(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(0.0, height)))
[7689]19end
20
[6363]21function P.CreditsBackButton_clicked(e)
[6746]22    hideMenuSheet(P.name)
[6363]23end
24
25return P
26
Note: See TracBrowser for help on using the repository browser.