Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2009, 1:46:28 PM (16 years ago)
Author:
dafrick
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/scripts/InfoPopup.lua

    r6334 r6335  
    11-- InfoPopup.lua
    2 
    3 
    42
    53BasicGUI = require("BasicGUI")
    64local P = BasicGUI:new() --inherit everything from the gui package
    75
    8 
    96if _REQUIREDNAME == nil then
    10 
    117    InfoPopup = P
    12 
    138else
    14 
    159    _G[_REQUIREDNAME] = P
    16 
    1710end
    1811
    19 
    20 
    2112P.filename = "InfoPopup"
    22 
    2313P.layoutString = "InfoPopup.layout"
    2414
    25 
    26 
    2715function P:init()
    28 
    2916end
    3017
    31 
    32 
    3318function P.execute(functionPtr, arguments)
    34 
    3519    if functionPtr ~= nil then
    36 
    3720        if arguments ~= nil then
    38 
    3921            functionPtr(arguments)
    40 
    4122        else
    42 
    4323            functionPtr()
    44 
    4524        end
    46 
    4725    end
    48 
    4926end
    5027
    51 
    52 
    5328function P.setText( text )
    54 
    5529    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
    56 
    5730end
    5831
    59 
    60 
    6132function P.setCloseButton(closeButton)
    62 
    6333    close = winMgr:getWindow("orxonox/InfoPopup_close")
    64 
    6534    close:setVisible(closeButton)
    66 
    6735    if(not closeButton) then
    68 
    6936        close:deactivate();
    70 
    7137    else
    72 
    7338        close:activate();
    74 
    7539    end
    76 
    7740end
    7841
    79 
    80 
    8142-- events for ingamemenu
    82 
    83 
    8443function P.close(e)
    85 
    8644    hideGUI("InfoPopup")
    87 
    8845end
    8946
    90 
    91 
    9247return P
    93 
Note: See TracChangeset for help on using the changeset viewer.