Changeset 6746 for code/trunk/data/gui/scripts/GameplayMenu.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/GameplayMenu.lua
r6417 r6746 1 1 -- GameplayMenu.lua 2 2 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 3 local P = createMenuSheet("GameplayMenu") 10 4 11 P.filename = "GameplayMenu" 12 P.layoutString = "GameplayMenu.layout" 13 14 function P:init() 5 function P.onLoad() 15 6 dropdown = winMgr:getWindow("orxonox/ThemeCombobox") 16 7 local themeList = {} … … 20 11 for k,v in pairs(themeList) do 21 12 item = CEGUI.createListboxTextItem(v) 22 item:setSelectionBrushImage( "TaharezLook", "MultiListSelectionBrush")13 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") 23 14 CEGUI.toCombobox(dropdown):addItem(item) 24 15 end … … 27 18 function P.GameplayThemeCombobox_changed(e) 28 19 -- theme 29 debug("event: theme")20 logMessage(0, "event: theme") 30 21 end 31 22 32 23 function P.GameplayDifficultyEasyButton_clicked(e) 33 24 -- difficulty easy 34 debug("event: easy")25 logMessage(0, "event: easy") 35 26 end 36 27 37 28 function P.GameplayDifficultyNormalButton_clicked(e) 38 29 -- difficulty normal 39 debug("event: normal")30 logMessage(0, "event: normal") 40 31 end 41 32 42 33 function P.GameplayDifficultyHardButton_clicked(e) 43 34 -- difficulty hard 44 debug("event: hard")35 logMessage(0, "event: hard") 45 36 end 46 37 47 38 function P.GameplayBackButton_clicked(e) 48 hide GUI(P.filename)39 hideMenuSheet(P.name) 49 40 end 50 41
Note: See TracChangeset
for help on using the changeset viewer.