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

    r6417 r6746  
    11-- GraphicsMenu.lua
    22
    3 BasicGUI = require("BasicGUI")
    4 local P = BasicGUI:new() --inherit everything from the gui package
    5 if _REQUIREDNAME == nil then
    6     GraphicsMenu = P
    7 else
    8     _G[_REQUIREDNAME] = P
    9 end
     3local P = createMenuSheet("GraphicsMenu")
    104
    11 P.filename = "GraphicsMenu"
    12 P.layoutString = "GraphicsMenu.layout"
    13 
    14 function P:init()
     5function P.onLoad()
    156    block = true
    167    file = orxonox.PathConfig:getConfigPathString() .. orxonox.getConfig("GraphicsManager", "ogreConfigFile_")
     
    6253    for k,v in pairs(resolutionList) do
    6354        item = CEGUI.createListboxTextItem(v)
    64         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     55        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    6556        CEGUI.toListbox(listboxwindow):addItem(item)
    6657    end
     
    152143    if scrollbar_active == false then
    153144        -- brightness
    154         debug("event: brightness")
     145        logMessage(0, "event: brightness")
    155146    end
    156147end
     
    162153function P.GraphicsBrightnessScrollbar_ended(e)
    163154    -- brightness
    164     debug("event: brightness")
     155    logMessage(0, "event: brightness")
    165156    scrollbar_active = false
    166157end
     
    201192
    202193function P.GraphicsBackButton_clicked(e)
    203     hideGUI(P.filename)
     194    hideMenuSheet(P.name)
    204195end
    205196
Note: See TracChangeset for help on using the changeset viewer.