Initial implementation of the new Base Game Template and some starting modules.

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.
This commit is contained in:
Areloch 2017-02-24 02:40:56 -06:00
parent 5c8a82180b
commit 1ed8b05169
1572 changed files with 146699 additions and 85 deletions

View file

@ -0,0 +1,284 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AddFMODProjectDlg,EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiOverlayProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiWindowCtrl() {
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "AddFMODProjectDlg.onCancel();";
EdgeSnap = "1";
text = "Add FMOD Designer Audio";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "361 196";
Extent = "303 236";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
internalName = "window";
new GuiBitmapBorderCtrl() {
isContainer = "1";
Profile = "ToolsGuiGroupBorderProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "5 26";
Extent = "291 160";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "Path to the compiled event file (.fev):";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiAutoSizeTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "8 51";
Extent = "176 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "•";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "7 72";
Extent = "254 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "fileNameField";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "•";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "7 127";
Extent = "254 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "mediaPathField";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Name for the SFXFMODProject object:";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiAutoSizeTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "8 10";
Extent = "189 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "•";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "7 30";
Extent = "277 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "projectNameField";
canSaveDynamicFields = "0";
};
new GuiMLTextCtrl() {
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
text = "Path to the project\'s media files (leave empty if files are in same directory as the project file):";
useURLMouseCursor = "0";
isContainer = "0";
Profile = "ToolsGuiMLTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "8 96";
Extent = "276 26";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
text = "...";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "266 72";
Extent = "18 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
command = "AddFMODProjectDlg.onSelectFile();";
};
new GuiButtonCtrl() {
text = "...";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "266 127";
Extent = "18 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
command = "AddFMODProjectDlg.onSelectMediaPath();";
};
};
new GuiButtonCtrl() {
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "206 196";
Extent = "90 30";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "AddFMODProjectDlg.onCancel();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
text = "OK";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "112 196";
Extent = "90 30";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "AddFMODProjectDlg.onOK();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,524 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AxisGizmoSettingsTab,EditorGuiGroup) {
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
new GuiTabPageCtrl(EAxisGizmoSettingsPage) {
fitBook = "1";
text = "Axis Gizmo";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "1";
profile = "ToolsGuiSolidDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "208 568";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "1";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "1";
profile = "ToolsGuiScrollProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "208 568";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "1 1";
extent = "208 210";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiRolloutCtrl() {
Profile = "GuiRolloutProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "10 10";
extent = "208 95";
Caption = "Gizmo";
Margin = "0 0 0 -3";
DragSizable = false;
container = true;
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "208 0";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "-1 0";
Extent = "208 79";
Docking = "none";
new GuiTextCtrl() {
text = "Rotate Scalar:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 6";
extent = "70 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
text = "0.8";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "81 5";
extent = "121 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/mouseRotateScalar";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiTextCtrl() {
text = "Scale Scalar:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 26";
extent = "70 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
text = "0.8";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "81 24";
extent = "121 17";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/mouseScaleScalar";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Render When Manipulated";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 44";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/renderWhenUsed";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Render Tool Text";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 61";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/renderInfoText";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
};
};
};
new GuiRolloutCtrl() {
Profile = "GuiRolloutProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "10 10";
extent = "208 95";
Caption = "Grid";
Margin = "0 0 0 -3";
DragSizable = false;
container = true;
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "208 0";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "-1 0";
Extent = "208 82";
Docking = "none";
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Render Plane";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 4";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/Grid/renderPlane";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Render Plane Hashes";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 21";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/Grid/renderPlaneHashes";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiTextCtrl() {
text = "Plane Size:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 40";
extent = "70 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
text = "500";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "81 38";
extent = "121 17";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/Grid/planeDim";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiControl() {
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "5 58";
extent = "208 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowColor";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "AxisGizmo/Grid/gridColor";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
new GuiTextCtrl() {
text = "Plane Color:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 2";
extent = "70 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "76 0";
extent = "104 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "ColorEdit";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowColorEdit";
};
new GuiSwatchButtonCtrl() {
color = "0 0 0 0";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiDefaultProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "184 2";
extent = "14 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "ColorButton";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowColorButton";
};
};
};
};
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,429 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(CameraSettingsTab,EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiTabPageCtrl(ECameraSettingsPage) {
fitBook = "1";
text = "Camera Settings";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiSolidDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "245 568";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "1";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "245 568";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiStackControl() {
internalName = "content";
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "1 1";
extent = "245 210";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiRolloutCtrl() {
Profile = "GuiRolloutProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "10 10";
extent = "208 95";
Caption = "Mouse Control";
Margin = "0 0 0 -3";
DragSizable = false;
container = true;
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "208 0";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "-1 0";
Extent = "208 41";
Docking = "none";
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Invert Y Axis";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 5";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "Camera/invertYAxis";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Invert X Axis";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
isContainer = "0";
profile = "ToolsGuiCheckBoxProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 22";
extent = "140 14";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowCheckbox";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "Camera/invertXAxis";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
};
};
};
};
};
};
};
//--- OBJECT WRITE END ---
function ECameraSettingsPage::init(%this)
{
%this.currentLevel = "";
%this.currentRolloutCtrl = "";
%levelInfoPath = "LevelInformation/levels";
for( %fieldName = EditorSettings.findFirstValue(%levelInfoPath, true, true);
%fieldName !$= "";
%fieldName = EditorSettings.findNextValue() )
{
%fieldSlashPos = 0;
%levelSlashPos = 0;
while( strpos( %fieldName, "/", %fieldSlashPos ) != -1 )
{
%levelSlashPos = %fieldSlashPos;
%temp = strpos( %fieldName, "/", %fieldSlashPos );
%fieldSlashPos = %temp + 1;
}
%levelName = getSubStr( %fieldName , %levelSlashPos , ((%fieldSlashPos - %levelSlashPos) - 1));
for( %i = 0; %i < %this-->content.getCount(); %i++ )
{
%alreadyExist = false;
if( %this-->content.getObject(%i).caption $= %levelName )
{
%alreadyExist = true;
break;
}
}
if( %this.currentLevel !$= %levelName && !%alreadyExist )
{
//Hold current level and reset gui params
%this.currentLevel = %levelName;
//%this.currentLevel = "\""@%levelName@"\"";
//Create and hold current rollout ctrl
%this.currentRolloutCtrl = new GuiRolloutCtrl() {
Profile = "GuiRolloutProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "10 10";
extent = "208 95";
Caption = %levelName;
Margin = "0 0 0 -3";
DragSizable = false;
container = true;
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "208 0";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiContainer(){ //spacer
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "208 2";
};
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "208 22";
Docking = "none";
new GuiTextCtrl() {
text = "Camera Speed Min:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 3";
extent = "96 16";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "106 2";
extent = "95 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readCameraSettings( \"" @ %levelName @ "\" );";
editorSettingsValue = "LevelInformation/levels/" @ %levelName @ "/cameraSpeedMin";
editorSettingsWrite = "EditorGui.writeCameraSettings( \"" @ %levelName @ "\" );"; // not in use
};
};
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "208 22";
Docking = "none";
new GuiTextCtrl() {
text = "Camera Speed Max:";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 3";
extent = "96 16";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "106 2";
extent = "95 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readCameraSettings( \"" @ %levelName @ "\" );";
editorSettingsValue = "LevelInformation/levels/" @ %levelName @ "/cameraSpeedMax";
editorSettingsWrite = "EditorGui.writeCameraSettings( \"" @ %levelName @ "\" );"; // not in use
};
};
new GuiContainer(){
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "208 24";
Docking = "none";
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "width";
VertSizing = "bottom";
Position = "5 2";
Extent = "196 18";
MinExtent = "8 8";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ECameraSettingsPage.deleteCameraSettingsGroup(\"" @ %levelName @ "\", $ThisControl.getParent().getParent().getParent());";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Delete Level Settings";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "1";
};
};
};
};
%this-->content.add(%this.currentRolloutCtrl);
}
}
}
function ECameraSettingsPage::deleteCameraSettingsGroup( %this, %levelName, %rolloutCtrl )
{
if( %levelName $= EditorGui.levelName )
{
MessageBoxOK("Error", "You may not delete the settings group associated with the currently loaded level");
return;
}
%levelInfoPath = "LevelInformation/levels/" @ %levelName;
for( %fieldName = EditorSettings.findFirstValue(%levelInfoPath, true, true);
%fieldName !$= "";
%fieldName = EditorSettings.findNextValue() )
{
EditorSettings.remove( %fieldName, true );
}
%rolloutCtrl.delete();
}

View file

