Changeset 6746 for code/trunk/data/gui/scripts/GraphicsMenu.lua
- Timestamp:
- Apr 16, 2010, 2:50:16 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/GraphicsMenu.lua
r6417 r6746 1 1 -- GraphicsMenu.lua 2 2 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 3 local P = createMenuSheet("GraphicsMenu") 10 4 11 P.filename = "GraphicsMenu" 12 P.layoutString = "GraphicsMenu.layout" 13 14 function P:init() 5 function P.onLoad() 15 6 block = true 16 7 file = orxonox.PathConfig:getConfigPathString() .. orxonox.getConfig("GraphicsManager", "ogreConfigFile_") … … 62 53 for k,v in pairs(resolutionList) do 63 54 item = CEGUI.createListboxTextItem(v) 64 item:setSelectionBrushImage( "TaharezLook", "MultiListSelectionBrush")55 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") 65 56 CEGUI.toListbox(listboxwindow):addItem(item) 66 57 end … … 152 143 if scrollbar_active == false then 153 144 -- brightness 154 debug("event: brightness")145 logMessage(0, "event: brightness") 155 146 end 156 147 end … … 162 153 function P.GraphicsBrightnessScrollbar_ended(e) 163 154 -- brightness 164 debug("event: brightness")155 logMessage(0, "event: brightness") 165 156 scrollbar_active = false 166 157 end … … 201 192 202 193 function P.GraphicsBackButton_clicked(e) 203 hide GUI(P.filename)194 hideMenuSheet(P.name) 204 195 end 205 196
Note: See TracChangeset
for help on using the changeset viewer.