Last change
on this file since 12168 was
11800,
checked in by landauf, 7 years ago
|
updated Settings.lua and all sub-menus to cegui 0.8
|
-
Property svn:eol-style set to
native
|
File size:
704 bytes
|
Rev | Line | |
---|
[6363] | 1 | -- InfoPopup.lua |
---|
| 2 | |
---|
[6746] | 3 | local P = createMenuSheet("InfoPopup") |
---|
[6363] | 4 | |
---|
| 5 | function P.execute(functionPtr, arguments) |
---|
| 6 | if functionPtr ~= nil then |
---|
| 7 | if arguments ~= nil then |
---|
| 8 | functionPtr(arguments) |
---|
| 9 | else |
---|
| 10 | functionPtr() |
---|
| 11 | end |
---|
| 12 | end |
---|
| 13 | end |
---|
| 14 | |
---|
[6746] | 15 | function P.setText(text) |
---|
[11800] | 16 | P.window:getChild("InfoPopup_Background/InfoPopup_text"):setText( text ) |
---|
[6363] | 17 | end |
---|
| 18 | |
---|
| 19 | function P.setCloseButton(closeButton) |
---|
[11800] | 20 | close = P.window:getChild("InfoPopup_Background/InfoPopup_close") |
---|
[6363] | 21 | close:setVisible(closeButton) |
---|
| 22 | if(not closeButton) then |
---|
| 23 | close:deactivate(); |
---|
| 24 | else |
---|
| 25 | close:activate(); |
---|
| 26 | end |
---|
| 27 | end |
---|
| 28 | |
---|
| 29 | -- events for ingamemenu |
---|
| 30 | function P.close(e) |
---|
[6746] | 31 | hideMenuSheet(P.name) |
---|
[6363] | 32 | end |
---|
| 33 | |
---|
| 34 | return P |
---|
Note: See
TracBrowser
for help on using the repository browser.