Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/InfoPopup.lua @ 6608

Last change on this file since 6608 was 6417, checked in by rgrieder, 15 years ago

Merged presentation2 branch back to trunk.
Major new features:

  • Actual GUI with settings, etc.
  • Improved space ship steering (human interaction)
  • Rocket fire and more particle effects
  • Advanced sound framework
  • Property svn:eol-style set to native
File size: 904 bytes
RevLine 
[6363]1-- InfoPopup.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5
6if _REQUIREDNAME == nil then
7    InfoPopup = P
8else
9    _G[_REQUIREDNAME] = P
10end
11
12P.filename = "InfoPopup"
13P.layoutString = "InfoPopup.layout"
14
15function P:init()
16end
17
18function P.execute(functionPtr, arguments)
19    if functionPtr ~= nil then
20        if arguments ~= nil then
21            functionPtr(arguments)
22        else
23            functionPtr()
24        end
25    end
26end
27
28function P.setText( text )
29    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
30end
31
32function P.setCloseButton(closeButton)
33    close = winMgr:getWindow("orxonox/InfoPopup_close")
34    close:setVisible(closeButton)
35    if(not closeButton) then
36        close:deactivate();
37    else
38        close:activate();
39    end
40end
41
42-- events for ingamemenu
43function P.close(e)
44    hideGUI("InfoPopup")
45end
46
47return P
Note: See TracBrowser for help on using the repository browser.