Last change
on this file since 7216 was
6363,
checked in by rgrieder, 15 years ago
|
svn:eol-style "native" for all text files.
Also removed two executable properties (whatever they lost in these files ).
|
-
Property svn:eol-style set to
native
|
File size:
904 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- InfoPopup.lua |
---|
| 2 | |
---|
| 3 | BasicGUI = require("BasicGUI") |
---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
| 5 | |
---|
| 6 | if _REQUIREDNAME == nil then |
---|
| 7 | InfoPopup = P |
---|
| 8 | else |
---|
| 9 | _G[_REQUIREDNAME] = P |
---|
| 10 | end |
---|
| 11 | |
---|
| 12 | P.filename = "InfoPopup" |
---|
| 13 | P.layoutString = "InfoPopup.layout" |
---|
| 14 | |
---|
| 15 | function P:init() |
---|
| 16 | end |
---|
| 17 | |
---|
| 18 | function 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 |
---|
| 26 | end |
---|
| 27 | |
---|
| 28 | function P.setText( text ) |
---|
| 29 | winMgr:getWindow("orxonox/InfoPopup_text"):setText( text ) |
---|
| 30 | end |
---|
| 31 | |
---|
| 32 | function 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 |
---|
| 40 | end |
---|
| 41 | |
---|
| 42 | -- events for ingamemenu |
---|
| 43 | function P.close(e) |
---|
| 44 | hideGUI("InfoPopup") |
---|
| 45 | end |
---|
| 46 | |
---|
| 47 | return P |
---|
Note: See
TracBrowser
for help on using the repository browser.