Last change
on this file since 6910 was
6746,
checked in by rgrieder, 15 years ago
|
Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.
Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.
|
-
Property svn:eol-style set to
native
|
File size:
541 bytes
|
Line | |
---|
1 | -- DecisionPopup.lua |
---|
2 | |
---|
3 | local P = createMenuSheet("DecisionPopup") |
---|
4 | |
---|
5 | function P.setCallback(functionPtr) |
---|
6 | P.functionPtr = functionPtr |
---|
7 | end |
---|
8 | |
---|
9 | function P.setText( text ) |
---|
10 | winMgr:getWindow("orxonox/DecisionPopup_text"):setText( text ) |
---|
11 | end |
---|
12 | |
---|
13 | -- events for ingamemenu |
---|
14 | function P.button_yes(e) |
---|
15 | if P.functionPtr ~= nil then |
---|
16 | P.functionPtr(true) |
---|
17 | end |
---|
18 | hideMenuSheet("DecisionPopup") |
---|
19 | end |
---|
20 | |
---|
21 | function P.button_no(e) |
---|
22 | if P.functionPtr ~= nil then |
---|
23 | P.functionPtr(false) |
---|
24 | end |
---|
25 | hideMenuSheet("DecisionPopup") |
---|
26 | end |
---|
27 | |
---|
28 | return P |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.