19,809
edits
(adding wizard for BSL variable template) |
(okay, we are going to need to place these controls manually too) |
||
| Line 807: | Line 807: | ||
curPopup = new XEBPopup('bslvar', m.x, m.y + 22); // make pop-up 22px below cursor (height of button bar) | curPopup = new XEBPopup('bslvar', m.x, m.y + 22); // make pop-up 22px below cursor (height of button bar) | ||
XEBPopup.prototype.width = 200; | |||
var mt = '<form name="XEBPopupBSLVarForm" id="XEBFormBSLVar">' + | var mt = '<form name="XEBPopupBSLVarForm" id="XEBFormBSLVar">' + | ||
| Line 812: | Line 813: | ||
'<div id="bsl_var_platform_mac"><input type="checkbox" id="mac_ckbox" name="inputVarMac" checked><label for="mac_ckbox">Mac</label></div>' + | '<div id="bsl_var_platform_mac"><input type="checkbox" id="mac_ckbox" name="inputVarMac" checked><label for="mac_ckbox">Mac</label></div>' + | ||
'<div id="bsl_var_platform_win"><input type="checkbox" id="win_ckbox" name="inputVarWin" checked><label for="win_ckbox">Win</label></div>' + | '<div id="bsl_var_platform_win"><input type="checkbox" id="win_ckbox" name="inputVarWin" checked><label for="win_ckbox">Win</label></div>' + | ||
'<div id=" | '<div id="bsl_var_name_label">Name:</div>' + | ||
'<div id=" | '<div id="bsl_var_name"><input type="text" name="inputVarName" value="" size="10"></div>' + | ||
'<div id=" | '<div id="bsl_var_type_label">Type:</div>' + | ||
'<div id="bsl_var_type"><select name="inputVarType"><option value="bool">bool</option><option value="int">int</option><option value="float">float</option><option value="string">string</option></select></div>' + | |||
'<div id="bsl_var_default_label">Default:</div>' + | |||
'<div id="bsl_var_default"><input type="text" name="inputVarDefault" value="" size="10"></div>' + | |||
'<\/form>' + | '<\/form>' + | ||
'<div id="bsl_var_notes"><i>Enter the name of the variable, its data type, and the default return value at level-load time (if known).<\/i></div><p\/>' + | '<div id="bsl_var_notes"><i>Enter the name of the variable, its data type, and the default return value at level-load time (if known).<\/i></div><p\/>' + | ||