Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/InGamePickupHUD.lua @ 8019

Last change on this file since 8019 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
Line 
1-- InGamePickupHUD.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    InGamePickupHUD = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "InGamePickupHUD"
12P.layoutString = "InGamePickupHUD.layout"
13
14function P:init()
15end
16
17
18-- events for ingamemenu
19
20
21function P.button_Pickup_clicked(e)
22    orxonox.Game:getInstance():popState()
23    orxonox.Game:getInstance():popState()
24    orxonox.Game:getInstance():requestState("mainmenu")
25    hideGUI("InGameMenu")
26end
27
28function P.close_button_clicked()
29    hideGUI("InGamePickupHUD")
30end
31
32return P
33
Note: See TracBrowser for help on using the repository browser.