@ -0,0 +1,269 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiContainer(EditorChooseLevelGui, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiChunkedBitmapCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
bitmap = "art/gui/background";
useVariable = "0";
tile = "0";
};
};
%guiContent = new GuiContainer(EditorChooseLevelContainer, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl(EditorChooseLevelWindow) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
Position = "416 187";
Extent = "192 393";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = "Level Selector";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 21";
Extent = "171 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "1: Edit an Existing Level";
maxLength = "255";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "42 360";
Extent = "107 23";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "WE_ReturnToMainMenu();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Play Game";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 38";
Extent = "171 194";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
lockHorizScroll = false;
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "4 0";
new GuiMLTextCtrl(WE_LevelList) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiMLTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 1";
Extent = "148 70";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
useURLMouseCursor = "1";
};
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 250";
Extent = "171 87";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
lockHorizScroll = false;
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "4 0";
new GuiMLTextCtrl(WE_TemplateList) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiMLTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 1";
Extent = "148 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
useURLMouseCursor = "1";
};
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 232";
Extent = "174 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "2: Create New from Template";
maxLength = "255";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 338";
Extent = "174 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "3: Play Game from Start";
maxLength = "255";
};
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,122 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiWindowCollapseCtrl(ESettingsWindow) {
internalName = "EditorSettingsWindow";
resizeWidth = "0";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = "Editor Settings";
closeCommand = "ESettingsWindow.hideDialog();";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "30 200";
Extent = "319 320";
MinExtent = "319 100";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiTabBookCtrl(ESettingsWindowTabBook) {
TabPosition = "Top";
TabMargin = "7";
MinTabWidth = "64";
TabHeight = "0";
AllowReorder = "0";
FrontTabPadding = "0";
Docking = "Client";
Margin = "3 1 4 3";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiTabBookNoBitmapProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "201 21";
Extent = "334 425";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "AlwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "0";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
Docking = "Left";
Margin = "3 1 3 -1";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "1 21";
Extent = "100 425";
MinExtent = "100 50";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiTextListCtrl(ESettingsWindowList) {
AllowMultipleSelections = "1";
fitParentWidth = "1";
isContainer = "0";
Profile = "ToolsGuiListBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "1 1";
Extent = "100 2";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,284 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(GeneralSettingsTab,EditorGuiGroup) {
position = "0 0";
extent = "1024 768";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "1";
new GuiTabPageCtrl(EGeneralSettingsPage) {
fitBook = "1";
text = "General Settings";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "0 0";
extent = "432 568";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "height";
profile = "ToolsGuiSolidDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "1";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "1";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "0 0";
extent = "432 568";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "height";
profile = "ToolsGuiScrollProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiStackControl() {
stackingType = "Vertical";
horizStacking = "Left to Right";
vertStacking = "Top to Bottom";
padding = "0";
dynamicSize = "1";
changeChildSizeToFit = "1";
changeChildPosition = "1";
position = "1 1";
extent = "430 41";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "bottom";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiRolloutCtrl() {
caption = "Paths";
margin = "0 3 0 0";
defaultHeight = "40";
expanded = "1";
clickCollapse = "1";
hideHeader = "0";
autoCollapseSiblings = "0";
position = "0 0";
extent = "430 41";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiRolloutProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiStackControl() {
stackingType = "Vertical";
horizStacking = "Left to Right";
vertStacking = "Top to Bottom";
padding = "3";
dynamicSize = "1";
changeChildSizeToFit = "1";
changeChildPosition = "1";
position = "0 20";
extent = "430 18";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "bottom";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiControl() {
position = "0 0";
extent = "430 18";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "New Level";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "5 1";
extent = "70 16";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiTextRightProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "*";
text = "tools/levels/BlankRoom.mis";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "81 0";
extent = "345 17";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "bottom";
profile = "ToolsGuiTextEditProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "WorldEditor/newLevelFile";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
};
new GuiControl() {
position = "0 0";
extent = "430 18";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "New Game Objects";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "5 1";
extent = "70 16";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiTextRightProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "*";
text = "scripts/server/gameObjects";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "81 0";
extent = "345 17";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "bottom";
profile = "ToolsGuiTextEditProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
editorSettingsRead = "EditorGui.readWorldEditorSettings();";
editorSettingsValue = "WorldEditor/newGameObjectDir";
editorSettingsWrite = "EditorGui.writeWorldEditorSettings();";
};
};
};
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,115 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(GenericPromptDialog) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiOverlayProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl() {
canSaveDynamicFields = "0";
internalName = "GenericPromptWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
Position = "336 337";
Extent = "352 93";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "0";
AnchorBottom = "0";
AnchorLeft = "0";
AnchorRight = "0";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = "Error";
closeCommand = "Canvas.popDialog(GenericPromptDialog);";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
internalName = "GenericPromptText";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiProgressTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "13 33";
Extent = "328 15";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Cannot use the Terrain Editor without a terrain";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "center";
VertSizing = "top";
Position = "134 61";
Extent = "88 24";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.popDialog(GenericPromptDialog);";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "OK";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "center";
VertSizing = "top";
Position = "230 61";
Extent = "88 24";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
Command = "Canvas.popDialog(GenericPromptDialog);";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,145 @@
%guiContent = new GuiControl(ManageBookmarksContainer, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiModelessDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCollapseCtrl(EManageBookmarks) {
internalName = "ManageBookmarksWindow";
Enabled = "1";
isContainer = "1";
profile = "ToolsGuiWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
resizeWidth = "1";
resizeHeight = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
position = "50 90";
extent = "180 306";
MinExtent = "120 130";
text = "Camera Bookmark Manager";
closeCommand = "EManageBookmarks.hideDialog();";
EdgeSnap = "0";
canCollapse = "0";
visible = "0";
Margin = "5 5 5 5";
Padding = "5 5 5 5";
new GuiControl(){
horizSizing = "width";
vertSizing = "bottom";
position = "4 23";
extent = "170 20";
//Docking = "Top";
new GuiTextCtrl() {
profile = "GuiCenterTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 2";
extent = "24 16";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "New";
};
new GuiTextEditCtrl(EAddBookmarkWindowName) {
profile = "ToolsGuiTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "27 2";
extent = "126 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
historySize = "0";
};
new GuiBitmapButtonCtrl(EAddBookmarkWindowOK) {
profile = "ToolsGuiButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "158 3";
extent = "17 17";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "ManageBookmarksContainer.onOK();";
bitmap = "tools/gui/images/new";
helpTag = "0";
text = "Create";
tooltip = "Create New Camera Bookmark";
accelerator = "return";
};
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "4 12";
Extent = "300 200";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "Client";
Margin = "26 1 3 3";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 2";
new GuiStackControl() {
internalName = "ManageBookmarksWindowStack";
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "2";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "0 0";
Extent = "300 200";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
};
};
};
};

View file

@ -0,0 +1,240 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ManageSFXParametersContainer,EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiModelessDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
enabled = "1";
isDecoy = "0";
new GuiWindowCollapseCtrl(EManageSFXParameters) {
CollapseGroup = "-1";
CollapseGroupNum = "-1";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "EManageSFXParameters.setVisible( false );";
EdgeSnap = "0";
text = "Audio Parameters";
Margin = "5 5 5 5";
Padding = "5 5 5 5";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
position = "49 68";
Extent = "446 392";
MinExtent = "120 130";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "ManageSFXParametersWindow";
canSaveDynamicFields = "0";
new GuiControl() {
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "4 23";
Extent = "484 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "Name";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiAutoSizeTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "1 2";
Extent = "29 17";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "•";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "36 2";
Extent = "226 17";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "AddSFXParameterName";
canSaveDynamicFields = "0";
};
new GuiBitmapButtonCtrl() {
bitmap = "tools/gui/images/new";
autoFit = "0";
text = "Create";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "266 2";
Extent = "17 17";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "EManageSFXParameters.createNewParameter( EManageSFXParameters-->AddSFXParameterName.getText() );";
Accelerator = "return";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Create New SFX Parameter";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiPopUpMenuCtrl() {
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiPopUpMenuProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "325 1";
Extent = "113 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "EManageSFXParameters.initList( $ThisControl.getText() );";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "SFXParameterFilter";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Filter";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiAutoSizeTextProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "296 2";
Extent = "24 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
};
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "1";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "2 2";
mouseWheelScrollSpeed = "-1";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "4 46";
Extent = "438 344";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "2";
DynamicSize = "1";
ChangeChildSizeToFit = "1";
ChangeChildPosition = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "3 3";
Extent = "419 10008";
MinExtent = "16 16";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "SFXParametersStack";
canSaveDynamicFields = "0";
};
};
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,871 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ObjectSnapOptionsContainer, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiModelessDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCollapseCtrl(ESnapOptions) {
internalName = "SnapOptionsWindow";
Enabled = "1";
isContainer = "1";
profile = "ToolsGuiWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
resizeWidth = "0";
resizeHeight = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
position = "400 31";
extent =" 175 257";
MinExtent = "175 130";
text = "Snap Options";
closeCommand = "ESnapOptions.hideDialog();";
EdgeSnap = "0";
canCollapse = "0";
visible = "0";
Margin = "5 5 5 5";
Padding = "5 5 5 5";
new GuiTabBookCtrl(ESnapOptionsTabBook) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTabBookProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "5 52";
Extent = "190 240";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Docking = "Client";
Margin = "3 22 3 3";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
TabPosition = "Top";
TabMargin = "10";
MinTabWidth = "8";
new GuiTabPageCtrl(ESnapOptionsTabTerrain) {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Margin = "0 0 0 0";
Position = "0 19";
Extent = "190 220";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
hovertime = "1000";
Docking = "None";
text = "Terrain";
maxLength = "255";
command = "toggleSnappingOptions(\"terrain\");";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Position = "4 12";
Extent = "156 190";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 2";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "0 0";
Extent = "190 90";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiDynamicCtrlArrayControl() {
canSaveDynamicFields = "0";
internalName = "TerrainSnapAlignment";
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 18";
Extent = "190 72";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
colCount = "2";
colSize = "78";
rowSize = "20";
rowSpacing = "2";
colSpacing = "2";
dynamicSize = true;
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "190 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " Alignment:";
maxLength = "1024";
};
new GuiRadioCtrl() {
canSaveDynamicFields = "0";
internalName = "NoAlignment";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiRadioProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"None\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "None";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negX";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"-X\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- X Axis";
iconBitmap = "tools/gui/images/axis-icon_-x";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posX";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"+X\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ X Axis";
iconBitmap = "tools/gui/images/axis-icon_x";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negY";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"-Y\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- Y Axis";
iconBitmap = "tools/gui/images/axis-icon_-y";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posY";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"+Y\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ Y Axis";
iconBitmap = "tools/gui/images/axis-icon_y";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negZ";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"-Z\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- Z Axis";
iconBitmap = "tools/gui/images/axis-icon_-z";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posZ";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setTerrainSnapAlignment(\"+Z\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ Z Axis";
iconBitmap = "tools/gui/images/axis-icon_z";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
};
new GuiCheckBoxCtrl() {
text = "Snap to object bounding box";
groupNum = "1";
useMouseEvents = "0";
isContainer = "0";
horizSizing = "right";
vertSizing = "top";
position = "4 249";
extent = "165 24";
minExtent = "8 8";
visible = "1";
active = "1";
Variable = "EWorldEditor.dropAtBounds";
Command = "EWorldEditor.dropAtBounds = $ThisControl.getValue();";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
};
new GuiTabPageCtrl(ESnapOptionsTabSoft) {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Margin = "0 0 0 0";
Position = "0 19";
Extent = "190 220";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
hovertime = "1000";
Docking = "None";
text = "Soft";
maxLength = "255";
command = "toggleSnappingOptions(\"soft\");";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Position = "4 12";
Extent = "186 190";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 2";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "5";
canSaveDynamicFields = "0";
internalName = "theVisOptionsList";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "2 2";
Extent = "190 190";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiControl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
Position = "0 0";
Extent = "190 18";
MinExtent = "16 16";
Visible = "1";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "90 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Snap Size:";
maxLength = "1024";
};
new GuiTextEditCtrl() {
internalName = "SnapSize";
profile="ToolsGuiNumericTextEditProfile";
HorizSizing = "left";
position = "136 0";
Extent = "44 18";
text ="2.0";
maxLength = "6";
AltCommand = "ESnapOptions.setSoftSnapSize();";
};
};
new GuiControl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
Position = "0 0";
Extent = "190 90";
MinExtent = "16 16";
Visible = "1";
new GuiDynamicCtrlArrayControl() {
canSaveDynamicFields = "0";
internalName = "SoftSnapAlignment";
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "190 90";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
colCount = "2";
colSize = "78";
rowSize = "20";
rowSpacing = "2";
colSpacing = "2";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "190 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " Alignment:";
maxLength = "1024";
};
new GuiRadioCtrl() {
canSaveDynamicFields = "0";
internalName = "NoAlignment";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiRadioProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"None\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "None";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negX";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"-X\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- X Axis";
iconBitmap = "tools/gui/images/axis-icon_-x";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posX";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"+X\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ X Axis";
iconBitmap = "tools/gui/images/axis-icon_x";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negY";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"-Y\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- Y Axis";
iconBitmap = "tools/gui/images/axis-icon_-y";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posY";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"+Y\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ Y Axis";
iconBitmap = "tools/gui/images/axis-icon_y";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "negZ";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"-Z\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "- Z Axis";
iconBitmap = "tools/gui/images/axis-icon_-z";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "posZ";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonSmallProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "40 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "ESnapOptions.setSoftSnapAlignment(\"+Z\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+ Z Axis";
iconBitmap = "tools/gui/images/axis-icon_z";
textMargin = "24";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
};
};
new GuiCheckBoxCtrl(){
internalName = "RenderSnapBounds";
Enabled = "1";
Profile = "ToolsGuiCheckBoxProfile";
position = "1 0";
Extent = "190 18";
text = "Render Snap Bounds";
Command = "ESnapOptions.toggleRenderSnapBounds();";
};
new GuiCheckBoxCtrl(){
internalName = "RenderSnappedTriangle";
Enabled = "1";
Profile = "ToolsGuiCheckBoxProfile";
position = "1 0";
Extent = "190 18";
text = "Render Snapped Triangle";
Command = "ESnapOptions.toggleRenderSnappedTriangle();";
};
new GuiControl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
Position = "0 0";
Extent = "190 18";
MinExtent = "16 16";
Visible = "1";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "110 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Backface Tolerance:";
maxLength = "1024";
};
new GuiTextEditCtrl() {
internalName = "SnapBackfaceTolerance";
profile="ToolsGuiNumericTextEditProfile";
HorizSizing = "left";
position = "136 0";
Extent = "44 18";
text ="0.5";
maxLength = "6";
AltCommand = "ESnapOptions.getSoftSnapBackfaceTolerance();";
};
};
};
};
};
};
new GuiCheckBoxCtrl() {
text = "Grid Snapping";
groupNum = "1";
useMouseEvents = "0";
isContainer = "0";
horizSizing = "right";
vertSizing = "top";
position = "4 231";
extent = "95 24";
minExtent = "8 8";
visible = "1";
active = "1";
command = "toggleSnappingOptions(\"grid\");";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "GridSnapButton";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Size";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiDefaultProfile";
horizSizing = "left";
vertSizing = "top";
position = "103 234";
extent = "25 18";
minExtent = "8 2";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "•";
text = "2.0";
maxLength = "6";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
isContainer = "0";
profile = "ToolsGuiNumericTextEditProfile";
horizSizing = "left";
vertSizing = "top";
position = "127 235";
extent = "44 18";
minExtent = "8 2";
visible = "1";
active = "1";
altCommand = "ESnapOptions.setGridSnapSize();";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
internalName = "gridSize";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
internalName = "NoSnapButton";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "133 23";
Extent = "38 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "toggleSnappingOptions(\"\");";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Off";
groupNum = "1";
buttonType = "ToggleButton";
useMouseEvents = "0";
};
};
};

View file

@ -0,0 +1,405 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ProceduralTerrainPainterGui) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl(ProceduralTerrainPainterDescription) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "285 83";
Extent = "175 233";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
canCollapse = "0";
CollapseGroup = "-1";
CollapseGroupNum = "-1";
closeCommand = "Canvas.popDialog(ProceduralTerrainPainterGui);";
text = "Generate layer mask";
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "19 193";
Extent = "140 30";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "generateProceduralTerrainMask();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Generate";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "15 37";
Extent = "33 13";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "HEIGHT";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "59 37";
Extent = "23 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Min.";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "59 62";
Extent = "23 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Max.";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "97 35";
Extent = "66 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Variable = "$TPPHeightMin";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "97 60";
Extent = "66 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Variable = "$TPPHeightMax";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "15 101";
Extent = "33 13";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "SLOPE";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "59 101";
Extent = "23 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Min.";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "59 126";
Extent = "23 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Max.";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "97 99";
Extent = "66 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Variable = "$TPPSlopeMin";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "97 124";
Extent = "66 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Variable = "$TPPSlopeMax";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextCtrl() {
text = "COVERAGE";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "10 165";
extent = "55 13";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiTextProfile";
visible = "1";
active = "1";
tooltipProfile = "GuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "*";
text = "1";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "97 162";
extent = "66 18";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiTextEditProfile";
visible = "1";
active = "1";
variable = "$TPPCoverage";
tooltipProfile = "GuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "%";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "77 164";
extent = "11 14";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsGuiTextProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---
$TPPHeightMin = -10000;
$TPPHeightMax = 10000;
$TPPSlopeMin = 0;
$TPPSlopeMax = 90;
$TPPCoverage = 100;
function autoLayers()
{
Canvas.pushDialog(ProceduralTerrainPainterGui);
}
function generateProceduralTerrainMask()
{
Canvas.popDialog(ProceduralTerrainPainterGui);
ETerrainEditor.autoMaterialLayer($TPPHeightMin, $TPPHeightMax, $TPPSlopeMin, $TPPSlopeMax, $TPPCoverage);
}

View file

