Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/gui/scripts/GameplayMenu.lua @ 6334

Last change on this file since 6334 was 6206, checked in by cmueri, 15 years ago

The new menus (but not all functions of the menu) are now available.

File size: 1.2 KB
RevLine 
[6206]1-- GameplayMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    GameplayMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "GameplayMenu"
12P.layoutString = "GameplayMenu.layout"
13
14function P:init()
15    dropdown = winMgr:getWindow("orxonox/ThemeCombobox")
16    local themeList = {}
17    table.insert(themeList, "Theme 1")
18    table.insert(themeList, "Theme 2")
19    table.insert(themeList, "Theme 3")
20    for k,v in pairs(themeList) do
21        item = CEGUI.createListboxTextItem(v)       
22        item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
23        CEGUI.toCombobox(dropdown):addItem(item)
24    end
25end
26
27function P.GameplayThemeCombobox_changed(e)
28    -- theme
29    debug("event: theme")
30end
31
32function P.GameplayDifficultyEasyButton_clicked(e)
33    -- difficulty easy
34    debug("event: easy")
35end
36
37function P.GameplayDifficultyNormalButton_clicked(e)
38    -- difficulty normal
39    debug("event: normal")
40end
41
42function P.GameplayDifficultyHardButton_clicked(e)
43    -- difficulty hard
44    debug("event: hard")
45end
46
47function P.GameplayBackButton_clicked(e)
48    hideGUI(P.filename)
49end
50
51return P
52
Note: See TracBrowser for help on using the repository browser.