Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/gui/scripts/InfoPopup.lua @ 6355

Last change on this file since 6355 was 6335, checked in by dafrick, 14 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
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5
6if _REQUIREDNAME == nil then
7    InfoPopup = P
8else
9    _G[_REQUIREDNAME] = P
10end
11
12P.filename = "InfoPopup"
13P.layoutString = "InfoPopup.layout"
14
15function P:init()
16end
17
18function 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
26end
27
28function P.setText( text )
29    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
30end
31
32function 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
40end
41
42-- events for ingamemenu
43function P.close(e)
44    hideGUI("InfoPopup")
45end
46
47return P
Note: See TracBrowser for help on using the repository browser.