Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2010, 3:29:28 PM (13 years ago)
Author:
konrad
Message:

Credits Menu is now scrollable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/CreditsMenu.lua

    r7689 r7732  
    44
    55P.buttonList = {}
     6P.scrollbarWidth = 13
    67
    78function P.onLoad()
     
    1718    P.oldindex = -2
    1819    P.index = -1
     20
     21    local description = winMgr:getWindow("orxonox/CreditsText")
     22    description:setProperty("HorzFormatting", "WordWrapLeftAligned")
     23    description:setProperty("VertFormatting", "TopAligned")
     24    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:")
     25
     26    description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(1.0, 0)))
     27    height = getStaticTextWindowHeight(description)
     28    description:setHeight(CEGUI.UDim(0, height))
    1929end
    2030
Note: See TracChangeset for help on using the changeset viewer.