Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 22, 2018, 1:03:44 AM (6 years ago)
Author:
landauf
Message:

updated CreditsMenu.lua and SingleplayerMenu.lua to cegui 0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/data/gui/scripts/CreditsMenu.lua

    r9016 r11797  
    77function P.onLoad()
    88    P:setButton(1, 1, {
    9             ["button"] = winMgr:getWindow("orxonox/CreditsBackButton"),
     9            ["button"] = P.window:getChild("CreditsBackButton"),
    1010            ["callback"]  = P.CreditsBackButton_clicked
    1111    })
     
    1313
    1414function P.onShow()
    15     local description = winMgr:getWindow("orxonox/CreditsText")
     15    local description = P.window:getChild("CreditsWindow/CreditsMenuWrapper/CreditsMenuPane/CreditsText")
    1616
    1717    height = getStaticTextWindowHeight(description)
    18     description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(0.0, height)))
     18    description:setSize(CEGUI.USize(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(0.0, height)))
    1919end
    2020
Note: See TracChangeset for help on using the changeset viewer.