Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/scripts/InfoPopup.lua @ 6537

Last change on this file since 6537 was 6537, checked in by rgrieder, 14 years ago

Linked every GUI sheet to exactly one InputState.
Also added util/TriBool that has states {true, false, Dontcare}.

  • Property svn:eol-style set to native
File size: 785 bytes
Line 
1-- InfoPopup.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new("InfoPopup")
5
6if _REQUIREDNAME == nil then
7    InfoPopup = P
8else
9    _G[_REQUIREDNAME] = P
10end
11
12function P.execute(functionPtr, arguments)
13    if functionPtr ~= nil then
14        if arguments ~= nil then
15            functionPtr(arguments)
16        else
17            functionPtr()
18        end
19    end
20end
21
22function P.setText(text)
23    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
24end
25
26function P.setCloseButton(closeButton)
27    close = winMgr:getWindow("orxonox/InfoPopup_close")
28    close:setVisible(closeButton)
29    if(not closeButton) then
30        close:deactivate();
31    else
32        close:activate();
33    end
34end
35
36-- events for ingamemenu
37function P.close(e)
38    hideGUI(P.filename)
39end
40
41return P
Note: See TracBrowser for help on using the repository browser.