Last change
on this file since 6353 was
6335,
checked in by dafrick, 15 years ago
|
Removed empty lines.
Adjusted size of boxes in KeyBindMenu so that the text is displayed properly.
Regarding the bug: Found the reason why this happens. The problem is, that apparently CEGUI doesn't allow for windows bigger than the displayed screen, which means, that any window that is bigger than the scrren size isn'f fully displayed. I have no idea how to circumvent this, but I'll keep looking.
|
File size:
951 bytes
|
Line | |
---|
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.