Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 2:50:16 PM (14 years ago)
Author:
rgrieder
Message:

Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.

Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/gui/scripts/GameplayMenu.lua

    r6417 r6746  
    11-- GameplayMenu.lua
    22
    3 BasicGUI = require("BasicGUI")
    4 local P = BasicGUI:new() --inherit everything from the gui package
    5 if _REQUIREDNAME == nil then
    6     GameplayMenu = P
    7 else
    8     _G[_REQUIREDNAME] = P
    9 end
     3local P = createMenuSheet("GameplayMenu")
    104
    11 P.filename = "GameplayMenu"
    12 P.layoutString = "GameplayMenu.layout"
    13 
    14 function P:init()
     5function P.onLoad()
    156    dropdown = winMgr:getWindow("orxonox/ThemeCombobox")
    167    local themeList = {}
     
    2011    for k,v in pairs(themeList) do
    2112        item = CEGUI.createListboxTextItem(v)
    22         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     13        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    2314        CEGUI.toCombobox(dropdown):addItem(item)
    2415    end
     
    2718function P.GameplayThemeCombobox_changed(e)
    2819    -- theme
    29     debug("event: theme")
     20    logMessage(0, "event: theme")
    3021end
    3122
    3223function P.GameplayDifficultyEasyButton_clicked(e)
    3324    -- difficulty easy
    34     debug("event: easy")
     25    logMessage(0, "event: easy")
    3526end
    3627
    3728function P.GameplayDifficultyNormalButton_clicked(e)
    3829    -- difficulty normal
    39     debug("event: normal")
     30    logMessage(0, "event: normal")
    4031end
    4132
    4233function P.GameplayDifficultyHardButton_clicked(e)
    4334    -- difficulty hard
    44     debug("event: hard")
     35    logMessage(0, "event: hard")
    4536end
    4637
    4738function P.GameplayBackButton_clicked(e)
    48     hideGUI(P.filename)
     39    hideMenuSheet(P.name)
    4940end
    5041
Note: See TracChangeset for help on using the changeset viewer.