Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_HS18/data/gui/scripts/CreditsMenu.lua @ 12177

Last change on this file since 12177 was 12177, checked in by siramesh, 5 years ago

Super Orxo Bros Final (Sidharth Ramesh, Nisa Balta, Jeff Ren)

File size: 625 bytes
Line 
1-- CreditsMenu.lua
2
3local P = createMenuSheet("CreditsMenu")
4
5P.scrollbarWidth = 13
6
7function P.onLoad()
8    P:setButton(1, 1, {
9            ["button"] = P.window:getChild("CreditsBackButton"),
10            ["callback"]  = P.CreditsBackButton_clicked
11    })
12end
13
14function P.onShow()
15    local description = P.window:getChild("CreditsWindow/CreditsMenuWrapper/CreditsMenuPane/CreditsText")
16
17    height = getStaticTextWindowHeight(description)
18    description:setSize(CEGUI.USize(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(0.0, height)))
19end
20
21function P.CreditsBackButton_clicked(e)
22    hideMenuSheet(P.name)
23end
24
25return P
26
Note: See TracBrowser for help on using the repository browser.