Changeset 6746 for code/trunk/data/gui/scripts/DecisionPopup.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/DecisionPopup.lua
r6417 r6746 1 1 -- DecisionPopup.lua 2 2 3 BasicGUI = require("BasicGUI") 4 local P = BasicGUI:new() --inherit everything from the gui package 5 if _REQUIREDNAME == nil then 6 DecisionPopup = P 7 else 8 _G[_REQUIREDNAME] = P 9 end 10 11 P.filename = "DecisionPopup" 12 P.layoutString = "DecisionPopup.layout" 13 14 function P:init() 15 end 3 local P = createMenuSheet("DecisionPopup") 16 4 17 5 function P.setCallback(functionPtr) … … 28 16 P.functionPtr(true) 29 17 end 30 hide GUI("DecisionPopup")18 hideMenuSheet("DecisionPopup") 31 19 end 32 20 … … 35 23 P.functionPtr(false) 36 24 end 37 hide GUI("DecisionPopup")25 hideMenuSheet("DecisionPopup") 38 26 end 39 27
Note: See TracChangeset
for help on using the changeset viewer.