Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 1:56:36 PM (15 years ago)
Author:
dafrick
Message:

Some enhancements in KeyBindMenu.lua and InfoPopup, clear doesn't work, yet.

File:
1 edited

Legend:

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

    r6266 r6283  
    1515end
    1616
    17 function P.setDo(functionPtr)
    18     P.functionPtr = functionPtr
    19     if P.functionPtr ~= nil then
    20         P.functionPtr()
     17function P.execute(functionPtr)
     18    if functionPtr ~= nil then
     19        functionPtr()
    2120    end
    2221end
     
    2423function P.setText( text )
    2524    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
     25end
     26
     27function P.setCloseButton(closeButton)
     28    close = winMgr:getWindow("orxonox/InfoPopup_close")
     29    close:setVisible(closeButton)
     30    if(not closeButton) then
     31        close:deactivate();
     32    else
     33        close:activate();
     34    end
    2635end
    2736
Note: See TracChangeset for help on using the changeset viewer.