Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates3/data/gui/scripts/InfoPopup.lua @ 7232

Last change on this file since 7232 was 6773, checked in by rgrieder, 15 years ago

Eliminated all unnecessary global Lua variables and replaced them either with a local or a instance variable (P.myVar).

  • Property svn:eol-style set to native
File size: 682 bytes
RevLine 
[6363]1-- InfoPopup.lua
2
[6746]3local P = createMenuSheet("InfoPopup")
[6363]4
5function P.execute(functionPtr, arguments)
6    if functionPtr ~= nil then
7        if arguments ~= nil then
8            functionPtr(arguments)
9        else
10            functionPtr()
11        end
12    end
13end
14
[6746]15function P.setText(text)
[6363]16    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
17end
18
19function P.setCloseButton(closeButton)
[6773]20    local close = winMgr:getWindow("orxonox/InfoPopup_close")
[6363]21    close:setVisible(closeButton)
22    if(not closeButton) then
23        close:deactivate();
24    else
25        close:activate();
26    end
27end
28
29-- events for ingamemenu
30function P.close(e)
[6746]31    hideMenuSheet(P.name)
[6363]32end
33
34return P
Note: See TracBrowser for help on using the repository browser.