Changeset 6746 for code/trunk/data/gui/scripts/AudioMenu.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/AudioMenu.lua
r6417 r6746 1 1 -- AudioMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 if _REQUIREDNAME == nil then 6 AudioMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createMenuSheet("AudioMenu") 10 4 11 P.filename = "AudioMenu" 12 P.layoutString = "AudioMenu.layout" 13 14 function P:init() 5 function P.onLoad() 15 6 soundMgr = orxonox.SoundManager:getInstance() 16 7 block = false … … 43 34 for k,v in pairs(themeList) do 44 35 item = CEGUI.createListboxTextItem(v) 45 item:setSelectionBrushImage( "TaharezLook", "MultiListSelectionBrush")36 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") 46 37 CEGUI.toListbox(listboxwindow):addItem(item) 47 38 end … … 178 169 179 170 function P.AudioBackButton_clicked(e) 180 hide GUI(P.filename)171 hideMenuSheet(P.name) 181 172 end 182 173
Note: See TracChangeset
for help on using the changeset viewer.