@ -0,0 +1,566 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ESelectObjectsWindowContainer,EditorGuiGroup) {
position = "0 0";
extent = "1024 768";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "1";
new GuiWindowCtrl(ESelectObjectsWindow) {
text = "Select Objects";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
canCollapse = "1";
closeCommand = "$ThisControl.toggleVisibility();";
edgeSnap = "1";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "268 177";
extent = "380 373";
minExtent = "200 100";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiWindowProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
class = "EObjectSelection";
internalName = "SelectObjectsWindow";
new GuiBitmapBorderCtrl() {
position = "7 104";
extent = "265 262";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiGroupBorderProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "0";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "10 25";
extent = "246 200";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiScrollProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiStackControl() {
stackingType = "Vertical";
horizStacking = "Left to Right";
vertStacking = "Top to Bottom";
padding = "0";
dynamicSize = "1";
changeChildSizeToFit = "1";
changeChildPosition = "1";
position = "1 1";
extent = "246 1242";
minExtent = "16 16";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
internalName = "classList";
canSave = "1";
canSaveDynamicFields = "0";
};
};
new GuiButtonCtrl() {
text = "Select All";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "10 231";
extent = "65 20";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
command = "ESelectObjectsWindow.selectAllInClassList( true );";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Classes";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "113 6";
extent = "40 17";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiAutoSizeTextProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
text = "Deselect All";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "76 231";
extent = "65 20";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
command = "ESelectObjectsWindow.selectAllInClassList( false );";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
};
new GuiBitmapBorderCtrl() {
position = "7 25";
extent = "366 74";
minExtent = "8 2";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiGroupBorderProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiTextCtrl() {
text = "Name Pattern";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "11 9";
extent = "67 17";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiAutoSizeTextProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Retain Current Selection";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
position = "216 46";
extent = "140 30";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiCheckBoxProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "retainSelection";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiCheckBoxCtrl() {
useInactiveState = "0";
text = "Create Selection Set";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
position = "13 73";
extent = "117 30";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiCheckBoxProfile";
visible = "0";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "createSelectionSet";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "•";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "157 80";
extent = "199 17";
minExtent = "20 2";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiTextEditProfile";
visible = "0";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "selectionSetName";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "•";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "91 9";
extent = "265 17";
minExtent = "20 2";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiTextEditProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "namePattern";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Select Objects in Group";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "11 30";
extent = "116 17";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiAutoSizeTextProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiPopUpMenuCtrl() {
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "138 30";
extent = "218 17";
minExtent = "20 2";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiPopUpMenuProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "groupList";
canSave = "1";
canSaveDynamicFields = "0";
};
};
new GuiBitmapBorderCtrl() {
position = "246 104";
extent = "233 262";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiGroupBorderProfile";
visible = "0";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "0";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "9 25";
extent = "215 200";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiScrollProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
canSave = "1";
canSaveDynamicFields = "0";
new GuiStackControl() {
stackingType = "Vertical";
horizStacking = "Left to Right";
vertStacking = "Top to Bottom";
padding = "0";
dynamicSize = "1";
changeChildSizeToFit = "1";
changeChildPosition = "1";
position = "1 1";
extent = "215 16";
minExtent = "16 16";
horizSizing = "width";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiDefaultProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "1";
internalName = "filterList";
canSave = "1";
canSaveDynamicFields = "0";
};
};
new GuiButtonCtrl() {
text = "Select All";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "9 231";
extent = "65 20";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Filters";
maxLength = "1024";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";
anchorBottom = "0";
anchorLeft = "1";
anchorRight = "0";
position = "101 6";
extent = "30 17";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiAutoSizeTextProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
text = "Deselect All";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "75 231";
extent = "65 20";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
};
new GuiButtonCtrl() {
text = "Select";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "278 104";
extent = "95 30";
minExtent = "8 2";
horizSizing = "left";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
command = "ESelectObjectsWindow.onSelectObjects(true);";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
new GuiButtonCtrl() {
text = "Deselect";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
position = "278 137";
extent = "95 30";
minExtent = "8 2";
horizSizing = "left";
vertSizing = "bottom";
fixedAspectRatio = "0";
profile = "ToolsGuiButtonProfile";
visible = "1";
active = "1";
command = "ESelectObjectsWindow.onSelectObjects(false);";
tooltipProfile = "ToolsGuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,232 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TerrainBrushSoftnessCurveDlg, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiOverlayProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
position = "231 204";
Extent = "175 228";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "0";
text = "Brush Softness Curve";
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "84 196";
Extent = "83 24";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "TerrainBrushSoftnessCurveDlg.onOk();";
hovertime = "1000";
text = "Ok";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiFilterCtrl() {
canSaveDynamicFields = "0";
internalName = "FilterCurveCtrl";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "35 46";
Extent = "130 128";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
controlPoints = "7";
filter = "1 0.833333 0.666667 0.5 0.333333 0.166667 0";
identity = "1 0";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "8 43";
Extent = "22 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Hard";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "11 159";
Extent = "20 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Soft";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "36 174";
Extent = "33 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Inside";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "129 176";
Extent = "39 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Outside";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "7 196";
Extent = "69 24";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.popDialog( TerrainBrushSoftnessCurveDlg );";
hovertime = "1000";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "122 26";
Extent = "44 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "TerrainBrushSoftnessCurveDlg.resetCurve();";
hovertime = "1000";
text = "Reset";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
};
};
//--- OBJECT WRITE END ---
function TerrainBrushSoftnessCurveDlg::onWake( %this )
{
%curve = %this-->FilterCurveCtrl;
%curve.setValue( ETerrainEditor.softSelectFilter );
}
function TerrainBrushSoftnessCurveDlg::onOk( %this )
{
%curve = %this-->FilterCurveCtrl;
ETerrainEditor.softSelectFilter = %curve.getValue();
ETerrainEditor.resetSelWeights(true);
Canvas.popDialog( %this );
}
function TerrainBrushSoftnessCurveDlg::resetCurve( %this )
{
%curve = %this-->FilterCurveCtrl;
%curve.identity();
}

View file

@ -0,0 +1,615 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EWTerrainEditToolbar,EditorGuiGroup) {
canSaveDynamicFields = "0";
internalName = "TerrainEditToolbar";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "306 0";
Extent = "800 40";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 7";
extent = "70 16";
minExtent = "8 8";
visible = "1";
text = "Brush Settings";
maxLength = "255";
helpTag = "0";
};
new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "760 40";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiControl(EWTerrainEditToolbarBrushType){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "83 2";
Extent = "94 27";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "ellipse";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Circle Brush (V)";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/circleBrush";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "box";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "31 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Box Brush (B)";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/boxBrush";
};
/*
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "selection";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "62 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Toggles the brush type.";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/maskBrush";
};
*/
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "152 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(TerrainBrushSizeTextEditContainer) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "145 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "21 5";
Extent = "47 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Size";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
HorizSizing = "right";
profile="ToolsGuiNumericDropSliderTextProfile";
VertSizing = "bottom";
position = "49 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setBrushSize( $ThisControl.getText() );";
validate = "TerrainEditorPlugin.validateBrushSize();";
hovertime = "1000";
text = "9";
maxLength = "4";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "83 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(TerrainBrushSizeSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes size of the brush (CTRL + Mouse Wheel)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "272 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(TerrainBrushPressureTextEditContainer) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "287 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 5";
Extent = "47 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Pressure";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
profile="ToolsGuiNumericDropSliderTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "49 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setBrushPressure( ($ThisControl.getValue() / 100) );";
hovertime = "1000";
text = "100";
maxLength = "3";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "83 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(TerrainBrushPressureSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the pressure (CTRL + SHIFT + Mouse Wheel)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "412 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(TerrainBrushSoftnessTextEditContainer) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "429 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 5";
Extent = "47 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Softness";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
HorizSizing = "right";
profile="ToolsGuiNumericDropSliderTextProfile";
VertSizing = "bottom";
position = "49 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setBrushSoftness( ($ThisControl.getValue() / 100) );";
hovertime = "1000";
text = "1";
maxLength = "3";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "83 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(TerrainBrushSoftnessSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the softness (SHIFT + Mouse Wheel)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "547 3";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog( TerrainBrushSoftnessCurveDlg );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the softness curve";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/softCurve";
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "589 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(TerrainSetHeightTextEditContainer) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "605 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 5";
Extent = "33 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Height";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
HorizSizing = "right";
profile="ToolsGuiNumericDropSliderTextProfile";
VertSizing = "bottom";
position = "34 2";
Extent = "62 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setHeightVal = $ThisControl.getValue();";
hovertime = "1000";
text = "1";
maxLength = "7";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "88 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(TerrainSetHeightSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the height for the SetHeight tool (ALT + Left Mouse)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
};
};
new GuiMouseEventCtrl(TerrainBrushSizeSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(TerrainBrushSizeTextEditContainer.position) + firstWord(EWTerrainEditToolbar.position)+11 SPC
(getWord(TerrainBrushSizeTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "TerrainBrushSizeTextEditContainer-->textEdit.setValue(mCeil($ThisControl.getValue())); ETerrainEditor.setBrushSize( $ThisControl.value );";
range = "1 256";
ticks = "0";
value = "0";
};
};
new GuiMouseEventCtrl(TerrainBrushPressureSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(TerrainBrushPressureTextEditContainer.position) + firstWord(EWTerrainEditToolbar.position) SPC
(getWord(TerrainBrushPressureTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "TerrainBrushPressureTextEditContainer-->textEdit.setValue( mCeil(100 * $ThisControl.getValue()) @ \"%\"); ETerrainEditor.setBrushPressure( $ThisControl.value );";
range = "0.01 1";
ticks = "0";
value = "0";
};
};
new GuiMouseEventCtrl(TerrainBrushSoftnessSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(TerrainBrushSoftnessTextEditContainer.position) + firstWord(EWTerrainEditToolbar.position) SPC
(getWord(TerrainBrushSoftnessTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "TerrainBrushSoftnessTextEditContainer-->textEdit.setValue( mCeil(100 * $ThisControl.getValue()) @ \"%\"); ETerrainEditor.setBrushSoftness( $ThisControl.value );";
range = "0 1";
ticks = "0";
value = "0";
};
};
new GuiMouseEventCtrl(TerrainSetHeightSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(TerrainSetHeightTextEditContainer.position) + firstWord(EWTerrainEditToolbar.position) SPC
(getWord(TerrainSetHeightTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "TerrainSetHeightTextEditContainer-->textEdit.setValue( $ThisControl.getValue() ); ETerrainEditor.setHeightVal = $ThisControl.getValue();";
range = "0 2047";
ticks = "0";
value = "100";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,301 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TerrainEditorSettingsTab,EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiTabPageCtrl(ETerrainEditorSettingsPage) {
fitBook = "1";
text = "Terrain Editor";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiSolidDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "208 400";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiScrollCtrl() {
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "1";
lockVertScroll = "0";
constantThumbHeight = "0";
childMargin = "0 0";
mouseWheelScrollSpeed = "-1";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "208 400";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "1 1";
extent = "208 210";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiRolloutCtrl() {
Profile = "GuiRolloutProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "10 10";
extent = "208 95";
Caption = "Tool Values";
Margin = "0 3 0 0";
DragSizable = false;
container = true;
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "208 0";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
padding = "3";
new GuiControl() {
isContainer = "1";
horizSizing = "right";
vertSizing = "bottom";
extent = "208 18";
new GuiTextCtrl() {
text = "Raise/Lower Height:";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextRightProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "5 1";
Extent = "70 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiNumericTextEditProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "81 0";
Extent = "121 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
className = "ESettingsWindowTextEdit";
editorSettingsRead = "ETerrainEditor.adjustHeightVal = EditorSettings.value(%this.editorSettingsValue);";
editorSettingsValue = "TerrainEditor/ActionValues/adjustHeightVal";
editorSettingsWrite = "EditorGui.writeTerrainEditorSettings();";
};
};
new GuiControl() {
isContainer = "1";
horizSizing = "right";
vertSizing = "bottom";
extent = "208 18";
new GuiTextCtrl() {
text = "Smooth Factor:";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextRightProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "5 1";
Extent = "70 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiNumericTextEditProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "81 0";
Extent = "121 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
className = "ESettingsWindowTextEdit";
editorSettingsRead = "ETerrainEditor.smoothFactor = EditorSettings.value(%this.editorSettingsValue);";
editorSettingsValue = "TerrainEditor/ActionValues/smoothFactor";
editorSettingsWrite = "EditorGui.writeTerrainEditorSettings();";
};
};
new GuiControl() {
isContainer = "1";
horizSizing = "right";
vertSizing = "bottom";
extent = "208 18";
new GuiTextCtrl() {
text = "Noise Factor:";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextRightProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "5 1";
Extent = "70 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextEditCtrl() {
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiNumericTextEditProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "81 0";
Extent = "121 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
class = "ESettingsWindowTextEdit";
className = "ESettingsWindowTextEdit";
editorSettingsRead = "ETerrainEditor.noiseFactor = EditorSettings.value(%this.editorSettingsValue);";
editorSettingsValue = "TerrainEditor/ActionValues/noiseFactor";
editorSettingsWrite = "EditorGui.writeTerrainEditorSettings();";
};
};
};
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,276 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(TerrainEditorValuesSettingsGui, EditorGuiGroup) {
profile = "ToolsGuiOverlayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "ToolsGuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "117 113";
extent = "408 247";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Terrain Action Values";
maxLength = "255";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "Canvas.popDIalog(TerrainEditorValuesSettingsGui);";
new GuiControl() {
profile = "ToolsGuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "198 27";
extent = "203 115";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiTextEditCtrl() {
profile = "ToolsGuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "86 12";
extent = "107 18";
minExtent = "8 8";
visible = "1";
variable = "ETerrainEditor.adjustHeightVal";
command = "ETerrainEditor.adjustHeightVal = $ThisControl.getValue();";
helpTag = "0";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Adjust height increment.";
};
new GuiTextEditCtrl() {
profile = "ToolsGuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "86 62";
extent = "107 18";
minExtent = "8 8";
visible = "1";
variable = "ETerrainEditor.scaleVal";
command = "ETerrainEditor.scaleVal = $ThisControl.getValue();";
helpTag = "0";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Scale height increment.";
};
new GuiTextEditCtrl() {
profile = "ToolsGuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "86 87";
extent = "107 18";
minExtent = "8 8";
visible = "1";
variable = "ETerrainEditor.smoothFactor";
command = "ETerrainEditor.smoothFactor = $ThisControl.getValue();";
helpTag = "0";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Smoothing factor -- lower values are less agressive.";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 12";
extent = "64 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Adjust Height";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Adjust height increment.";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 37";
extent = "49 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Set Height";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Elevation for set height operation.";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 62";
extent = "60 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Scale Height";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Scale height increment.";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 87";
extent = "70 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Smooth Factor";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Smoothing factor -- lower values are less agressive.";
maxLength = "255";
};
};
new GuiButtonCtrl() {
profile = "ToolsGuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "218 205";
extent = "80 20";
minExtent = "8 8";
visible = "1";
command = "Canvas.popDIalog(TerrainEditorValuesSettingsGui);";
helpTag = "0";
text = "OK";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiControl() {
profile = "ToolsGuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 27";
extent = "188 212";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiFilterCtrl(TESoftSelectFilter) {
profile = "ToolsGuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 22";
extent = "155 162";
minExtent = "8 8";
visible = "1";
helpTag = "0";
controlPoints = "7";
filter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 4";
extent = "67 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Soft Selection";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "This spline scale modifies the hardness of the brush. Left is center, right is outer edge.";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 189";
extent = "8 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "0";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 26";
extent = "8 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "1";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "60 190";
extent = "45 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "<Radius>";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Brush radius for Selection Mode.";
maxLength = "255";
};
new GuiTextEditCtrl() {
profile = "ToolsGuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "125 187";
extent = "50 18";
minExtent = "8 8";
visible = "1";
variable = "ETerrainEditor.softSelectRadius";
command = "ETerrainEditor.softSelectRadius = $ThisControl.getValue();";
helpTag = "0";
maxLength = "255";
historySize = "0";
password = "0";
tabComplete = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Brush radius for Selection Mode.";
};
};
new GuiButtonCtrl(TESettingsApplyButton) {
profile = "ToolsGuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "307 205";
extent = "80 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Apply";
groupNum = "-1";
buttonType = "PushButton";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,637 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EWTerrainPainterToolbar,EditorGuiGroup) {
canSaveDynamicFields = "0";
internalName = "TerrainPainterToolbar";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "306 0";
Extent = "800 40";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 7";
extent = "70 16";
minExtent = "8 8";
visible = "1";
text = "Brush Settings";
maxLength = "255";
helpTag = "0";
};
new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "760 40";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiControl(EWTerrainPainterToolbarBrushType){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "83 2";
Extent = "94 27";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "ellipse";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Circle Brush (V)";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/circleBrush";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "box";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "31 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Box Brush (B)";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/boxBrush";
};
/*
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "selection";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "62 0";
Extent = "29 27";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.toggleBrushType($ThisControl);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Toggles the brush type.";
hovertime = "750";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/maskBrush";
};
*/
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "152 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(PaintBrushSizeTextEditContainer) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "145 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "21 5";
Extent = "47 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Size";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
profile="ToolsGuiNumericDropSliderTextProfile";
position = "49 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setBrushSize( $ThisControl.getText() );";
validate = "TerrainPainterPlugin.validateBrushSize();";
hovertime = "1000";
text = "9";
maxLength = "4";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "83 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(PaintBrushSizeSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the size of the brush (CTRL + Mouse Wheel)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "270 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(PaintBrushSlopeControl) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "262 5";
Extent = "256 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "21 5";
Extent = "78 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Allows painting on the terrain within a specified slope";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Slope Mask Min";
maxLength = "1024";
};
new GuiTextEditCtrl() {
internalName = "SlopeMinAngle";
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiNumericDropSliderTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "104 2";
Extent = "51 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
validate = "TerrainPainterPlugin.validateSlopeMinAngle();";
Command = "ETerrainEditor.setSlopeLimitMinAngle( $ThisControl.getText() );";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Minimum terrain angle that will be paintable";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "0.0";
maxLength = "4";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "137 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Minimum terrain angle that will be paintable";
hovertime = "1000";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
Command = "Canvas.pushDialog(PaintBrushSlopeMinContainer);";
};
new GuiTextCtrl() {
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "165 5";
Extent = "27 10";
MinExtent = "8 2";
text = "Max";
tooltip = "Max terrain angle that will be paintable";
};
new GuiTextEditCtrl() {
internalName = "SlopeMaxAngle";
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiNumericDropSliderTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "190 2";
Extent = "51 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
validate = "TerrainPainterPlugin.validateSlopeMaxAngle();";
Command = "ETerrainEditor.setSlopeLimitMaxAngle( $ThisControl.getText() );";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Max terrain angle that will be paintable";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "90.0";
maxLength = "4";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "223 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
groupNum = "-1";
tooltip = "Max terrain angle that will be paintable";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
Command = "Canvas.pushDialog(PaintBrushSlopeMaxContainer);";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "525 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(PaintBrushPressureTextEditContainer,EditorGuiGroup) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "540 5";
Extent = "120 50";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 5";
Extent = "47 10";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Pressure";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "textEdit";
isContainer = "0";
profile="ToolsGuiNumericDropSliderTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "49 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.setBrushPressure( ($ThisControl.getValue() / 100) );";
hovertime = "1000";
text = "100";
maxLength = "3";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "83 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(PaintBrushPressureSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes the pressure (CTRL + SHIFT + Mouse Wheel)";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
};
};
//--- OBJECT WRITE END ---
function setTerrainEditorMinSlope(%value)
{
%val = ETerrainEditor.setSlopeLimitMinAngle( %value );
PaintBrushSlopeControl-->SlopeMinAngle.setValue(mFloatLength( %val, 1 ));
}
function setTerrainEditorMaxSlope(%value)
{
%val = ETerrainEditor.setSlopeLimitMaxAngle( %value );
PaintBrushSlopeControl-->SlopeMaxAngle.setValue(mFloatLength( %val, 1 ));
}
new GuiMouseEventCtrl(PaintBrushSizeSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(PaintBrushSizeTextEditContainer.position) + firstWord(EWTerrainPainterToolbar.position)+11 SPC
(getWord(PaintBrushSizeTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "PaintBrushSizeTextEditContainer-->textEdit.setValue(mFloatLength( ($ThisControl.getValue()), 2 )); ETerrainEditor.setBrushSize( $ThisControl.value );";
range = "1 256";
ticks = "0";
value = "0";
};
};
new GuiMouseEventCtrl(PaintBrushSlopeMinContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(PaintBrushSlopeControl.position) + firstWord(EWTerrainPainterToolbar.position)+firstWord(PaintBrushSlopeControl->SlopeMinAngle.position) - 40 SPC
(getWord(PaintBrushSlopeControl, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "PaintBrushSlopeControl-->SlopeMinAngle.setValue(mFloatLength( ($ThisControl.getValue()), 1 )); ETerrainEditor.setSlopeLimitMinAngle(mFloatLength( ($ThisControl.getValue()), 1 ));TerrainPainterPlugin.validateSlopeMinAngle();";
range = "0 89.9";
ticks = "0";
value = "0";
};
};
function PaintBrushSlopeMinContainer::onWake(%this)
{
%this-->slider.setValue(PaintBrushSlopeControl-->SlopeMinAngle.getText());
}
new GuiMouseEventCtrl(PaintBrushSlopeMaxContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(PaintBrushSlopeControl.position) + firstWord(EWTerrainPainterToolbar.position)+firstWord(PaintBrushSlopeControl->SlopeMaxAngle.position) - 40 SPC
(getWord(PaintBrushSlopeControl, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "PaintBrushSlopeControl-->SlopeMaxAngle.setValue(mFloatLength( ($ThisControl.getValue()), 1 )); ETerrainEditor.setSlopeLimitMaxAngle(mFloatLength( ($ThisControl.getValue()), 1 ));TerrainPainterPlugin.validateSlopeMaxAngle();";
range = "0.1 90.0";
ticks = "0";
value = "0";
};
};
function PaintBrushSlopeMaxContainer::onWake(%this)
{
%this-->slider.setValue(PaintBrushSlopeControl-->SlopeMaxAngle.getText());
}
function PaintBrushSlopeMaxContainer::init(%this)
{
%this-->slider.setValue("90.0");
}
new GuiMouseEventCtrl(PaintBrushPressureSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(PaintBrushPressureTextEditContainer.position) + firstWord(EWTerrainPainterToolbar.position) SPC
(getWord(PaintBrushPressureTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "PaintBrushPressureTextEditContainer-->textEdit.setValue(mFloatLength( ($ThisControl.getValue()), 2 )); ETerrainEditor.setBrushPressure( $ThisControl.value );";
range = "0 1";
ticks = "0";
value = "0";
};
};
new GuiMouseEventCtrl(PaintBrushSoftnessSliderCtrlContainer,EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(PaintBrushSoftnessTextEditContainer.position) + firstWord(EWTerrainPainterToolbar.position) SPC
(getWord(PaintBrushSoftnessTextEditContainer, 1)) + 25;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "PaintBrushSoftnessTextEditContainer-->textEdit.setValue(mFloatLength( ($ThisControl.getValue()), 2 )); ETerrainEditor.setBrushSoftness( $ThisControl.value );";
range = "0 1";
ticks = "0";
value = "0";
};
};

View file

@ -0,0 +1,249 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TerrainPainterContainer,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCollapseCtrl(EPainter) {
canSaveDynamicFields = "0";
internalName = "TerrainPainter";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
Position = getWord($pref::Video::mode, 0) - 209 SPC getWord(EditorGuiToolbar.extent, 1)+249;
Extent = "210 446";
MinExtent = "210 100";
canSave = "1";
isDecoy = "0";
Visible = "0";
hovertime = "1000";
Docking = "None";
Margin = "4 4 4 4";
Padding = "0 0 0 0";
AnchorTop = "0";
AnchorBottom = "0";
AnchorLeft = "0";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "152 300";
closeCommand = "EPainter.parentGroup.setVisible(false);";
EdgeSnap = "1";
text = "Terrain Painter Material Selector";
new GuiScrollCtrl( EPainterScroll ) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "4 24";
Extent = "202 418";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "Client";
Margin = "3 1 3 3";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiStackControl( EPainterStack ) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
canSaveDynamicFields = "0";
internalName = "theMaterialList";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "1 3";
Extent = "200 16";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
};
};
};
new GuiWindowCollapseCtrl(EPainterPreview) {
canSaveDynamicFields = "0";
internalName = "TerrainPainterPreview";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
Position = getWord($pref::Video::mode, 0) - 209 SPC getWord(EditorGuiToolbar.extent, 1)-1;
Extent = "210 251";
MinExtent = "210 251";
canSave = "1";
isDecoy = "0";
Visible = "0";
hovertime = "1000";
Docking = "None";
Margin = "4 4 4 4";
Padding = "0 0 0 0";
AnchorTop = "0";
AnchorBottom = "0";
AnchorLeft = "0";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "152 300";
closeCommand = "EPainter.parentGroup.setVisible(false);";
EdgeSnap = "1";
text = "Terrain Painter Material Preview";
new GuiContainer(){
Docking = "Client";
Margin = "3 22 3 3";
HorizSizing = "width";
VertSizing = "height";
Position = "4 24";
Extent = "202 202";
new GuiBitmapCtrl(ETerrainMaterialSelected) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "202 202";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
wrap = "0";
bitmap= "tools/materialEditor/gui/unknownImage";
};
new GuiBitmapCtrl(ETerrainMaterialSelectedBorder) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "202 202";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
bitmap = "tools/worldEditor/images/terrainpainter/terrain-painter-border-large";
wrap = "0";
};
};
new GuiButtonCtrl(ETerrainMaterialSelectedEdit) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "170 229";
Extent = "36 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "0";
Command = "TerrainMaterialDlg.show(ETerrainMaterialSelected.selectedMatIndex, ETerrainMaterialSelected.selectedMat, EPainter_TerrainMaterialUpdateCallback);";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Edit";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiTextCtrl(TerrainTextureText) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "width";
VertSizing = "top";
Position = "5 230";
Extent = "162 16";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "None";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "100 229";
Extent = "50 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "autoLayers();";
tooltipprofile = "ToolsGuiToolTipProfile";
tooltip = "Generate a layer mask for this material.";
hovertime = "1000";
text = "AutoPaint";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,214 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TimeAdjustGui, EditorGuiGroup) {
isContainer = "1";
Profile = "ToolsGuiModelessDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "1";
new GuiWindowCtrl() {
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = "Time Adjust Gui";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "338 63";
Extent = "462 84";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
closeCommand = "Canvas.popDialog(TimeAdjustGui);";
new GuiSliderCtrl(TimeAdjustSliderCtrl) {
range = "0 1";
ticks = "100";
value = "0.1";
isContainer = "0";
Profile = "ToolsGuiSliderProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "37 27";
Extent = "389 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
altCommand = "$ThisControl.onAction();";
};
new GuiTextCtrl() {
text = "Sunrise";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextCenterProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "11 53";
Extent = "59 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Sunset";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextCenterProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "206 53";
Extent = "59 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Noon";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextCenterProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "108 53";
Extent = "59 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Midnight";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextCenterProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "307 53";
Extent = "59 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
new GuiTextCtrl() {
text = "Sunrise";
maxLength = "1024";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
isContainer = "0";
Profile = "ToolsGuiTextCenterProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "393 53";
Extent = "59 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---
function TimeAdjustSliderCtrl::onAction(%this)
{
// NOTE: Though this is a GuiControl which exists on the client-side
// we access and modify the server-side TimeOfDay object. This is acceptible
// because this is a "tools" gui which is not intended for a real-game
// or multiplayer situation.
if ( !isObject( %this.tod ) )
{
if ( isObject( MissionGroup ) )
{
for ( %i = 0; %i < MissionGroup.getCount(); %i++ )
{
%obj = MissionGroup.getObject( %i );
if ( %obj.getClassName() $= "TimeOfDay" )
{
%this.tod = %obj;
break;
}
}
}
}
if ( !isObject( %this.tod ) )
return;
%this.tod.time = %this.getValue();
}
function toggleTimeAdjustGui()
{
if ( TimeAdjustGui.isAwake() )
Canvas.popDialog( TimeAdjustGui );
else
Canvas.pushDialog( TimeAdjustGui );
}

View file

@ -0,0 +1,102 @@
%paletteId = new GuiControl(ConvexEditorPalette, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ConvexEditorNoneModeBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Arrow (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
Command = "GlobalGizmoProfile.mode = \"None\";";
};
new GuiBitmapButtonCtrl(ConvexEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "28 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Selection (2)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/translate";
buttonType = "RadioButton";
useMouseEvents = "0";
Command = "GlobalGizmoProfile.mode = \"Move\";";
};
new GuiBitmapButtonCtrl(ConvexEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "56 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Selection (3)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/rotate";
buttonType = "RadioButton";
useMouseEvents = "0";
Command = "GlobalGizmoProfile.mode = \"Rotate\";";
};
new GuiBitmapButtonCtrl(ConvexEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "84 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Selection (4)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/scale";
buttonType = "RadioButton";
useMouseEvents = "0";
Command = "GlobalGizmoProfile.mode = \"Scale\";";
};
};

View file

@ -0,0 +1,121 @@
%paletteId = new GuiControl(DecalEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(EDecalEditorSelectDecalBtn) {
canSaveDynamicFields = "0";
internalName = "SelectDecalMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "DecalEditorGui.setMode(\"SelectDecalMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Decal (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EDecalEditorMoveDecalBtn) {
canSaveDynamicFields = "0";
internalName = "MoveDecalMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "DecalEditorGui.setMode(\"MoveDecalMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Decal (2)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/move-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EDecalEditorRotateDecalBtn) {
canSaveDynamicFields = "0";
internalName = "RotateDecalMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "DecalEditorGui.setMode(\"RotateDecalMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Decal (3)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/rotate-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EDecalEditorScaleDecalBtn) {
canSaveDynamicFields = "0";
internalName = "ScaleDecalMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "DecalEditorGui.setMode(\"ScaleDecalMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Decal (4)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/scale-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EDecalEditorAddDecalBtn) {
canSaveDynamicFields = "0";
internalName = "AddDecalMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "DecalEditorGui.setMode(\"AddDecalMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Add Decal (5)";
hovertime = "1000";
bitmap = "tools/decalEditor/add-decal";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,163 @@
%paletteId = new GuiControl(ForestEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ForestEditorSelectModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"None\"; ForestEditorGui.setActiveTool(ForestTools->SelectionTool);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Item (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorMoveMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"Move\"; ForestEditorGui.setActiveTool(ForestTools->SelectionTool);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Item (2)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/translate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorRotateMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"Rotate\"; ForestEditorGui.setActiveTool(ForestTools->SelectionTool);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Item (3)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/rotate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorScaleMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"Scale\"; ForestEditorGui.setActiveTool(ForestTools->SelectionTool);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Item (4)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/scale";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorPaintModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorPaintMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ForestEditorGui.setActiveTool( ForestTools->BrushTool ); ForestTools->BrushTool.mode = \"Paint\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Paint (5)";
hovertime = "1000";
bitmap = "tools/forestEditor/images/paint-forest-btn";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorEraseModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorEraseMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ForestEditorGui.setActiveTool( ForestTools->BrushTool ); ForestTools->BrushTool.mode = \"Erase\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Erase (6)";
hovertime = "1000";
bitmap = "tools/forestEditor/images/erase-all-btn";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ForestEditorEraseSelectedModeBtn) {
canSaveDynamicFields = "0";
internalName = "ForestEditorEraseSelectedMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ForestEditorGui.setActiveTool( ForestTools->BrushTool ); ForestTools->BrushTool.mode = \"EraseSelected\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Erase Selected (7)";
hovertime = "1000";
bitmap = "tools/forestEditor/images/erase-element-btn";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,163 @@
%paletteId = new GuiControl(MeshRoadEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(EMeshRoadEditorSelectModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.prepSelectionMode();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Mesh Road (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorMoveMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorMoveMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Point (2)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/move-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorRotateMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorRotateMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Point (3)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/rotate-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorScaleMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorScaleMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Point (4)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/scale-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorAddModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorAddRoadMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorAddRoadMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Create Road (5)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-mesh-road";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorInsertModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorInsertPointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorInsertPointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Insert Point (+)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EMeshRoadEditorRemoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "MeshRoadEditorRemovePointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "MeshRoadEditorGui.setMode(\"MeshRoadEditorRemovePointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Remove Point (-)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/subtract-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,130 @@
%paletteId = new GuiControl(NavEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ENavEditorSelectModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.prepSelectionMode();";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "View NavMesh (1).";
DetailedDesc = "";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/visibility-toggle";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorLinkModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorLinkMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"LinkMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Create off-mesh links (2).";
DetailedDesc = "Click to select/add. Shift-click to add multiple end points.";
hovertime = "1000";
bitmap = "tools/navEditor/images/nav-link";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorCoverModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorCoverMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"CoverMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Edit cover (3).";
DetailedDesc = "";
hovertime = "1000";
bitmap = "tools/navEditor/images/nav-cover";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorTileModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorTileMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"TileMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "View tiles (4).";
DetailedDesc = "Click to select.";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/select-bounds";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorTestModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorTestMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"TestMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Test pathfinding (5).";
DetailedDesc = "Click to select/move character, CTRL-click to spawn, SHIFT-click to deselect.";
hovertime = "1000";
bitmap = "tools/worldEditor/images/toolbar/3rd-person-camera";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,163 @@
%paletteId = new GuiControl(RiverEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ERiverEditorSelectModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.prepSelectionMode();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select River (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorMoveMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorMoveMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Point (2)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/move-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorRotateMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorRotateMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Point (3)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/rotate-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorScaleMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorScaleMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Point (4)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/scale-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorAddModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorAddRiverMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorAddRiverMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Create River (5)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-river";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorInsertModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorInsertPointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorInsertPointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Insert Point (+)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERiverEditorRemoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "RiverEditorRemovePointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RiverEditorGui.setMode(\"RiverEditorRemovePointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Remove Point (-)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/subtract-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,144 @@
%paletteId = new GuiControl(RoadEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ERoadEditorSelectModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.prepSelectionMode();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Road (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERoadEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorMoveMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.setMode(\"RoadEditorMoveMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Point (2)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/move-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERoadEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorScaleMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.setMode(\"RoadEditorScaleMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Point (4)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/scale-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERoadEditorAddModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorAddRoadMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.setMode(\"RoadEditorAddRoadMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Create Road (5)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-road-path";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERoadEditorInsertModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorInsertPointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.setMode(\"RoadEditorInsertPointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Insert Point (+)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/add-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ERoadEditorRemoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "RoadEditorRemovePointMode";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "RoadEditorGui.setMode(\"RoadEditorRemovePointMode\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Remove Point (-)";
hovertime = "1000";
bitmap = "tools/worldEditor/images/road-river/subtract-point";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,102 @@
%paletteId = new GuiControl(ShapeEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ShapeEditorNoneModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorSelectArrow";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"None\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Arrow (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ShapeEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorMove";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "28 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"Move\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Selection (2)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/translate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ShapeEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorRotate";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "56 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.mode = \"Rotate\";";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Selection (3)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/rotate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ShapeEditorSunModeBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "84 0";
Extent = "16 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Variable = "ShapeEdShapeView.editSun";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate sun";
hovertime = "1000";
bitmap = "tools/shapeEditor/images/sun-btn";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,235 @@
%paletteId = new GuiControl(TerrainEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "brushAdjustHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "72 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( brushAdjustHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Grab Terrain (1)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/brushAdjustHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "raiseHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( raiseHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Raise Height (2)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/raiseHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "lowerHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "36 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( lowerHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Lower Height (3)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/lowerHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "smoothHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "144 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( smoothHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Smooth (4)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/smoothHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "smoothSlope";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "144 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( smoothSlope );";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Smooth Slope (5)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/softCurve";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "paintNoise";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "72 36";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( paintNoise );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Paint Noise (6)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/brushPaintNoise";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "flattenHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "108 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( flattenHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Flatten (7)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/flattenHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "setHeight";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "180 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( setHeight );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Set Height (8)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/setHeight";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "setEmpty";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 36";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( setEmpty );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Clear Terrain (9)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/setEmpty";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "clearEmpty";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "36 36";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "ETerrainEditor.switchAction( clearEmpty );";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Restore Terrain (0)";
hovertime = "750";
text = "Button";
buttonType = "RadioButton";
useMouseEvents = "0";
bitmap = "tools/worldEditor/images/clearEmpty";
};
};

View file

@ -0,0 +1,14 @@
%paletteId = new GuiControl(TerrainPainterPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
};

View file

@ -0,0 +1,98 @@
%paletteId = new GuiControl(WorldEditorInspectorPalette, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(EWorldEditorNoneModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorSelectArrow";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Select Arrow (1)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/arrow";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EWorldEditorMoveModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorMove";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "28 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Move Selection (2)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/translate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EWorldEditorRotateModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorRotate";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "56 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Rotate Selection (3)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/rotate";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EWorldEditorScaleModeBtn) {
canSaveDynamicFields = "0";
internalName = "WorldEditorScale";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "84 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Scale Selection (4)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/scale";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -0,0 +1,102 @@
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
function EWToolsPaletteWindow::loadToolsPalettes()
{
%filespec = "tools/worldEditor/gui/ToolsPaletteGroups/*.ed.gui";
// were executing each gui file and adding them to the ToolsPaletteArray
for( %file = findFirstFile(%filespec); %file !$= ""; %file = findNextFile(%filespec))
{
exec( %file );
%paletteGroup = 0;
%i = %paletteId.getCount();
for( ; %i != 0; %i--)
{
%paletteId.getObject(0).visible = 0;
%paletteId.getObject(0).groupNum = %paletteGroup;
%paletteId.getObject(0).paletteName = %paletteId.getName();
ToolsPaletteArray.addGuiControl(%paletteId.getObject(0));
}
%paletteGroup++;
}
%filespec = "tools/worldEditor/gui/ToolsPaletteGroups/*.ed.gui.edso";
// were executing each gui file and adding them to the ToolsPaletteArray
for( %file = findFirstFile(%filespec); %file !$= ""; %file = findNextFile(%filespec))
{
exec( %file );
%paletteGroup = 0;
%i = %paletteId.getCount();
for( ; %i != 0; %i--)
{
%paletteId.getObject(0).visible = 0;
%paletteId.getObject(0).groupNum = %paletteGroup;
%paletteId.getObject(0).paletteName = %paletteId.getName();
ToolsPaletteArray.addGuiControl(%paletteId.getObject(0));
}
%paletteGroup++;
}
}
function EWToolsPaletteWindow::init()
{
EWToolsPaletteWindow.loadToolsPalettes();
}
function EWToolsPaletteWindow::togglePalette(%this, %paletteName)
{
// since the palette window ctrl auto adjusts to child ctrls being visible,
// loop through the array and pick out the children that belong to a certain tool
// and label them visible or not visible
for( %i = 0; %i < ToolsPaletteArray.getCount(); %i++ )
ToolsPaletteArray.getObject(%i).visible = 0;
%windowMultiplier = 0;
%paletteNameWordCount = getWordCount( %paletteName );
for(%pallateNum = 0; %pallateNum < %paletteNameWordCount; %pallateNum++)
{
%currentPalette = getWord(%paletteName, %pallateNum);
for( %i = 0; %i < ToolsPaletteArray.getCount(); %i++ )
{
if( ToolsPaletteArray.getObject(%i).paletteName $= %currentPalette)
{
ToolsPaletteArray.getObject(%i).visible = 1;
%windowMultiplier++;
}
}
}
// auto adjust the palette window extent according to how many
// children controls we found; if none found, the palette window becomes invisible
if( %windowMultiplier == 0 || %paletteName $= "")
EWToolsPaletteWindow.visible = 0;
else
{
EWToolsPaletteWindow.visible = 1;
EWToolsPaletteWindow.extent = getWord(EWToolsPaletteWindow.extent, 0) SPC (16 + 26 * %windowMultiplier);
}
}

View file

@ -0,0 +1,68 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCtrl(EWToolsPaletteWindow) {
canSaveDynamicFields = "0";
internalName = "ToolsPaletteWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiToolbarWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
Extent = "36 24";
MinExtent = "36 24";
Position = "-1 63";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "4 4 4 4";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
EdgeSnap = false;
text = "";
class = "EWToolsPaletteWindowClass";
new GuiDynamicCtrlArrayControl(ToolsPaletteArray) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "5 15";
Extent = "35 514";
MinExtent = "35 514";
canSave = "1";
Visible = "1";
hovertime = "1000";
colCount = "1";
colSize = "26";
RowSize = "22";
rowSpacing = "3";
colSpacing = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,72 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiContainer(EWToolsToolbar) {
canSaveDynamicFields = "0";
Enabled = "0";
internalName = "ToolsToolbar";
isContainer = "1";
Profile = "editorMenubarProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 31";
Extent = "0 33";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
isClosed = "0";
isDynamic = "0";
new GuiDynamicCtrlArrayControl(ToolsToolbarArray) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "4 3";
Extent = "264 32";
MinExtent = "1024 32";
canSave = "1";
Visible = "1";
hovertime = "1000";
colCount = "1";
colSize = "29";
RowSize = "27";
rowSpacing = "2";
colSpacing = "4";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
internalName = "resizeArrow";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = getWord(EWToolsToolbar.Extent, 0) - 7 SPC "0";
extent = "7 33";
MinExtent = "7 2";
canSave = "1";
Visible = "1";
Command = "EWToolsToolbar.ToggleSize();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Collapse Toolbar";
hovertime = "750";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/collapse-toolbar";
};
new GuiDecoyCtrl(EWToolsToolbarDecoy) {
profile = "ToolsGuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "35 31";
minExtent = "8 8";
visible = "0";
helpTag = "0";
useMouseEvents = "1";
isDecoy = "1";
};
};

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,278 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(VisibilityLayerContainer, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiModelessDialogProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl(EVisibility) {
internalName = "VisibilityLayerWindow";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiToolbarWindowProfile";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
Position = getWord(visibilityToggleBtn.position, 0) SPC getWord(EditorGuiToolbar.extent, 1);
Extent = "161 250"; //175 696 = full length
MinExtent = "161 86";
canSave = "1";
isDecoy = "0";
Visible = "1";
hovertime = "1000";
Docking = "None";
Margin = "4 4 4 4";
Padding = "0 0 0 0";
AnchorTop = "0";
AnchorBottom = "0";
AnchorLeft = "0";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "152 300";
closeCommand = "";
EdgeSnap = "1";
text = "";
new GuiTabBookCtrl(EVisibilityTabBook) {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabBookProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Margin = "3 1 3 3";
Position = "5 24";
Extent = "170 226";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
TabPosition = "Top";
TabHeight = "22";
TabMargin = "7";
MinTabWidth = "8";
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Margin = "-1 0 0 0";
Position = "0 14";
Extent = "164 220";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
hovertime = "1000";
text = "Visual";
maxLength = "255";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Position = "4 12";
Extent = "156 190";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
canSaveDynamicFields = "0";
internalName = "theVisOptionsList";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "1 0";
Extent = "156 16";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
};
};
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Margin = "-1 0 0 0";
Position = "0 14";
Extent = "164 220";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
hovertime = "1000";
text = "Visible";
maxLength = "255";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Position = "4 12";
Extent = "156 190";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
canSaveDynamicFields = "0";
internalName = "theClassVisList";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "1 0";
Extent = "156 16";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
};
};
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Margin = "-1 0 0 0";
Position = "0 14";
Extent = "164 220";
MinExtent = "8 2";
canSave = "1";
Visible = "0";
hovertime = "1000";
text = "Select";
maxLength = "255";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Docking = "Client";
Position = "4 12";
Extent = "156 190";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "2 0";
new GuiStackControl() {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
canSaveDynamicFields = "0";
internalName = "theClassSelList";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "1 0";
Extent = "156 16";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
};
};
};
};
};
};

View file

@ -0,0 +1,143 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCollapseCtrl(EWInspectorWindow) {
canSaveDynamicFields = "0";
internalName = "InspectorWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
Position = getWord($pref::Video::mode, 0) - 209 SPC
getWord(EditorGuiToolbar.extent, 1) + getWord(EWTreeWindow.extent, 1) - 2;
Extent = "210 373";
MinExtent = "210 140";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "8 8 8 8";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
closeCommand = "EWInspectorWindow.setVisible(false);";
minSize = "50 50";
EdgeSnap = "1";
text = "Inspector";
new GuiContainer() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "4 24";
Extent = "202 304";
MinExtent = "64 64";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "client";
Margin = "3 41 3 3";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiEditorScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "202 304";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "Client";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiInspector(Inspector) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "1";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiInspectorProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "0 0";
Extent = "202 309";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
dividerMargin = "5";
superClass = "EditorInspectorBase";
};
};
};
new GuiMLTextCtrl(FieldInfoControl) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "GuiInspectorFieldInfoMLTextProfile";
HorizSizing = "width";
VertSizing = "top";
Position = "1 328";
Extent = "205 14";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
useURLMouseCursor = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,673 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EWorldEditorToolbar, EditorGuiGroup) {
canSaveDynamicFields = "0";
internalName = "WorldEditorToolbar";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "306 0";
Extent = "550" SPC getWord(EditorGuiToolbar.extent, 1);
MinExtent = "8 2";
canSave = "1";
Visible = "1";
new GuiStackControl() {
StackingType = "Horizontal";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "0";
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "0 3";
Extent = "190 31";
MinExtent = "16 16";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
changeChildSizeToFit = false;
padding = "2";
new GuiBitmapButtonCtrl(FitToSelectionBtn) {
canSaveDynamicFields = "0";
internalName = "";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "2 3";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "commandToServer('EditorCameraAutoFit', EWorldEditor.getSelectionRadius()+1);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Fit View To Selection (F)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/fit-selection";
text = "";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "34 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiTextCtrl() {
profile = "ToolsGuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 7";
extent = "77 16";
minExtent = "8 8";
visible = "1";
text = " World Settings";
maxLength = "255";
helpTag = "0";
};
new GuiControl(SnapToBar){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "116 3";
Extent = "123 27";
Padding = "4";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "snappingSettingsBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command ="ESnapOptions.ToggleVisibility();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Snapping Options";
hovertime = "1000";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
buttonMargin = "0 0";
bitmap = "tools/gui/images/menubar/snapping-settings";
new GuiBitmapCtrl(){
HorizSizing = "left";
VertSizing = "top";
Position = "23 21";
Extent = "4 4";
MinExtent = "4 4";
bitmap = "tools/gui/images/dropdown-button-arrow";
};
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectGridSnapBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "31 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "toggleSnappingOptions(\"grid\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Toggles grid snapping (G)";
hovertime = "1000";
groupNum = "-1";
buttonType = "toggleButton";
useMouseEvents = "0";
groupNum = "-1";
bitmap = "tools/gui/images/menubar/snap-grid";
textMargin = "4";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectSnapDownBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "62 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "toggleSnappingOptions(\"terrain\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "All objects will snap to the terrain (T)";
hovertime = "1000";
groupNum = "-1";
buttonType = "toggleButton";
useMouseEvents = "0";
groupNum = "-1";
bitmap = "tools/gui/images/menubar/snap-terrain";
textMargin = "4";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectSnapBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "93 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "toggleSnappingOptions(\"soft\");";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Soft object snapping to other objects (B)";
hovertime = "1000";
groupNum = "-1";
buttonType = "toggleButton";
useMouseEvents = "0";
groupNum = "-1";
bitmap = "tools/gui/images/menubar/snap-objects";
textMargin = "4";
};
};
new GuiControl() {
canSaveDynamicFields = "0";
internalName = "softSnapSizeTextEditContainer";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "178 5";
Extent = "56 22";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "softSnapSizeTextEdit";
isContainer = "0";
HorizSizing = "right";
profile="ToolsGuiNumericDropSliderTextProfile";
VertSizing = "bottom";
position = "0 2";
Extent = "42 16";
MinExtent = "8 16";
canSave = "1";
Visible = "1";
AltCommand = "EWorldEditor.setSoftSnapSize( $ThisControl.getText() ); EWorldEditor.syncGui();";
tooltip = "Object Snapping Distance";
hovertime = "1000";
text = "9";
maxLength = "6";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "34 2";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "Canvas.pushDialog(softSnapSizeSliderCtrlContainer);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Changes size of the soft snap region";
hovertime = "750";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
bitmap = "tools/gui/images/dropslider";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "269 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "boundingBoxColBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "274 3";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Variable = "EWorldEditor.boundingBoxCollision";
Command = "EWorldEditor.boundingBoxCollision = $ThisControl.getValue();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Object bounds selection toggle (V)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/select-bounds";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "307 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(ToggleButtonBar){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "313 3";
Extent = "65 27";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "centerObject";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "objectCenterDropdown.toggle();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Toggles object center (O) and bounds center (P)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/object-center";
text = "Button";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
new GuiBitmapCtrl(){
HorizSizing = "left";
VertSizing = "top";
Position = "23 21";
Extent = "4 4";
MinExtent = "4 4";
bitmap = "tools/gui/images/dropdown-button-arrow";
};
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectTransform";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "31 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "objectTransformDropdown.toggle();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Toggles object transform (K) and world transform (L)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/world-transform";
groupNum = "-1";
buttonType = "ToggleButton";
text = "";
new GuiBitmapCtrl(){
HorizSizing = "left";
VertSizing = "top";
Position = "23 21";
Extent = "4 4";
MinExtent = "4 4";
bitmap = "tools/gui/images/dropdown-button-arrow";
};
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "379 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(ToggleNodeBar){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "386 3";
Extent = "63 27";
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "renderHandleBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Variable = "EWorldEditor.renderObjHandle";
Command = "EWorldEditor.renderObjHandle = $ThisControl.getValue();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Enables Render of Object Node Icons (N)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/object-node-icon";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "renderTextBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "33 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Variable = "EWorldEditor.renderObjText";
Command = "EWorldEditor.renderObjText = $ThisControl.getValue();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Enables Render of Object Node Lables (SHIFT N)";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/object-node-lable";
text = "";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
};
};
new GuiBitmapCtrl() {
Enabled = "1";
Profile = "ToolsGuiDefaultProfile";
position = "379 3";
Extent = "2 26";
MinExtent = "1 1";
bitmap = "tools/gui/images/separator-h.png";
};
new GuiControl(PrefabBar){
isContainer = "1";
profile = "ToolsGuiDefaultProfile";
Position = "386 3";
Extent = "63 27";
visible = true;
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "makePrefabBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Variable = "";
Command = "EditorMakePrefab();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Make the Selection a Prefab.";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/selection-to-prefab";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "explodePrefabBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "33 0";
Extent = "29 27";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Variable = "";
Command = "EditorExplodePrefab();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Explode the Selected Prefab.";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/explode-prefab";
text = "";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
};
new GuiContainer(objectCenterDropdown){
Profile = "IconDropdownProfile";
Position = getWord(EWorldEditorToolbar.position, 0)+getWord(ToggleButtonBar.Position, 0)+getWord(EWorldEditorToolbar-->centerObject.position, 0)-5 SPC getWord(EditorGuiToolbar.extent, 1)-1;
Extent = "132 62";
isContainer = "1";
visible = "0";
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectBoxBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 5";
Extent = "122 25";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "EWorldEditor.objectsUseBoxCenter = 0; EWorldEditor.syncGui(); objectCenterDropdown.toggle(); ";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Use object defined center (O)";
hovertime = "1000";
iconBitmap = "tools/gui/images/menubar/object-center_n";
text = "Object Center";
buttonMargin = "0 4";
textMargin = "38";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectBoundsBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 33 ";
Extent = "122 25";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "EWorldEditor.objectsUseBoxCenter = 1; EWorldEditor.syncGui(); objectCenterDropdown.toggle(); ";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Use bounding box center (P)";
hovertime = "1000";
iconBitmap = "tools/gui/images/menubar/bounds-center_n";
text = "Bounds Center";
buttonMargin = "0 4";
textMargin = "38";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiDecoyCtrl(objectCenterDropdownDecoy) {
profile = "ToolsGuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "132 62";
minExtent = "8 8";
visible = "1";
helpTag = "0";
useMouseEvents = "1";
isDecoy = "1";
};
};
new GuiContainer(objectTransformDropdown){
Profile = "IconDropdownProfile";
Position = getWord(EWorldEditorToolbar.position, 0)+getWord(ToggleButtonBar.position, 0)+getWord(EWorldEditorToolbar-->objectTransform.position, 0)-5 SPC getWord(EditorGuiToolbar.extent, 1)-1;
Extent = "147 62";
isContainer = "1";
visible ="0";
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "worldTransformBtn";
Enabled = "1";
isContainer = "0";
Profile = "GuiIconProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 5";
Extent = "137 25";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.setFieldValue(alignment, World); EWorldEditor.syncGui(); objectTransformDropdown.toggle(); ";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Use world normal for transformations (L)";
hovertime = "1000";
iconBitmap = "tools/gui/images/menubar/world-transform_n";
text = "World Transform";
buttonMargin = "0 4";
textMargin = "38";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiIconButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "objectTransformBtn";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiIconButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "5 33";
Extent = "137 25";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "GlobalGizmoProfile.setFieldValue(alignment, Object); EWorldEditor.syncGui(); objectTransformDropdown.toggle(); ";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Use object normal for transformations (K)";
hovertime = "1000";
iconBitmap = "tools/gui/images/menubar/object-transform_n";
text = "Object Transform";
buttonMargin = "0 4";
textMargin = "38";
groupNum = "0";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiDecoyCtrl(objectTransformDropdownDecoy) {
profile = "ToolsGuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "147 62";
minExtent = "8 8";
visible = "1";
helpTag = "0";
useMouseEvents = "1";
isDecoy = "1";
};
};
};
};
new GuiMouseEventCtrl(softSnapSizeSliderCtrlContainer, EditorGuiGroup) {
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "1024 768";
minExtent = "8 8";
visible = "1";
helpTag = "0";
class = "EditorDropdownSliderContainer";
new GuiSliderCtrl() {
canSaveDynamicFields = "0";
internalName = "slider";
isContainer = "0";
Profile = "ToolsGuiSliderBoxProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = firstWord(EWorldEditorToolbar-->softSnapSizeTextEdit.getGlobalPosition()) - 12 SPC
(getWord(EWorldEditorToolbar-->softSnapSizeTextEdit.getGlobalPosition(), 1)) + 18;
Extent = "112 20";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "softSnapSizeSliderCtrlContainer.onSliderChanged();";
range = "0.01 10";
ticks = "0";
value = "0";
};
};

View file

@ -0,0 +1,577 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCollapseCtrl(EWTreeWindow) {
canSaveDynamicFields = "0";
internalName = "TreeWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
Position = firstWord($pref::Video::mode) - 209
SPC getWord(EditorGuiToolbar.extent, 1) -1;
Extent = "210 324";
MinExtent = "210 140";
HorizSizing = "windowRelative";
VertSizing = "windowRelative";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "8 8 8 8";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "0";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "EWTreeWindow.setVisible(false);";
EdgeSnap = "1";
text = "Scene Tree";
new GuiTabBookCtrl(EditorTreeTabBook) {
canSaveDynamicFields = "0";
isContainer = "1";
internalName = "EditorTree";
Profile = "ToolsGuiTabBookProfile";
HorizSizing = "width";
VertSizing = "height";
position = "6 27";
Extent = "197 289";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "3 2 3 3";
Docking = "client";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
TabPosition = "Top";
TabMargin = "0";
MinTabWidth = "64";
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiEditorTabPage";
HorizSizing = "width";
VertSizing = "height";
position = "0 19";
Extent = "197 271";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Scene";
maxLength = "1024";
new GuiTextEditCtrl( EditorTreeFilter ) {
position = "2 4";
extent = "175 18";
profile = "ToolsGuiTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
class = "GuiTreeViewFilterText";
treeView = EditorTree;
};
new GuiBitmapButtonCtrl() {
bitmap = "tools/gui/images/clear-icon";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "180 5";
Extent = "17 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
class = "GuiTreeViewFilterClearButton";
textCtrl = EditorTreeFilter;
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 25";
Extent = "197 246";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
lockHorizScroll = "false";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTreeViewCtrl(EditorTree) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTreeViewProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "1 1";
Extent = "193 21";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
tabSize = "16";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "21";
destroyTreeOnSleep = "1";
MouseDragging = "1";
MultipleSelections = "1";
DeleteObjectAllowed = "1";
DragToItemAllowed = "1";
showRoot = "1";
useInspectorTooltips = "1";
tooltipOnWidthOnly = "1";
showObjectIds = "0";
showClassNames = "0";
showObjectNames = "1";
showInternalNames = "1";
showClassNameForUnnamedObjects = "1";
};
};
};
new GuiTabPageCtrl(EWCreatorWindow) {
canSaveDynamicFields = "0";
internalName = "CreatorWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiEditorTabPage";
HorizSizing = "width";
VertSizing = "height";
position = "0 19";
Extent = "208 274";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Library";
maxLength = "1024";
new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "GuiInspectorProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "198 271";
MinExtent = "8 2";
canSave = "0";
Visible = "1";
};
new GuiBitmapBorderCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTabBorderProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "198 271";
MinExtent = "8 2";
canSave = "0";
Visible = "1";
hovertime = "1000";
};
new GuiBitmapBorderCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTabBorderProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 25";
Extent = "198 246";
MinExtent = "8 2";
canSave = "0";
Visible = "1";
hovertime = "1000";
};
new GuiContainer() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "-4 47";
Extent = "206 228";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "4 4 4 4";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "EditorLightScrollProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "4 4";
Extent = "198 220";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "Client";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "alwaysOff";
lockHorizScroll = "false";
lockVertScroll = "true";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiDynamicCtrlArrayControl(CreatorIconArray) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "1 1";
Extent = "197 218";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
colCount = "20";
colSize = "64";
rowCount = "0";
RowSize = "32";
rowSpacing = "4";
colSpacing = "4";
frozen = "0";
autoCellSize = "1";
fillRowFirst = "0";
dynamicSize = "1";
};
};
};
new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "-3 2";
Extent = "202 55";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiBitmapButtonCtrl(CreatorNavUpButton) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 28";
Extent = "20 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "EWCreatorWindow.navigateUp();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
groupNum = "0";
buttonType = "PushButton";
Bitmap = "tools/gui/images/folderUp";
autoSize = "0";
};
new GuiPopUpMenuCtrl(CreatorPopupMenu) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiPopUpMenuProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "32 28";
Extent = "163 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Objects";
maxLength = "1024";
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
};
new GuiTabBookCtrl(CreatorTabBook) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabBookProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "6 4";
Extent = "198 21";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "None";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
TabPosition = "Top";
TabMargin = "4";
MinTabWidth = "49";
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Scripted";
maxLength = "1024";
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Meshes";
maxLength = "1024";
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Level";
maxLength = "1024";
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Prefabs";
maxLength = "1024";
};
};
};
};
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "LockSelection";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "157 26";
Extent = "16 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "EWorldEditor.lockSelection(true); EditorTree.toggleLock();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Lock Selection";
hovertime = "1000";
bitmap = "tools/gui/images/lock";
buttonType = "ToggleButton";
groupNum = "-1";
text = "";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(EWAddSimGroupButton) {
canSaveDynamicFields = "0";
internalName = "AddSimGroup";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "173 26";
Extent = "16 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Add Sim Group";
hovertime = "1000";
bitmap = "tools/gui/images/add-simgroup-btn";
buttonType = "PushButton";
groupNum = "-1";
text = "";
useMouseEvents = "0";
useModifiers = "1";
};
new GuiBitmapButtonCtrl() {
canSaveDynamicFields = "0";
internalName = "DeleteSelection";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "189 26";
Extent = "16 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "EditorMenuEditDelete();";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Delete Selection";
hovertime = "1000";
bitmap = "tools/gui/images/delete";
buttonType = "PushButton";
groupNum = "-1";
text = "";
useMouseEvents = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,352 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(CreateNewTerrainGui, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiOverlayProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "640 480";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
Position = "182 94";
Extent = "250 140";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "1";
AnchorLeft = "1";
AnchorRight = "1";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "Canvas.popDialog( CreateNewTerrainGui );";
EdgeSnap = "0";
text = "Create New Terrain";
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "theName";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "68 30";
Extent = "171 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
text = "myNewTerrain";
passwordMask = "*";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "32 31";
Extent = "31 16";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Name:";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 108";
Extent = "138 24";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "CreateNewTerrainGui.create();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Create New";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
accelerator = "return";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "159 108";
Extent = "80 24";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "Canvas.popDialog( CreateNewTerrainGui );";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
accelerator = "escape";
};
new GuiRadioCtrl() {
canSaveDynamicFields = "0";
internalName = "flatRadio";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiRadioProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "155 80";
Extent = "40 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Flat";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiRadioCtrl() {
canSaveDynamicFields = "0";
internalName = "noiseRadio";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiRadioProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "195 80";
Extent = "45 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Noise";
groupNum = "1";
buttonType = "RadioButton";
useMouseEvents = "0";
useInactiveState = "0";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "23 56";
Extent = "40 16";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Material: ";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "10 81";
Extent = "52 16";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Resolution:";
maxLength = "1024";
};
new GuiPopUpMenuCtrl() {
canSaveDynamicFields = "0";
internalName = "theRezList";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiPopUpMenuProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "68 80";
Extent = "57 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
};
new GuiPopUpMenuCtrl() {
canSaveDynamicFields = "0";
internalName = "theMaterialList";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiPopUpMenuProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "68 55";
Extent = "171 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
};
};
};
//--- OBJECT WRITE END ---
function CreateNewTerrainGui::onWake( %this )
{
%this-->theName.setText( "" );
%matList = %this-->theMaterialList;
%matList.clear();
%count = TerrainMaterialSet.getCount();
for ( %i=0; %i < %count; %i++ )
%matList.add( TerrainMaterialSet.getObject( %i ).internalName, %i );
%matList.setSelected( 0 );
%rezList = %this-->theRezList;
%rezList.clear();
%rezList.add( "256", 256 );
%rezList.add( "512", 512 );
%rezList.add( "1024", 1024 );
%rezList.add( "2048", 2048 );
//%rezList.add( "4096", 4096 );
%rezList.setSelected( 256 );
%this-->flatRadio.setStateOn( true );
}
function CreateNewTerrainGui::create( %this )
{
%terrainName = %this-->theName.getText();
%resolution = %this-->theRezList.getSelected();
%materialName = %this-->theMaterialList.getText();
%genNoise = %this-->noiseRadio.getValue();
%obj = TerrainBlock::createNew( %terrainName, %resolution, %materialName, %genNoise );
if( %genNoise )
ETerrainEditor.isDirty = true;
if( isObject( %obj ) )
{
// Submit an undo action.
MECreateUndoAction::submit(%obj);
assert( isObject( EWorldEditor ),
"ObjectBuilderGui::processNewObject - EWorldEditor is missing!" );
// Select it in the editor.
EWorldEditor.clearSelection();
EWorldEditor.selectObject(%obj);
// When we drop the selection don't store undo
// state for it... the creation deals with it.
EWorldEditor.dropSelection( true );
}
Canvas.popDialog( %this );
}

View file

@ -0,0 +1,310 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TerrainExportGui, EditorGuiGroup) {
canSaveDynamicFields = "0";
Profile = "ToolsGuiOverlayProfile";
Enabled = "1";
isContainer = "1";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCtrl(TerrainExportWindow) {
profile = "ToolsGuiWindowProfile";
canSaveDynamicFields = "0";
internalName = "TerrainExport";
Enabled = "1";
isContainer = "1";
HorizSizing = "center";
VertSizing = "center";
Position = "248 248";
Extent = "290 235";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "1";
AnchorLeft = "1";
AnchorRight = "1";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "TerrainExportGui.close();";
EdgeSnap = "0";
canCollapse = "0";
text = "Export Terrain";
new GuiScrollCtrl(TerrainSelectScroll) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 43";
Extent = "272 112";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiListBoxCtrl(TerrainSelectListBox) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "2 2";
Extent = "248 104";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
AllowMultipleSelections = "1";
fitParentWidth = "1";
};
};
new GuiTextCtrl(TerrainSelectText) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 25";
Extent = "88 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Select Terrain(s):";
maxLength = "1024";
};
new GuiTextEditCtrl(SelectFolderTextEdit) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 176";
Extent = "195 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiButtonCtrl(SelectFolderButton) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "212 174";
Extent = "69 22";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "TerrainExportGui.selectFolder();";
hovertime = "1000";
text = "Browse";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "174 202";
Extent = "107 24";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "TerrainExportGui.close();";
hovertime = "1000";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl(ExportButton) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 202";
Extent = "107 24";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "TerrainExportGui.export();";
hovertime = "1000";
text = "Export";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiTextCtrl(FolderText) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
HorizSizing = "right";
VertSizing = "bottom";
Position = "9 159";
Extent = "96 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Folder:";
maxLength = "1024";
};
};
};
//--- OBJECT WRITE END ---
function TerrainExportGui::findAllTerrains( %this )
{
TerrainSelectListBox.clearItems();
if ( isObject( MegaTerrain ) )
TerrainSelectListBox.addItem( "MegaTerrain" );
// Find all of the terrain files
initContainerTypeSearch( $TypeMasks::TerrainObjectType );
while ( (%terrainObject = containerSearchNext()) != 0 )
{
%terrainId = %terrainObject.getId();
%terrainName = %terrainObject.getName();
if ( %terrainName $= "" )
%terrainName = "Unnamed (" @ %terrainId @ ")";
TerrainSelectListBox.addItem( %terrainName, %terrainId );
}
}
function TerrainExportGui::init( %this )
{
%this.findAllTerrains();
}
function TerrainExportGui::export( %this )
{
%itemId = TerrainSelectListBox.getSelectedItem();
%terrainObj = TerrainSelectListBox.getItemObject( %itemId );
if ( !isObject( %terrainObj ) )
{
MessageBoxOK( "Export failed", "Could not find the selected TerrainBlock!" );
return;
}
%filePath = SelectFolderTextEdit.getText();
%terrainName = %terrainObj.getName();
if ( %terrainName $= "" )
%terrainName = "Unnamed";
%fileName = %terrainName @ "_heightmap.png";
%filePrefix = %terrainName @ "_layerMap";
%ret = %terrainObj.exportHeightMap( %filePath @ "/" @ %fileName, "png" );
if ( %ret )
%ret = %terrainObj.exportLayerMaps( %filePath @ "/" @ %filePrefix, "png" );
if ( %ret )
%this.close();
}
function TerrainExportGui::onWake( %this )
{
TerrainExportGui.init();
}
function TerrainExportGui::close( %this )
{
Canvas.popDialog( %this );
}
function TerrainExportGui::showExportDialog( %this )
{
%this.findAllTerrains();
Canvas.pushDialog( %this );
}
function TerrainExportGui::openFolderCallback( %this, %path )
{
SelectFolderTextEdit.setText( %path );
}
function TerrainExportGui::selectFolder( %this )
{
%this.doOpenDialog( "", %this @ ".openFolderCallback" );
}
function TerrainExportGui::doOpenDialog( %this, %filter, %callback )
{
%dlg = new OpenFolderDialog()
{
Title = "Select Export Folder";
Filters = %filter;
DefaultFile = %currentFile;
ChangePath = false;
MustExist = true;
MultipleFiles = false;
};
if(filePath( %currentFile ) !$= "")
%dlg.DefaultPath = filePath(%currentFile);
else
%dlg.DefaultPath = getMainDotCSDir();
if(%dlg.Execute())
eval(%callback @ "(\"" @ %dlg.FileName @ "\");");
%dlg.delete();
}

View file

@ -0,0 +1,759 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TerrainImportGui, EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiOverlayProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl() {
canSaveDynamicFields = "0";
internalName = "TerrainImport";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "center";
VertSizing = "center";
Position = "119 84";
Extent = "391 257";
MinExtent = "391 257";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "1";
AnchorLeft = "1";
AnchorRight = "1";
resizeWidth = "1";
resizeHeight = "0";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "4 4";
closeCommand = "Canvas.popDialog( TerrainImportGui );";
EdgeSnap = "0";
text = "Import Terrain Height Map";
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "HeightfieldFilename";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "width";
VertSizing = "top";
Position = "10 85";
Extent = "298 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " ";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "11 66";
Extent = "120 20";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Height Map Image:";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "316 83";
Extent = "65 22";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "TerrainImportGui.browseForHeightfield();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Browse...";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "MetersPerPixel";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "226 44";
Extent = "82 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "1";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "226 26";
Extent = "88 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Meters Per Pixel";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "316 26";
Extent = "64 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Height Scale:";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "HeightScale";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "316 44";
Extent = "64 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "256";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiBitmapCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "10 112";
Extent = "365 2";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
bitmap = "tools/gui/images/separator-v";
wrap = "0";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "14 123";
Extent = "74 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "1";
text = "Texture Map";
maxLength = "1024";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "341 142";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "TerrainImportGui.browseForOpacityMap();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "+";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "341 165";
Extent = "18 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "TerrainImportGui.removeOpacitymap();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "-";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "195 225";
Extent = "88 24";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "TerrainImportGui.import();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Import";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
internalName = "OpacityLayerScroll";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "top";
Position = "10 142";
Extent = "326 75";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTextListCtrl() {
canSaveDynamicFields = "0";
internalName = "OpacityLayerTextList";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTextListProfile";
HorizSizing = "width";
VertSizing = "top";
Position = "1 1";
Extent = "293 2";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
AltCommand = "TerrainImportGui.onOpacityListDblClick();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
enumerate = "0";
resizeCell = "1";
columns = "0 250 300";
fitParentWidth = "1";
clipColumnText = "1";
};
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "264 123";
Extent = "48 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Channels";
maxLength = "1024";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "11 26";
Extent = "64 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Name:";
maxLength = "1024";
};
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";
internalName = "TerrainName";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTextEditProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "10 44";
Extent = "206 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "theTerrain";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
passwordMask = "*";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "341 199";
Extent = "40 18";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "TerrainImportGui.onOpacityListDblClick();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Edit";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "top";
Position = "293 225";
Extent = "88 24";
MinExtent = "8 2";
canSave = "1";
isDecoy = "0";
Visible = "1";
Command = "Canvas.popDialog( TerrainImportGui );";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
text = "Cancel";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiCheckBoxCtrl() {
text = " Flip Y axis?";
groupNum = "-1";
buttonType = "ToggleButton";
useMouseEvents = "0";
position = "12 222";
extent = "140 30";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "GuiCheckBoxProfile";
visible = "1";
active = "1";
tooltipProfile = "GuiToolTipProfile";
hovertime = "1000";
isContainer = "0";
internalName = "FlipYAxis";
canSave = "1";
canSaveDynamicFields = "0";
};
};
};
//--- OBJECT WRITE END ---
function TerrainImportGui::onWake( %this )
{
if ( !isObject( %this.namesArray ) )
%this.namesArray = new ArrayObject();
if ( !isObject( %this.channelsArray ) )
%this.channelsArray = new ArrayObject();
}
function TerrainImportGui::import( %this )
{
// Gather all the import settings.
%heightMapPng = %this-->HeightfieldFilename.getText();
%metersPerPixel = %this-->MetersPerPixel.getText();
%heightScale = %this-->HeightScale.getText();
%flipYAxis = %this-->FlipYAxis.isStateOn();
// Grab and validate terrain object name.
%terrainName = %this-->TerrainName.getText();
if( !( isObject( %terrainName ) && %terrainName.isMemberOfClass( "TerrainBlock" ) ) &&
!Editor::validateObjectName( %terrainName ) )
return;
%opacityNames = "";
%materialNames = "";
%opacityList = %this-->OpacityLayerTextList;
for( %i = 0; %i < %opacityList.rowCount(); %i++ )
{
%itemText = %opacityList.getRowTextById( %i );
%opacityName = %this.namesArray.getValue( %i );
%channelInfo = %this.channelsArray.getValue( %i );
%channel = getWord( %channelInfo, 0 );
%materialName = getField( %itemText, 2 );
%opacityNames = %opacityNames @ %opacityName TAB %channel @ "\n";
%materialNames = %materialNames @ %materialName @ "\n";
}
%updated = nameToID( %terrainName );
// This will update an existing terrain with the name %terrainName,
// or create a new one if %terrainName isn't a TerrainBlock
%obj = TerrainBlock::import( %terrainName,
%heightMapPng,
%metersPerPixel,
%heightScale,
%opacityNames,
%materialNames,
%flipYAxis );
Canvas.popDialog( %this );
if ( isObject( %obj ) )
{
if( %obj != %updated )
{
// created a new TerrainBlock
// Submit an undo action.
MECreateUndoAction::submit(%obj);
}
assert( isObject( EWorldEditor ),
"ObjectBuilderGui::processNewObject - EWorldEditor is missing!" );
// Select it in the editor.
EWorldEditor.clearSelection();
EWorldEditor.selectObject(%obj);
// When we drop the selection don't store undo
// state for it... the creation deals with it.
EWorldEditor.dropSelection( true );
ETerrainEditor.isDirty = true;
EPainter.updateLayers();
}
else
{
MessageBox( "Import Terrain",
"Terrain import failed! Check console for error messages.",
"Ok", "Error" );
}
}
function TerrainImportGui::doOpenDialog( %this, %filter, %callback )
{
%dlg = new OpenFileDialog()
{
Filters = %filter;
DefaultFile = %currentFile;
ChangePath = false;
MustExist = true;
MultipleFiles = false;
};
if(filePath( %currentFile ) !$= "")
%dlg.DefaultPath = filePath(%currentFile);
else
%dlg.DefaultPath = getMainDotCSDir();
if(%dlg.Execute())
eval(%callback @ "(\"" @ %dlg.FileName @ "\");");
%dlg.delete();
}
function TerrainImportGui_SetHeightfield( %name )
{
TerrainImportGui-->HeightfieldFilename.setText( %name );
}
$TerrainImportGui::HeightFieldFilter = "Heightfield Files (*.png, *.bmp, *.jpg, *.gif)|*.png;*.bmp;*.jpg;*.gif|All Files (*.*)|*.*|";
$TerrainImportGui::OpacityMapFilter = "Opacity Map Files (*.png, *.bmp, *.jpg, *.gif)|*.png;*.bmp;*.jpg;*.gif|All Files (*.*)|*.*|";
function TerrainImportGui::browseForHeightfield( %this )
{
%this.doOpenDialog( $TerrainImportGui::HeightFieldFilter, "TerrainImportGui_SetHeightfield" );
}
function TerrainImportGuiAddOpacityMap( %name )
{
// TODO: Need to actually look at
// the file here and figure
// out how many channels it has.
%txt = makeRelativePath( %name, getWorkingDirectory() );
// Will need to do this stuff
// once per channel in the file
// currently it works with just grayscale.
%channelsTxt = "R" TAB "G" TAB "B" TAB "A";
%bitmapInfo = getBitmapinfo( %name );
%channelCount = getWord( %bitmapInfo, 2 );
%opacityList = TerrainImportGui-->OpacityLayerTextList;
for ( %i = 0; %i < %channelCount; %i++ )
{
TerrainImportGui.namesArray.push_back( %txt, %name );
TerrainImportGui.channelsArray.push_back( %txt, getWord( %channelsTxt, %i ) TAB %channelCount );
//TerrainImportGui.namesArray.echo();
%count = %opacityList.rowCount();
%opacityList.addRow( %count, %txt TAB getWord( %channelsTxt, %i ) );
}
//OpacityMapListBox.addItem( %name );
}
function TerrainImportGui::browseForOpacityMap( %this )
{
TerrainImportGui.doOpenDialog( $TerrainImportGui::OpacityMapFilter, "TerrainImportGuiAddOpacityMap" );
}
function TerrainImportGui::removeOpacitymap( %this )
{
%opacityList = %this-->OpacityLayerTextList;
//%itemIdx = OpacityMapListBox.getSelectedItem();
%itemIdx = %opacityList.getSelectedId();
if ( %itemIdx < 0 ) // -1 is no item selected
return;
%this.namesArray.erase( %itemIdx );
%this.channelsArray.erase( %itemIdx );
//%this.namesArray.echo();
%opacityList.removeRowById( %itemIdx );
//OpacityMapListBox.deleteItem( %itemIdx );
}
function TerrainImportGui::onOpacityListDblClick( %this )
{
%opacityList = %this-->OpacityLayerTextList;
//echo( "Double clicked the opacity list control!" );
%itemIdx = %opacityList.getSelectedId();
if ( %itemIdx < 0 )
return;
%this.activeIdx = %itemIdx;
%rowTxt = %opacityList.getRowTextById( %itemIdx );
%matTxt = getField( %rowTxt, 2 );
%matId = getField( %rowTxt, 3 );
TerrainMaterialDlg.showByObjectId( %matId, TerrainImportGui_TerrainMaterialApplyCallback );
}
function TerrainImportGui_TerrainMaterialApplyCallback( %mat, %matIndex )
{
// Skip over a bad selection.
if ( !isObject( %mat ) )
return;
%opacityList = TerrainImportGui-->OpacityLayerTextList;
%itemIdx = TerrainImportGui.activeIdx;
if ( %itemIdx < 0 || %itemIdx $= "" )
return;
%rowTxt = %opacityList.getRowTextById( %itemIdx );
%columntTxtCount = getFieldCount( %rowTxt );
if ( %columntTxtCount > 2 )
%rowTxt = getFields( %rowTxt, 0, 1 );
%opacityList.setRowById( %itemIdx, %rowTxt TAB %mat.internalName TAB %mat );
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,286 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(WorldEditorCreatorWindowContainer) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiWindowCtrl(EWCreatorWindow) {
canSaveDynamicFields = "0";
internalName = "CreatorWindow";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "38 36";
Extent = "354 276";
MinExtent = "354 207";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "30 30";
EdgeSnap = "0";
text = "Creator";
new GuiContainer() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "2 80";
Extent = "348 195";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "4 4 4 4";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "EditorLightScrollProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "4 4";
Extent = "340 187";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "Client";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "alwaysOff";
lockHorizScroll = "false";
lockVertScroll = "true";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiDynamicCtrlArrayControl(CreatorIconArray) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTransparentProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "2 2";
Extent = "335 183";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
colCount = "9";
colSize = "64";
rowCount = "0";
RowSize = "64";
rowSpacing = "4";
colSpacing = "4";
frozen = "0";
autoCellSize = "1";
fillRowFirst = "0";
dynamicSize = "1";
};
};
};
new GuiControl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "4 24";
Extent = "348 55";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
new GuiBitmapButtonCtrl(CreatorNavUpButton) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "left";
VertSizing = "bottom";
Position = "319 33";
Extent = "20 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "EWCreatorWindow.navigateUp();";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
groupNum = "-1";
buttonType = "PushButton";
Bitmap = "tools/gui/images/folderUp.png";
autoSize = "0";
};
new GuiPopUpMenuCtrl(CreatorPopupMenu) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "ToolsGuiPopUpMenuProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "4 33";
Extent = "308 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Objects";
maxLength = "1024";
maxPopupHeight = "200";
sbUsesNAColor = "0";
reverseTextList = "0";
bitmapBounds = "16 16";
};
new GuiTabBookCtrl(CreatorTabBook) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabBookProfile";
HorizSizing = "width";
VertSizing = "bottom";
Position = "4 4";
Extent = "342 21";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Docking = "None";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
TabPosition = "Top";
TabMargin = "7";
MinTabWidth = "64";
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Shapes";
maxLength = "1024";
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "0";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "Geometry";
maxLength = "1024";
};
new GuiTabPageCtrl() {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "ToolsGuiTabPageProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "0 0";
MinExtent = "0 0";
canSave = "1";
Visible = "1";
tooltipprofile = "ToolsGuiToolTipProfile";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = "MissionObjects";
maxLength = "1024";
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,299 @@
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(WorldEditorMissionInspector,EditorGuiGroup) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiWindowCtrl(EWInspectorWindow) {
canSaveDynamicFields = "0";
internalName = "InspectorWindow";
isContainer = "1";
Profile = "ToolsGuiWindowProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "333 26";
Extent = "304 448";
MinExtent = "304 448";
canSave = "1";
Visible = "0";
hovertime = "1000";
text = "Mission Inspector";
maxLength = "1024";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "0";
canMaximize = "0";
minSize = "50 50";
closeCommand = "EWInspectorFrame.parentGroup.setVisible(false);";
new GuiFrameSetCtrl(EWInspectorFrame) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiFrameSetProfile";
HorizSizing = "width";
VertSizing = "height";
position = "8 32";
Extent = "288 408";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
columns = "0";
rows = "0 206";
borderWidth = "0";
borderColor = "84 12 136 1";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
fudgeFactor = "0";
new GuiControl(EWTreePane) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "EditorDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "288 202";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "288 202";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
lockHorizScroll = "true";
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTreeViewCtrl(EditorTree) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTreeViewProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "2 2";
Extent = "226 21";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
tabSize = "16";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "21";
destroyTreeOnSleep = "1";
MouseDragging = "1";
MultipleSelections = "1";
DeleteObjectAllowed = "1";
DragToItemAllowed = "1";
};
};
};
new GuiControl(EWCreatorInspectorPane) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "EditorDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 206";
Extent = "288 202";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiScrollCtrl(EWCreatorPane) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "288 202";
MinExtent = "8 8";
canSave = "1";
Visible = "0";
hovertime = "1000";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
lockHorizScroll = true;
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTreeViewCtrl(Creator) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiTreeViewProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "2 2";
Extent = "131 84";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
tabSize = "16";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "21";
destroyTreeOnSleep = "1";
MouseDragging = "1";
MultipleSelections = "1";
DeleteObjectAllowed = "1";
DragToItemAllowed = "1";
};
};
new GuiControl(EWInspectorPane) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "EditorDefaultProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "288 202";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiControl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiSolidDefaultProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "0 0";
Extent = "288 24";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiButtonCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "ToolsGuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "2 2";
Extent = "40 20";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
Command = "EWorldEditor.isDirty = true;EWorldEditor.makeFirstResponder(true);";
tooltipprofile = "ToolsGuiToolTipProfile";
ToolTip = "Don\'t forget to hit Apply after making changes!";
hovertime = "1000";
text = "Apply";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
};
new GuiTextCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiInspectorFieldProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "52 4";
Extent = "42 16";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
text = "Name:";
maxLength = "1024";
};
new GuiTextEditCtrl(InspectorNameEdit) {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiInspectorBackgroundProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "97 4";
Extent = "758 18";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
AltCommand = "EWorldEditor.isDirty = true;";
hovertime = "1000";
maxLength = "1024";
historySize = "0";
password = "0";
tabComplete = "0";
sinkAllKeyEvents = "0";
password = "0";
passwordMask = "*";
};
};
new GuiScrollCtrl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "ToolsGuiScrollProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 24";
Extent = "288 178";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
lockHorizScroll = true;
lockVertScroll = "false";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiInspector(Inspector) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "1";
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiInspectorBackgroundProfile";
HorizSizing = "width";
VertSizing = "bottom";
position = "2 2";
Extent = "266 8";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
};
};
};
};
};
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,126 @@
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
singleton GuiControlProfile (EditorDefaultProfile)
{
opaque = true;
category = "Editor";
};
singleton GuiControlProfile (EditorToolButtonProfile)
{
opaque = true;
border = 2;
category = "Editor";
};
singleton GuiControlProfile (EditorTextProfile)
{
fontType = "Arial Bold";
fontColor = "0 0 0";
autoSizeWidth = true;
autoSizeHeight = true;
category = "Editor";
};
singleton GuiControlProfile (EditorTextProfileWhite)
{
fontType = "Arial Bold";
fontColor = "255 255 255";
autoSizeWidth = true;
autoSizeHeight = true;
category = "Editor";
};
singleton GuiControlProfile (WorldEditorProfile)
{
canKeyFocus = true;
category = "Editor";
};
singleton GuiControlProfile (EditorScrollProfile)
{
opaque = true;
fillColor = "192 192 192 192";
border = 3;
borderThickness = 2;
borderColor = "0 0 0";
bitmap = "tools/gui/images/scrollBar";
hasBitmapArray = true;
category = "Editor";
};
singleton GuiControlProfile (GuiEditorClassProfile)
{
opaque = true;
fillColor = "232 232 232";
border = true;
borderColor = "0 0 0";
borderColorHL = "127 127 127";
fontColor = "0 0 0";
fontColorHL = "50 50 50";
fixedExtent = true;
justify = "center";
bitmap = "tools/gui/images/scrollBar";
hasBitmapArray = true;
category = "Editor";
};
singleton GuiControlProfile( EPainterBitmapProfile )
{
opaque = false;
border = false;
borderColor ="243 242 241";
Color ="230 230 230";
category = "Editor";
};
singleton GuiControlProfile( EPainterBorderButtonProfile : ToolsGuiDefaultProfile )
{
border = true;
borderColor = "0 0 0";
borderThickness = 2;
fontColorHL = "255 0 0";
fontColorSEL = "0 0 255";
category = "Editor";
};
singleton GuiControlProfile( EPainterDragDropProfile )
{
justify = "center";
fontColor = "0 0 0";
border = 0;
textOffset = "0 0";
opaque = true;
fillColor = "221 221 221 150";
category = "Editor";
};
singleton GizmoProfile( GlobalGizmoProfile )
{
// This isnt a GuiControlProfile but fits in well here.
// Don't really have to initialize this now because that will be done later
// based on the saved editor prefs.
screenLength = 100;
category = "Editor";
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 B

Some files were not shown because too many files have changed in this diff Show more