Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/gui/scripts/InGamePickupHUD.lua @ 6942

Last change on this file since 6942 was 6942, checked in by scheusso, 14 years ago

merging hudelements into presentation3 and reducing (or increasing) output level of lod debug output

  • 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.