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
RevLine 
[6334]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
[6335]18function P.execute(functionPtr, arguments)
19    if functionPtr ~= nil then
[6334]20        if arguments ~= nil then
21            functionPtr(arguments)
22        else
[6335]23            functionPtr()
[6334]24        end
[6335]25    end
[6334]26end
27
28function P.setText( text )
29    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
[6335]30end
[6334]31
32function P.setCloseButton(closeButton)
[6335]33    close = winMgr:getWindow("orxonox/InfoPopup_close")
[6334]34    close:setVisible(closeButton)
35    if(not closeButton) then
36        close:deactivate();
[6335]37    else
38        close:activate();
39    end
[6334]40end
41
[6335]42-- events for ingamemenu
[6334]43function P.close(e)
[6335]44    hideGUI("InfoPopup")
[6334]45end
46
[6335]47return P
Note: See TracBrowser for help on using the repository browser.