Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/GameplayMenu.lua @ 6595

Last change on this file since 6595 was 6595, checked in by rgrieder, 15 years ago

Merged remaining revisions from gamestate to gamestates2.

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