Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/gui/scripts/InfoPopup.lua @ 6279

Last change on this file since 6279 was 6266, checked in by dafrick, 15 years ago

KeyBindMenu is working now. (Apart from some minor faults)
Found some commandExecutor("show/hideGUI …") in DecisionPopup, and another possible bug.
Added an InfoPopup

File size: 596 bytes
Line 
1-- InfoPopup.lua
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    InfoPopup = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "InfoPopup"
12P.layoutString = "InfoPopup.layout"
13
14function P:init()
15end
16
17function P.setDo(functionPtr)
18    P.functionPtr = functionPtr
19    if P.functionPtr ~= nil then
20        P.functionPtr()
21    end
22end
23
24function P.setText( text )
25    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
26end
27
28-- events for ingamemenu
29function P.close(e)
30    hideGUI("InfoPopup")
31end
32
33return P
34
Note: See TracBrowser for help on using the repository browser.