Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/InfoPopup.lua @ 6720

Last change on this file since 6720 was 6718, checked in by rgrieder, 14 years ago

Moved BasicGUI.lua to GUISheet.lua and derived MenuSheet.lua as well as HUDSheet.lua from it.
Also, to make a new GUI sheet, use either createHUDSheet or createMenuSheet.
Also removed bShowCursor from the showGUI function. This is now always a value directed by the GUI sheet.

  • Property svn:eol-style set to native
File size: 670 bytes
Line 
1-- InfoPopup.lua
2
3local P = createMenuSheet("InfoPopup")
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
15function P.setText(text)
16    winMgr:getWindow("orxonox/InfoPopup_text"):setText( text )
17end
18
19function P.setCloseButton(closeButton)
20    close = winMgr:getWindow("orxonox/InfoPopup_close")
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)
31    hideGUI(P.name)
32end
33
34return P
Note: See TracBrowser for help on using the repository browser.