Last change
on this file since 5428 was
5427,
checked in by bknecht, 16 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 | |
---|
1 | layoutPath = "MainMenu.layout" |
---|
2 | |
---|
3 | -- events for mainmenu |
---|
4 | function button_quit_clicked(e) |
---|
5 | hideGUI() |
---|
6 | orxonox.CommandExecutor:execute("exit") |
---|
7 | end |
---|
8 | |
---|
9 | function button_standalone_clicked(e) |
---|
10 | orxonox.CommandExecutor:execute("selectGameState standalone") |
---|
11 | toggleGUI() |
---|
12 | end |
---|
13 | |
---|
14 | function button_server_clicked(e) |
---|
15 | orxonox.CommandExecutor:execute("selectGameState server") |
---|
16 | hideGUI() |
---|
17 | end |
---|
18 | |
---|
19 | function button_dedicated_clicked(e) |
---|
20 | orxonox.CommandExecutor:execute("selectGameState dedicated") |
---|
21 | hideGUI() |
---|
22 | end |
---|
23 | |
---|
24 | function button_client_clicked(e) |
---|
25 | orxonox.CommandExecutor:execute("selectGameState client") |
---|
26 | hideGUI() |
---|
27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.