|
Last change
on this file since 6268 was
6266,
checked in by dafrick, 16 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
|
| Rev | Line | |
|---|
| [6266] | 1 | -- InfoPopup.lua |
|---|
| 2 | |
|---|
| 3 | BasicGUI = require("BasicGUI") |
|---|
| 4 | local P = BasicGUI:new() --inherit everything from the gui package |
|---|
| 5 | if _REQUIREDNAME == nil then |
|---|
| 6 | InfoPopup = P |
|---|
| 7 | else |
|---|
| 8 | _G[_REQUIREDNAME] = P |
|---|
| 9 | end |
|---|
| 10 | |
|---|
| 11 | P.filename = "InfoPopup" |
|---|
| 12 | P.layoutString = "InfoPopup.layout" |
|---|
| 13 | |
|---|
| 14 | function P:init() |
|---|
| 15 | end |
|---|
| 16 | |
|---|
| 17 | function P.setDo(functionPtr) |
|---|
| 18 | P.functionPtr = functionPtr |
|---|
| 19 | if P.functionPtr ~= nil then |
|---|
| 20 | P.functionPtr() |
|---|
| 21 | end |
|---|
| 22 | end |
|---|
| 23 | |
|---|
| 24 | function P.setText( text ) |
|---|
| 25 | winMgr:getWindow("orxonox/InfoPopup_text"):setText( text ) |
|---|
| 26 | end |
|---|
| 27 | |
|---|
| 28 | -- events for ingamemenu |
|---|
| 29 | function P.close(e) |
|---|
| 30 | hideGUI("InfoPopup") |
|---|
| 31 | end |
|---|
| 32 | |
|---|
| 33 | return P |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.