Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/map/data/gui/scripts/MainMenu.lua @ 11642

Last change on this file since 11642 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: 752 bytes
Line 
1-- MainMenu.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    MainMenu = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "MainMenu"
12P.layoutString = "MainMenu.layout"
13
14-- events for MainMenu
15function P.QuickGameTestButton_clicked(e)
16    orxonox.execute("startGame")
17end
18
19function P.SingleplayerButton_clicked(e)
20    showGUI("SingleplayerMenu", true)
21end
22
23function P.MultiplayerButton_clicked(e)
24    showGUI("MultiplayerMenu", true)
25end
26
27function P.SettingsButton_clicked(e)
28    showGUI("SettingsMenu", true)
29end
30
31function P.CreditsButton_clicked(e)
32    showGUI("CreditsMenu", true)
33end
34
35function P.ExitButton_clicked(e)
36    orxonox.execute("exit")
37end
38
39return P
40
Note: See TracBrowser for help on using the repository browser.