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/QuestGUI.lua

    r7456 r7732  
    2121
    2222    P.player = orxonox.GUIManager:getInstance():getPlayer(P.name)
    23     P.rootWindow = P.createQuestGUI();
     23    P.rootWindow = P.createQuestGUI()
    2424
    2525    questsList:addChildWindow(P.rootWindow)
     
    7474    end
    7575
    76     return index;
     76    return index
    7777end
    7878
     
    140140    offset = offset + height
    141141
    142     local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title");
     142    local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title")
    143143    window:addChildWindow(descriptionTitle)
    144144    descriptionTitle:setProperty("HorzFormatting", "HorzCentred")
     
    151151    offset = offset + height
    152152
    153     local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description");
     153    local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description")
    154154    window:addChildWindow(description)
    155155    description:setProperty("HorzFormatting", "WordWrapLeftAligned")
     
    165165    local numHints = orxonox.QuestManager:getInstance():getNumHints(quest, P.player)
    166166    if numHints > 0 then
    167         local hintsTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Hints/Title");
     167        local hintsTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Hints/Title")
    168168        window:addChildWindow(hintsTitle)
    169169        hintsTitle:setProperty("HorzFormatting", "HorzCentred")
     
    247247    local offset = 0
    248248   
    249     local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title");
     249    local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title")
    250250    window:addChildWindow(descriptionTitle)
    251251    descriptionTitle:setProperty("HorzFormatting", "HorzCentred")
     
    258258    offset = offset + height
    259259
    260     local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description");
     260    local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description")
    261261    window:addChildWindow(description)
    262262    description:setProperty("HorzFormatting", "WordWrapLeftAligned")
Note: See TracChangeset for help on using the changeset viewer.