Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2009, 1:12:13 PM (15 years ago)
Author:
cmueri
Message:

All the menus (inclusive InGameMenus) have an equal design, some menus have a larger window. They should be ready to presentate now.
BUG REPORT in KeyBindMenu: If there are >4 buttons in a row, the GUI doesn't show those correctly.

File:
1 edited

Legend:

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

    r6311 r6334  
    11-- InfoPopup.lua
     2
     3
    24
    35BasicGUI = require("BasicGUI")
    46local P = BasicGUI:new() --inherit everything from the gui package
     7
     8
    59if _REQUIREDNAME == nil then
     10
    611    InfoPopup = P
     12
    713else
     14
    815    _G[_REQUIREDNAME] = P
     16
    917end
    1018
     19
     20
    1121P.filename = "InfoPopup"
     22
    1223P.layoutString = "InfoPopup.layout"
    1324
     25
     26
    1427function P:init()
     28
    1529end
    1630
     31
     32
    1733function P.execute(functionPtr, arguments)
     34
    1835    if functionPtr ~= nil then
     36
    1937        if arguments ~= nil then
     38
    2039            functionPtr(arguments)
     40
    2141        else
     42
    2243            functionPtr()
     44
    2345        end
     46
    2447    end
     48
    2549end
    2650
     51
     52
    2753function P.setText( text )
     54
    2855    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
     56
    2957end
    3058
     59
     60
    3161function P.setCloseButton(closeButton)
     62
    3263    close = winMgr:getWindow("orxonox/InfoPopup_close")
     64
    3365    close:setVisible(closeButton)
     66
    3467    if(not closeButton) then
     68
    3569        close:deactivate();
     70
    3671    else
     72
    3773        close:activate();
     74
    3875    end
     76
    3977end
    4078
     79
     80
    4181-- events for ingamemenu
     82
     83
    4284function P.close(e)
     85
    4386    hideGUI("InfoPopup")
     87
    4488end
     89
     90
    4591
    4692return P
Note: See TracChangeset for help on using the changeset viewer.