Last change
on this file since 8805 was
7163,
checked in by dafrick, 14 years ago
|
Merged presentation3 branch into trunk.
|
-
Property svn:eol-style set to
native
|
File size:
623 bytes
|
Rev | Line | |
---|
[6600] | 1 | -- InGamePickupHUD.lua |
---|
| 2 | |
---|
| 3 | BasicGUI = require("BasicGUI") |
---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
| 5 | if _REQUIREDNAME == nil then |
---|
| 6 | InGamePickupHUD = P |
---|
| 7 | else |
---|
| 8 | _G[_REQUIREDNAME] = P |
---|
| 9 | end |
---|
| 10 | |
---|
| 11 | P.filename = "InGamePickupHUD" |
---|
| 12 | P.layoutString = "InGamePickupHUD.layout" |
---|
| 13 | |
---|
| 14 | function P:init() |
---|
| 15 | end |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | -- events for ingamemenu |
---|
| 19 | |
---|
| 20 | |
---|
[6917] | 21 | function P.button_Pickup_clicked(e) |
---|
| 22 | orxonox.Game:getInstance():popState() |
---|
| 23 | orxonox.Game:getInstance():popState() |
---|
| 24 | orxonox.Game:getInstance():requestState("mainmenu") |
---|
| 25 | hideGUI("InGameMenu") |
---|
| 26 | end |
---|
[6600] | 27 | |
---|
[6614] | 28 | function P.close_button_clicked() |
---|
| 29 | hideGUI("InGamePickupHUD") |
---|
| 30 | end |
---|
| 31 | |
---|
[6600] | 32 | return P |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.