|
Last change
on this file since 12222 was
11783,
checked in by landauf, 8 years ago
|
|
merged Presentation_HS17_merge back to trunk
|
-
Property svn:eol-style set to
native
|
|
File size:
668 bytes
|
| Line | |
|---|
| 1 | local P = createMenuSheet("dialogue") |
|---|
| 2 | |
|---|
| 3 | function P.onLoad() |
|---|
| 4 | --buttons are arranged in a 2x1 Matrix (list) |
|---|
| 5 | P:setButton(1, 1, { |
|---|
| 6 | ["button"] = winMgr:getWindow("orxonox/QuickGameTestButton"), |
|---|
| 7 | ["callback"] = P.QuickGameTestButton_clicked |
|---|
| 8 | }) |
|---|
| 9 | |
|---|
| 10 | P:setButton(2, 1, { |
|---|
| 11 | ["button"] = winMgr:getWindow("orxonox/SingleplayerButton"), |
|---|
| 12 | ["callback"] = P.SingleplayerButton_clicked |
|---|
| 13 | }) |
|---|
| 14 | |
|---|
| 15 | end |
|---|
| 16 | |
|---|
| 17 | -- events for options |
|---|
| 18 | function P.QuickGameTestButton_clicked(e) |
|---|
| 19 | hideAllMenuSheets() |
|---|
| 20 | orxonox.execute("startGame") |
|---|
| 21 | end |
|---|
| 22 | |
|---|
| 23 | function P.SingleplayerButton_clicked(e) |
|---|
| 24 | showMenuSheet("SingleplayerMenu", true) |
|---|
| 25 | end |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | return P |
|---|
| 30 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.