Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/SettingsMenu.lua @ 6427

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

Merged presentation2 branch back to trunk.
Major new features:

  • Actual GUI with settings, etc.
  • Improved space ship steering (human interaction)
  • Rocket fire and more particle effects
  • Advanced sound framework
  • Property svn:eol-style set to native
File size: 899 bytes
Line 
1-- SettingsMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    SettingsMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "SettingsMenu"
12P.layoutString = "SettingsMenu.layout"
13
14function P.SettingsGameplayButton_clicked(e)
15    showGUI("GameplayMenu", true)
16end
17
18function P.SettingsMultiplayerOptionsButton_clicked(e)
19    showGUI("MultiplayerOptionsMenu", true)
20end
21
22function P.SettingsControlsButton_clicked(e)
23    showGUI("ControlsMenu", true)
24end
25
26function P.SettingsGraphicsButton_clicked(e)
27    showGUI("GraphicsMenu", true)
28end
29
30function P.SettingsAudioButton_clicked(e)
31    showGUI("AudioMenu", true)
32end
33
34function P.SettingsResetSettingsButton_clicked(e)
35    -- reset settings
36    debug("event: reset settings")
37end
38
39function P.SettingsBackButton_clicked(e)
40    hideGUI(P.filename)
41end
42
43return P
44
Note: See TracBrowser for help on using the repository browser.