Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hudelements/data/gui/scripts/InGamePickupHUD.lua @ 6602

Last change on this file since 6602 was 6600, checked in by sfluecki, 15 years ago
  1. Update
File size: 553 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
28return P
29
Note: See TracBrowser for help on using the repository browser.