Changeset 6746 for code/trunk/data/gui/scripts/MultiplayerMenu.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/MultiplayerMenu.lua
r6417 r6746 1 1 -- MultiplayerMenu.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 if _REQUIREDNAME == nil then 6 MultiplayerMenu = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 3 local P = createMenuSheet("MultiplayerMenu") 10 4 11 P.filename = "MultiplayerMenu" 12 P.layoutString = "MultiplayerMenu.layout" 13 14 function P:init() 5 function P.onLoad() 15 6 listbox = winMgr:getWindow("orxonox/MultiplayerLevelListbox") 16 7 preselect = orxonox.LevelManager:getInstance():getDefaultLevel() … … 30 21 for k,v in pairs(levelList) do 31 22 item = CEGUI.createListboxTextItem(v) 32 item:setSelectionBrushImage( "TaharezLook", "MultiListSelectionBrush")23 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") 33 24 CEGUI.toListbox(listbox):addItem(item) 34 25 if v .. ".oxw" == preselect then … … 71 62 orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw") 72 63 orxonox.execute(multiplayerMode) 73 hideAll GUIs()64 hideAllMenuSheets() 74 65 end 75 66 end 76 67 77 68 function P.MultiplayerBackButton_clicked(e) 78 hide GUI(P.filename)69 hideMenuSheet(P.name) 79 70 end 80 71
Note: See TracChangeset
for help on using the changeset viewer.