mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
This makes some tweaks to the engine to support this, specifically, it tweaks the hardcoded shaderpaths to defer to a pref variable, so none of the shader paths are hardcoded. Also tweaks how post effects read in texture files, removing a bizzare filepath interpretation choice, where if the file path didn't start with "/" it forcefully appended the script's file path. This made it impossible to have images not in the same dir as the script file defining the post effect. This was changed and the existing template's post effects tweaked for now to just add "./" to those few paths impacted, as well as the perf vars to support the non-hardcoded shader paths in the engine.
103 lines
3 KiB
Text
103 lines
3 KiB
Text
//--- OBJECT WRITE BEGIN ---
|
|
%guiContent = new GuiControl(MessageBoxYesNoCancelDlg) {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiOverlayProfile";
|
|
HorizSizing = "width";
|
|
VertSizing = "height";
|
|
position = "0 0";
|
|
Extent = "800 600";
|
|
MinExtent = "8 8";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
hovertime = "1000";
|
|
|
|
new GuiWindowCtrl(MBYesNoCancelFrame) {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiWindowProfile";
|
|
HorizSizing = "center";
|
|
VertSizing = "center";
|
|
position = "250 235";
|
|
Extent = "300 102";
|
|
MinExtent = "48 92";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
hovertime = "1000";
|
|
maxLength = "255";
|
|
resizeWidth = "1";
|
|
resizeHeight = "1";
|
|
canMove = "1";
|
|
canClose = "1";
|
|
canMinimize = "0";
|
|
canMaximize = "0";
|
|
minSize = "50 50";
|
|
text = "";
|
|
closeCommand="MessageCallback(MessageBoxYesNoCancelDlg,MessageBoxYesNoCancelDlg.cancelCallback);";
|
|
|
|
new GuiMLTextCtrl(MBYesNoCancelText) {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiMLTextProfile";
|
|
HorizSizing = "center";
|
|
VertSizing = "bottom";
|
|
position = "7 38";
|
|
Extent = "286 14";
|
|
MinExtent = "8 8";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
hovertime = "1000";
|
|
lineSpacing = "2";
|
|
allowColorChars = "0";
|
|
maxChars = "-1";
|
|
};
|
|
new GuiButtonCtrl() {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiButtonProfile";
|
|
HorizSizing = "right";
|
|
VertSizing = "top";
|
|
position = "7 71";
|
|
Extent = "80 22";
|
|
MinExtent = "8 8";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
Command = "MessageCallback(MessageBoxYesNoCancelDlg,MessageBoxYesNoCancelDlg.yesCallback);";
|
|
Accelerator = "return";
|
|
hovertime = "1000";
|
|
text = "Yes";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
};
|
|
new GuiButtonCtrl() {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiButtonProfile";
|
|
HorizSizing = "right";
|
|
VertSizing = "top";
|
|
position = "92 71";
|
|
Extent = "80 22";
|
|
MinExtent = "8 8";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
Command = "MessageCallback(MessageBoxYesNoCancelDlg,MessageBoxYesNoCancelDlg.noCallback);";
|
|
hovertime = "1000";
|
|
text = "No";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
};
|
|
new GuiButtonCtrl() {
|
|
canSaveDynamicFields = "0";
|
|
Profile = "GuiButtonProfile";
|
|
HorizSizing = "right";
|
|
VertSizing = "top";
|
|
position = "213 71";
|
|
Extent = "80 22";
|
|
MinExtent = "8 8";
|
|
canSave = "1";
|
|
Visible = "1";
|
|
Command = "MessageCallback(MessageBoxYesNoCancelDlg,MessageBoxYesNoCancelDlg.cancelCallback);";
|
|
Accelerator = "escape";
|
|
hovertime = "1000";
|
|
text = "Cancel";
|
|
groupNum = "-1";
|
|
buttonType = "PushButton";
|
|
};
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|