Changeset 6746 for code/trunk/data/gui/scripts/InfoPopup.lua
- Timestamp:
- Apr 16, 2010, 2:50:16 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/InfoPopup.lua
r6417 r6746 1 1 -- InfoPopup.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 6 if _REQUIREDNAME == nil then 7 InfoPopup = P 8 else 9 _G[_REQUIREDNAME] = P 10 end 11 12 P.filename = "InfoPopup" 13 P.layoutString = "InfoPopup.layout" 14 15 function P:init() 16 end 3 local P = createMenuSheet("InfoPopup") 17 4 18 5 function P.execute(functionPtr, arguments) … … 26 13 end 27 14 28 function P.setText( text)15 function P.setText(text) 29 16 winMgr:getWindow("orxonox/InfoPopup_text"):setText( text ) 30 17 end … … 42 29 -- events for ingamemenu 43 30 function P.close(e) 44 hide GUI("InfoPopup")31 hideMenuSheet(P.name) 45 32 end 46 33
Note: See TracChangeset
for help on using the changeset viewer.