| Last change
                  on this file since 6883 was
                  6388,
                  checked in by rgrieder, 16 years ago | 
        
          | 
Found some end of line leftover spaces.
 | 
        
          | 
              
                  Property svn:eol-style set to
                  native | 
        | File size:
            1.2 KB | 
      
      
        
  | Line |  | 
|---|
| 1 | -- GameplayMenu.lua | 
|---|
| 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 | 
|---|
| 10 |  | 
|---|
| 11 | P.filename = "GameplayMenu" | 
|---|
| 12 | P.layoutString = "GameplayMenu.layout" | 
|---|
| 13 |  | 
|---|
| 14 | function 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 | 
|---|
| 25 | end | 
|---|
| 26 |  | 
|---|
| 27 | function P.GameplayThemeCombobox_changed(e) | 
|---|
| 28 | -- theme | 
|---|
| 29 | debug("event: theme") | 
|---|
| 30 | end | 
|---|
| 31 |  | 
|---|
| 32 | function P.GameplayDifficultyEasyButton_clicked(e) | 
|---|
| 33 | -- difficulty easy | 
|---|
| 34 | debug("event: easy") | 
|---|
| 35 | end | 
|---|
| 36 |  | 
|---|
| 37 | function P.GameplayDifficultyNormalButton_clicked(e) | 
|---|
| 38 | -- difficulty normal | 
|---|
| 39 | debug("event: normal") | 
|---|
| 40 | end | 
|---|
| 41 |  | 
|---|
| 42 | function P.GameplayDifficultyHardButton_clicked(e) | 
|---|
| 43 | -- difficulty hard | 
|---|
| 44 | debug("event: hard") | 
|---|
| 45 | end | 
|---|
| 46 |  | 
|---|
| 47 | function P.GameplayBackButton_clicked(e) | 
|---|
| 48 | hideGUI(P.filename) | 
|---|
| 49 | end | 
|---|
| 50 |  | 
|---|
| 51 | return P | 
|---|
| 52 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.