Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/gui/scripts/mainmenu.lua @ 5427

Last change on this file since 5427 was 5427, checked in by bknecht, 15 years ago

CEGUI code structure is now set. Images are loaded into imagesets(XML), those are loaded via schemes(XML), which are loaded in lua scripts. Each gui should now be able to be loaded via a seperate lua-script which itself loads its own layout(XML).

File size: 629 bytes
Line 
1layoutPath = "MainMenu.layout"
2
3-- events for mainmenu
4function button_quit_clicked(e)
5  hideGUI()
6  orxonox.CommandExecutor:execute("exit")
7end
8
9function button_standalone_clicked(e)
10  orxonox.CommandExecutor:execute("selectGameState standalone")
11  toggleGUI()
12end
13
14function button_server_clicked(e)
15  orxonox.CommandExecutor:execute("selectGameState server")
16  hideGUI()
17end
18
19function button_dedicated_clicked(e)
20  orxonox.CommandExecutor:execute("selectGameState dedicated")
21  hideGUI()
22end
23
24function button_client_clicked(e)
25  orxonox.CommandExecutor:execute("selectGameState client")
26  hideGUI()
27end
Note: See TracBrowser for help on using the repository browser.