mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Fixed up behavior of the new functions of convex editor.
This commit is contained in:
parent
29433b9f22
commit
d6f87da608
5 changed files with 796 additions and 370 deletions
|
|
@ -75,131 +75,21 @@ new Scene(PbrMatTestLevel) {
|
||||||
canSaveDynamicFields = "1";
|
canSaveDynamicFields = "1";
|
||||||
direction = "1 1 -1";
|
direction = "1 1 -1";
|
||||||
};
|
};
|
||||||
new SimGroup(PlayerDropPoints) {
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
Enabled = "1";
|
|
||||||
};
|
|
||||||
new Skylight(theSkyLight) {
|
|
||||||
Enabled = "1";
|
|
||||||
ReflectionMode = "Baked Cubemap";
|
|
||||||
position = "8.74661 10.1457 2.94337";
|
|
||||||
rotation = "1 0 0 0";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
persistentId = "247d7009-db8a-11e8-87b8-ed691a78e155";
|
|
||||||
posOffset = "0 0 0";
|
|
||||||
ProbeShape = "Box";
|
|
||||||
radius = "10";
|
|
||||||
reflectionPath = "levels/Timmy Test/probes/";
|
|
||||||
scale = "1 1 1";
|
|
||||||
};
|
|
||||||
new SpotLight() {
|
|
||||||
range = "10";
|
|
||||||
innerAngle = "5";
|
|
||||||
outerAngle = "45";
|
|
||||||
isEnabled = "1";
|
|
||||||
color = "1 0 0 1";
|
|
||||||
brightness = "1";
|
|
||||||
castShadows = "1";
|
|
||||||
staticRefreshFreq = "32";
|
|
||||||
dynamicRefreshFreq = "8";
|
|
||||||
priority = "1";
|
|
||||||
animate = "1";
|
|
||||||
animationPeriod = "5";
|
|
||||||
animationPhase = "1";
|
|
||||||
flareScale = "1";
|
|
||||||
attenuationRatio = "0 1 1";
|
|
||||||
shadowType = "Spot";
|
|
||||||
texSize = "512";
|
|
||||||
overDarkFactor = "2000 1000 500 100";
|
|
||||||
shadowDistance = "400";
|
|
||||||
shadowSoftness = "0.15";
|
|
||||||
numSplits = "1";
|
|
||||||
logWeight = "0.91";
|
|
||||||
fadeStartDistance = "0";
|
|
||||||
lastSplitTerrainOnly = "0";
|
|
||||||
representedInLightmap = "0";
|
|
||||||
shadowDarkenColor = "0 0 0 -1";
|
|
||||||
includeLightmappedGeometryInShadow = "0";
|
|
||||||
position = "-11.3397 10.2393 5.48993";
|
|
||||||
rotation = "0.996932 0.0250098 -0.0741721 37.3757";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
};
|
|
||||||
new PointLight() {
|
|
||||||
radius = "10";
|
|
||||||
isEnabled = "1";
|
|
||||||
color = "0.011612 1 0.991102 1";
|
|
||||||
brightness = "1";
|
|
||||||
castShadows = "1";
|
|
||||||
staticRefreshFreq = "32";
|
|
||||||
dynamicRefreshFreq = "8";
|
|
||||||
priority = "1";
|
|
||||||
animate = "1";
|
|
||||||
animationPeriod = "1";
|
|
||||||
animationPhase = "1";
|
|
||||||
flareScale = "1";
|
|
||||||
attenuationRatio = "0 1 1";
|
|
||||||
shadowType = "DualParaboloidSinglePass";
|
|
||||||
texSize = "512";
|
|
||||||
overDarkFactor = "2000 1000 500 100";
|
|
||||||
shadowDistance = "400";
|
|
||||||
shadowSoftness = "0.15";
|
|
||||||
numSplits = "1";
|
|
||||||
logWeight = "0.91";
|
|
||||||
fadeStartDistance = "0";
|
|
||||||
lastSplitTerrainOnly = "0";
|
|
||||||
representedInLightmap = "0";
|
|
||||||
shadowDarkenColor = "0 0 0 -1";
|
|
||||||
includeLightmappedGeometryInShadow = "0";
|
|
||||||
position = "-9.67408 18.3499 3.91894";
|
|
||||||
rotation = "1 0 0 0";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
};
|
|
||||||
new ConvexShape() {
|
new ConvexShape() {
|
||||||
Material = "Grid_512_Orange";
|
Material = "Grid512_OrangeLines_Mat";
|
||||||
position = "-6.41329 13.7734 2.12278";
|
|
||||||
rotation = "0 0 1 3.19212";
|
|
||||||
scale = "1 1 1";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
|
|
||||||
surface = "0 0 0 1 0 0 0.384079";
|
|
||||||
surface = "0 1 0 0 0 0 -0.384079";
|
|
||||||
surface = "0.707107 0 0 0.707107 0 0.285194 0";
|
|
||||||
surface = "0 0.707107 -0.707107 0 0 -0.285194 -1.42109e-14";
|
|
||||||
surface = "0.5 0.5 -0.5 0.5 -0.758333 0 -1.07696e-07";
|
|
||||||
surface = "0.5 -0.5 0.5 0.5 0.758333 0 -1.07696e-07";
|
|
||||||
};
|
|
||||||
new BoxEnvironmentProbe() {
|
|
||||||
Enabled = "0";
|
|
||||||
refOffset = "0 0 0";
|
|
||||||
refScale = "10 10 10";
|
|
||||||
ReflectionMode = "Baked Cubemap";
|
|
||||||
position = "-11.7544 15.2634 4.67576";
|
|
||||||
rotation = "1 0 0 0";
|
|
||||||
scale = "10 10 10";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "1";
|
|
||||||
persistentId = "8c7e1f23-5f1c-11e9-8089-c88cdaba85a3";
|
|
||||||
attenuation = "1";
|
|
||||||
};
|
|
||||||
new ConvexShape() {
|
|
||||||
Material = "Floor_Material";
|
|
||||||
position = "0 0 0";
|
position = "0 0 0";
|
||||||
rotation = "1 0 0 0";
|
rotation = "1 0 0 0";
|
||||||
scale = "15 15 1";
|
scale = "1 1 1";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "1";
|
canSaveDynamicFields = "1";
|
||||||
|
|
||||||
surface = "0 0 0 1 0 0 0.5";
|
surfaceTexture = "Floor_Material";
|
||||||
surface = "0 1 0 0 0 0 -0.5";
|
surface = "0 0 0 1 0 0 0.5 1 0 0 1 1 0 0 0";
|
||||||
surface = "0.707107 0 0 0.707107 0 0.5 0";
|
surface = "0 1 0 0 0 0 -0.5 1 0 0 1 1 0 0 0";
|
||||||
surface = "0 0.707107 -0.707107 0 0 -0.5 0";
|
surface = "0.707107 0 0 0.707107 0 4 0 1 0 0 1 1 0 0 0";
|
||||||
surface = "0.5 0.5 -0.5 0.5 -0.5 0 0";
|
surface = "0 0.707107 -0.707107 0 0 -4 0 1 0 0 1 1 0 0 0";
|
||||||
surface = "0.5 -0.5 0.5 0.5 0.5 0 0";
|
surface = "0.5 0.5 -0.5 0.5 -4 0 0 1 0 0 1 1 0 0 0";
|
||||||
|
surface = "0.5 -0.5 0.5 0.5 4 0 0 1 0 0 1 1 0 0 0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
//--- OBJECT WRITE END ---
|
//--- OBJECT WRITE END ---
|
||||||
|
|
|
||||||
|
|
@ -24,16 +24,16 @@ function ConvexEditorGui::onWake( %this )
|
||||||
{
|
{
|
||||||
convexEditorToolbar-->gridSnapSizeEdit.setText(%this.getGridSnapSize());
|
convexEditorToolbar-->gridSnapSizeEdit.setText(%this.getGridSnapSize());
|
||||||
|
|
||||||
if(ConvexEditorOptionssWindow-->matPreviewBtn.bitmap $= "")
|
if(ConvexEditorOptionsWindow-->matPreviewBtn.bitmap $= "")
|
||||||
{
|
{
|
||||||
//no active material, so set one
|
//no active material, so set one
|
||||||
ConvexEditorOptionssWindow-->matPreviewBtn.setText("");
|
ConvexEditorOptionsWindow-->matPreviewBtn.setText("");
|
||||||
|
|
||||||
%mat = EditorSettings.Value("ConvexEditor/MaterialName");
|
%mat = EditorSettings.Value("ConvexEditor/MaterialName");
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->matPreviewBtn.setBitmap(%mat.diffuseMap[0]);
|
ConvexEditorOptionsWindow-->matPreviewBtn.setBitmap(%mat.diffuseMap[0]);
|
||||||
|
|
||||||
ConvexEditorOptionssWindow.activeMaterial = %mat;
|
ConvexEditorOptionsWindow.activeMaterial = %mat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,29 +60,29 @@ function ConvexEditorGui::onSelectionChanged( %this, %shape, %face )
|
||||||
|
|
||||||
if ( !isObject( %shape ) )
|
if ( !isObject( %shape ) )
|
||||||
{
|
{
|
||||||
ConvexEditorOptionssWindow-->defMatPreviewBtn.setText("No Brush Selected");
|
ConvexEditorOptionsWindow-->defMatPreviewBtn.setText("No Brush Selected");
|
||||||
ConvexEditorOptionssWindow.activeShape = "";
|
ConvexEditorOptionsWindow.activeShape = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvexEditorDeleteFaceBtn.setActive( true );
|
ConvexEditorDeleteFaceBtn.setActive( true );
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->defMatPreviewBtn.setText("");
|
ConvexEditorOptionsWindow-->defMatPreviewBtn.setText("");
|
||||||
ConvexEditorOptionssWindow-->defMatPreviewBtn.setBitmap(%shape.material.diffuseMap[0]);
|
ConvexEditorOptionsWindow-->defMatPreviewBtn.setBitmap(%shape.material.diffuseMap[0]);
|
||||||
|
|
||||||
ConvexEditorOptionssWindow.activeShape = %shape;
|
ConvexEditorOptionsWindow.activeShape = %shape;
|
||||||
|
|
||||||
if ( %face == -1 )
|
if ( %face == -1 )
|
||||||
{
|
{
|
||||||
ConvexEditorDeleteFaceBtn.ToolTip = "Delete selected ConvexShape (Delete)";
|
ConvexEditorDeleteFaceBtn.ToolTip = "Delete selected ConvexShape (Delete)";
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->UOffset.setText("");
|
ConvexEditorOptionsWindow-->UOffset.setText("");
|
||||||
ConvexEditorOptionssWindow-->VOffset.setText("");
|
ConvexEditorOptionsWindow-->VOffset.setText("");
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->UScale.setText("");
|
ConvexEditorOptionsWindow-->UScale.setText("");
|
||||||
ConvexEditorOptionssWindow-->VScale.setText("");
|
ConvexEditorOptionsWindow-->VScale.setText("");
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->ZRotation.setText("");
|
ConvexEditorOptionsWindow-->ZRotation.setText("");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -93,15 +93,15 @@ function ConvexEditorGui::onSelectionChanged( %this, %shape, %face )
|
||||||
|
|
||||||
%UVOffset = %this.getSelectedFaceUVOffset();
|
%UVOffset = %this.getSelectedFaceUVOffset();
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->UOffset.setText(%UVOffset.x);
|
ConvexEditorOptionsWindow-->UOffset.setText(%UVOffset.x);
|
||||||
ConvexEditorOptionssWindow-->VOffset.setText(%UVOffset.y);
|
ConvexEditorOptionsWindow-->VOffset.setText(%UVOffset.y);
|
||||||
|
|
||||||
%UVScale = %this.getSelectedFaceUVScale();
|
%UVScale = %this.getSelectedFaceUVScale();
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->UScale.setText(%UVScale.x);
|
ConvexEditorOptionsWindow-->UScale.setText(%UVScale.x);
|
||||||
ConvexEditorOptionssWindow-->VScale.setText(%UVScale.y);
|
ConvexEditorOptionsWindow-->VScale.setText(%UVScale.y);
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->ZRotation.setText(ConvexEditorGui.getSelectedFaceZRot());
|
ConvexEditorOptionsWindow-->ZRotation.setText(ConvexEditorGui.getSelectedFaceZRot());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -110,14 +110,14 @@ function ConvexEditorUVFld::onReturn(%this)
|
||||||
EWorldEditor.isDirty = true;
|
EWorldEditor.isDirty = true;
|
||||||
|
|
||||||
%offset = "0 0";
|
%offset = "0 0";
|
||||||
%offset.x = ConvexEditorOptionssWindow-->UOffset.getText();
|
%offset.x = ConvexEditorOptionsWindow-->UOffset.getText();
|
||||||
%offset.y = ConvexEditorOptionssWindow-->VOffset.getText();
|
%offset.y = ConvexEditorOptionsWindow-->VOffset.getText();
|
||||||
|
|
||||||
%scale = "0 0";
|
%scale = "0 0";
|
||||||
%scale.x = ConvexEditorOptionssWindow-->UScale.getText();
|
%scale.x = ConvexEditorOptionsWindow-->UScale.getText();
|
||||||
%scale.y = ConvexEditorOptionssWindow-->VScale.getText();
|
%scale.y = ConvexEditorOptionsWindow-->VScale.getText();
|
||||||
|
|
||||||
%rot = ConvexEditorOptionssWindow-->ZRotation.getText();
|
%rot = ConvexEditorOptionsWindow-->ZRotation.getText();
|
||||||
|
|
||||||
ConvexEditorGui.setSelectedFaceUVOffset(%offset);
|
ConvexEditorGui.setSelectedFaceUVOffset(%offset);
|
||||||
ConvexEditorGui.setSelectedFaceUVScale(%scale);
|
ConvexEditorGui.setSelectedFaceUVScale(%scale);
|
||||||
|
|
@ -155,29 +155,29 @@ function ConvexEditorMaterialBtn::gotMaterialName(%this, %name)
|
||||||
//%this.object.inspectorApply();
|
//%this.object.inspectorApply();
|
||||||
%diffusemap = %name.diffuseMap[0];
|
%diffusemap = %name.diffuseMap[0];
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->matPreviewBtn.setBitmap(%diffusemap);
|
ConvexEditorOptionsWindow-->matPreviewBtn.setBitmap(%diffusemap);
|
||||||
|
|
||||||
ConvexEditorOptionssWindow.activeMaterial = %name;
|
ConvexEditorOptionsWindow.activeMaterial = %name;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ConvexEditorMaterialApplyBtn::onClick(%this)
|
function ConvexEditorMaterialApplyBtn::onClick(%this)
|
||||||
{
|
{
|
||||||
EWorldEditor.isDirty = true;
|
EWorldEditor.isDirty = true;
|
||||||
ConvexEditorGui.setSelectedFaceMaterial(ConvexEditorOptionssWindow.activeMaterial);
|
ConvexEditorGui.setSelectedFaceMaterial(ConvexEditorOptionsWindow.activeMaterial);
|
||||||
ConvexEditorGui.updateShape();
|
ConvexEditorGui.updateShape();
|
||||||
}
|
}
|
||||||
|
|
||||||
function ConvexEditorMaterialLiftBtn::onClick(%this)
|
function ConvexEditorMaterialLiftBtn::onClick(%this)
|
||||||
{
|
{
|
||||||
%mat = ConvexEditorGui.getSelectedFaceMaterial();
|
%mat = ConvexEditorGui.getSelectedFaceMaterial();
|
||||||
ConvexEditorOptionssWindow.activeMaterial = %mat;
|
ConvexEditorOptionsWindow.activeMaterial = %mat;
|
||||||
ConvexEditorOptionssWindow-->matPreviewBtn.setBitmap(%mat.diffuseMap[0]);
|
ConvexEditorOptionsWindow-->matPreviewBtn.setBitmap(%mat.diffuseMap[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ConvexEditorMaterialResetBtn::onClick(%this)
|
function ConvexEditorMaterialResetBtn::onClick(%this)
|
||||||
{
|
{
|
||||||
EWorldEditor.isDirty = true;
|
EWorldEditor.isDirty = true;
|
||||||
ConvexEditorGui.setSelectedFaceMaterial(ConvexEditorOptionssWindow.activeShape.material);
|
ConvexEditorGui.setSelectedFaceMaterial(ConvexEditorOptionsWindow.activeShape.material);
|
||||||
ConvexEditorGui.updateShape();
|
ConvexEditorGui.updateShape();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -208,9 +208,9 @@ function ConvexEditorDefaultMaterialBtn::gotMaterialName(%this, %name)
|
||||||
//%this.object.inspectorApply();
|
//%this.object.inspectorApply();
|
||||||
%diffusemap = %name.diffuseMap[0];
|
%diffusemap = %name.diffuseMap[0];
|
||||||
|
|
||||||
ConvexEditorOptionssWindow-->defMatPreviewBtn.setBitmap(%diffusemap);
|
ConvexEditorOptionsWindow-->defMatPreviewBtn.setBitmap(%diffusemap);
|
||||||
|
|
||||||
ConvexEditorOptionssWindow.activeShape.material = %name;
|
ConvexEditorOptionsWindow.activeShape.material = %name;
|
||||||
|
|
||||||
ConvexEditorGui.updateShape();
|
ConvexEditorGui.updateShape();
|
||||||
}
|
}
|
||||||
|
|
@ -141,221 +141,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiWindowCollapseCtrl(ConvexEditorOptionsWindow) {
|
|
||||||
internalName = "Window";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
Enabled = "1";
|
|
||||||
isContainer = "1";
|
|
||||||
Profile = "ToolsGuiWindowProfile";
|
|
||||||
HorizSizing = "windowRelative";
|
|
||||||
VertSizing = "windowRelative";
|
|
||||||
Position = getWord($pref::Video::mode, 0) - 209
|
|
||||||
SPC getWord(EditorGuiToolbar.extent, 1) + getWord(ConvexEditorTreeWindow.extent, 1) - 2;
|
|
||||||
Extent = "210 530";
|
|
||||||
MinExtent = "210 298";
|
|
||||||
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 = "0";
|
|
||||||
canMinimize = "0";
|
|
||||||
canMaximize = "0";
|
|
||||||
minSize = "50 50";
|
|
||||||
closeCommand = "EditorGui.setEditor( WorldEditorPlugin );";
|
|
||||||
EdgeSnap = "1";
|
|
||||||
text = "Properties";
|
|
||||||
|
|
||||||
new GuiContainer(){ //Node Properties
|
|
||||||
isContainer = "1";
|
|
||||||
Profile = "inspectorStyleRolloutDarkProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "4 24";
|
|
||||||
Extent = "202 85";
|
|
||||||
Docking = "Top";
|
|
||||||
Margin = "3 3 3 3";
|
|
||||||
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiDefaultProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "5 0";
|
|
||||||
Extent = "86 18";
|
|
||||||
text = "Node Properties";
|
|
||||||
};
|
|
||||||
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiTextRightProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "7 21";
|
|
||||||
Extent = "46 18";
|
|
||||||
text = "Position";
|
|
||||||
};
|
|
||||||
new GuiTextEditCtrl(){
|
|
||||||
internalName = "position";
|
|
||||||
Profile = "ToolsGuiTextEditProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "57 21";
|
|
||||||
Extent = "141 18";
|
|
||||||
text = "";
|
|
||||||
AltCommand = "ConvexEditorGui.editNodeDetails();";
|
|
||||||
};
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiTextRightProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "7 42";
|
|
||||||
Extent = "46 18";
|
|
||||||
text = "Rotation";
|
|
||||||
};
|
|
||||||
new GuiTextEditCtrl(){
|
|
||||||
internalName = "rotation";
|
|
||||||
Profile = "ToolsGuiTextEditProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "57 42";
|
|
||||||
Extent = "141 18";
|
|
||||||
text = "";
|
|
||||||
AltCommand = "ConvexEditorGui.editNodeDetails();";
|
|
||||||
};
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiTextRightProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "7 63";
|
|
||||||
Extent = "46 18";
|
|
||||||
text = "Width";
|
|
||||||
};
|
|
||||||
new GuiTextEditCtrl(){
|
|
||||||
internalName = "width";
|
|
||||||
Profile = "ToolsGuiTextEditProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "57 63";
|
|
||||||
Extent = "52 18";
|
|
||||||
text = "";
|
|
||||||
AltCommand = "ConvexEditorGui.editNodeDetails();";
|
|
||||||
};
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiTextRightProfile";
|
|
||||||
HorizSizing = "left";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "110 63";
|
|
||||||
Extent = "32 18";
|
|
||||||
text = "Depth";
|
|
||||||
};
|
|
||||||
new GuiTextEditCtrl(){
|
|
||||||
internalName = "depth";
|
|
||||||
Profile = "ToolsGuiTextEditProfile";
|
|
||||||
HorizSizing = "left";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "146 63";
|
|
||||||
Extent = "52 18";
|
|
||||||
text = "";
|
|
||||||
AltCommand = "ConvexEditorGui.editNodeDetails();";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
new GuiContainer(){ //Conve Road Properties
|
|
||||||
isContainer = "1";
|
|
||||||
Profile = "inspectorStyleRolloutDarkProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "4 112";
|
|
||||||
Extent = "202 31";
|
|
||||||
Docking = "Top";
|
|
||||||
Margin = "0 0 3 3";
|
|
||||||
|
|
||||||
new GuiTextCtrl(){
|
|
||||||
Profile = "ToolsGuiDefaultProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "5 0";
|
|
||||||
Extent = "121 18";
|
|
||||||
text = "ConvexShape Properties";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
new GuiScrollCtrl() {
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
Enabled = "1";
|
|
||||||
isContainer = "1";
|
|
||||||
Profile = "GuiEditorScrollProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "height";
|
|
||||||
Position = "4 129";
|
|
||||||
Extent = "202 357";
|
|
||||||
MinExtent = "8 2";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
Docking = "Client";
|
|
||||||
Margin = "-14 41 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 GuiInspector(ConvexInspector) {
|
|
||||||
StackingType = "Vertical";
|
|
||||||
HorizStacking = "Left to Right";
|
|
||||||
VertStacking = "Top to Bottom";
|
|
||||||
Padding = "1";
|
|
||||||
name = "ConvexInspector";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
Enabled = "1";
|
|
||||||
isContainer = "1";
|
|
||||||
Profile = "ToolsGuiTransparentProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
|
||||||
Position = "1 1";
|
|
||||||
Extent = "179 16";
|
|
||||||
MinExtent = "16 16";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
dividerMargin = "5";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
new GuiMLTextCtrl(ConvexFieldInfoControl) {
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
Enabled = "1";
|
|
||||||
isContainer = "0";
|
|
||||||
Profile = "GuiInspectorFieldInfoMLTextProfile";
|
|
||||||
HorizSizing = "width";
|
|
||||||
VertSizing = "top";
|
|
||||||
Position = "1 485";
|
|
||||||
Extent = "202 42";
|
|
||||||
MinExtent = "8 2";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
lineSpacing = "2";
|
|
||||||
allowColorChars = "0";
|
|
||||||
maxChars = "-1";
|
|
||||||
useURLMouseCursor = "0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
new GuiWindowCollapseCtrl(ConvexEditorTipsWindow) {
|
new GuiWindowCollapseCtrl(ConvexEditorTipsWindow) {
|
||||||
CollapseGroup = "-1";
|
CollapseGroup = "-1";
|
||||||
CollapseGroupNum = "-1";
|
CollapseGroupNum = "-1";
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,750 @@
|
||||||
|
//--- OBJECT WRITE BEGIN ---
|
||||||
|
%guiContnt = new GuiControl(ConvexEditorOptions)
|
||||||
|
{
|
||||||
|
position = "0 0";
|
||||||
|
extent = "800 600";
|
||||||
|
|
||||||
|
new GuiWindowCollapseCtrl(ConvexEditorOptionsWindow) {
|
||||||
|
text = "Properties";
|
||||||
|
resizeWidth = "1";
|
||||||
|
resizeHeight = "1";
|
||||||
|
canMove = "1";
|
||||||
|
canClose = "0";
|
||||||
|
canMinimize = "0";
|
||||||
|
canMaximize = "0";
|
||||||
|
canCollapse = "1";
|
||||||
|
closeCommand = "EditorGui.setEditor( WorldEditorPlugin );";
|
||||||
|
edgeSnap = "1";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
Position = Canvas.extent.x - 209
|
||||||
|
SPC getWord(EditorGuiToolbar.extent, 1) - 2;
|
||||||
|
Extent = "210 485";
|
||||||
|
minExtent = "210 298";
|
||||||
|
horizSizing = "windowRelative";
|
||||||
|
vertSizing = "windowRelative";
|
||||||
|
profile = "ToolsGuiWindowProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "ToolsGuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
internalName = "window";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "1";
|
||||||
|
enabled = "1";
|
||||||
|
minSize = "50 50";
|
||||||
|
|
||||||
|
new GuiContainer() {
|
||||||
|
docking = "Top";
|
||||||
|
margin = "3 3 3 3";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "4 24";
|
||||||
|
extent = "1432 301";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "width";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "inspectorStyleRolloutDarkProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Materials";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 0";
|
||||||
|
extent = "86 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Active Material(Click image to change)";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 18";
|
||||||
|
extent = "197 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiBitmapButtonCtrl() {
|
||||||
|
bitmapMode = "Stretched";
|
||||||
|
autoFitExtents = "0";
|
||||||
|
useModifiers = "0";
|
||||||
|
useStates = "0";
|
||||||
|
text = "No Surface Selected";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
useMouseEvents = "0";
|
||||||
|
position = "18 36";
|
||||||
|
extent = "107 106";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "center";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
tooltip = "Change material";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "matPreviewBtn";
|
||||||
|
class = "ConvexEditorMaterialBtn";
|
||||||
|
};
|
||||||
|
new GuiControl() {
|
||||||
|
position = "24 149";
|
||||||
|
extent = "153 25";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "center";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
text = "Lift";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
useMouseEvents = "0";
|
||||||
|
position = "0 0";
|
||||||
|
extent = "47 21";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
class = "ConvexEditorMaterialLiftBtn";
|
||||||
|
};
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
text = "Apply";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
useMouseEvents = "0";
|
||||||
|
position = "52 0";
|
||||||
|
extent = "47 21";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
class = "ConvexEditorMaterialApplyBtn";
|
||||||
|
};
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
text = "Reset";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
useMouseEvents = "0";
|
||||||
|
position = "104 0";
|
||||||
|
extent = "47 21";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
class = "ConvexEditorMaterialResetBtn";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Default Material(Click image to change)";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 171";
|
||||||
|
extent = "197 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiBitmapButtonCtrl() {
|
||||||
|
bitmapMode = "Stretched";
|
||||||
|
autoFitExtents = "0";
|
||||||
|
useModifiers = "0";
|
||||||
|
useStates = "0";
|
||||||
|
text = "No Brush Selected";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
useMouseEvents = "0";
|
||||||
|
position = "47 189";
|
||||||
|
extent = "107 106";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "center";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
tooltip = "Change material";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "defMatPreviewBtn";
|
||||||
|
class = "ConvexEditorDefaultMaterialBtn";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
new GuiContainer() {
|
||||||
|
docking = "Top";
|
||||||
|
margin = "0 0 3 3";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "4 199";
|
||||||
|
extent = "1432 303";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "width";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "inspectorStyleRolloutDarkProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "UV Options";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 0";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiControl() {
|
||||||
|
position = "0 26";
|
||||||
|
extent = "1428 282";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "relative";
|
||||||
|
vertSizing = "relative";
|
||||||
|
profile = "GuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiContainer() {
|
||||||
|
docking = "Top";
|
||||||
|
margin = "0 0 3 3";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "3 8";
|
||||||
|
extent = "200 123";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "width";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "inspectorStyleRolloutDarkProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Texture Position";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 0";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiControl() {
|
||||||
|
position = "3 24";
|
||||||
|
extent = "102 64";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Scale:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "15 -1";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "X:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 18";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
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 = "17 17";
|
||||||
|
extent = "77 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiTextEditProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "UScale";
|
||||||
|
class = "ConvexEditorUVFld";
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Y:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 44";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
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 = "17 43";
|
||||||
|
extent = "77 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiTextEditProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "VScale";
|
||||||
|
class = "ConvexEditorUVFld";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
new GuiControl() {
|
||||||
|
position = "104 24";
|
||||||
|
extent = "102 64";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Offset:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "15 -1";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "X:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 18";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
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 = "17 17";
|
||||||
|
extent = "77 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiTextEditProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "UOffset";
|
||||||
|
class = "ConvexEditorUVFld";
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Y:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "5 44";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
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 = "17 43";
|
||||||
|
extent = "77 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiTextEditProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "VOffset";
|
||||||
|
class = "ConvexEditorUVFld";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
new GuiTextCtrl() {
|
||||||
|
text = "Rotation:";
|
||||||
|
maxLength = "1024";
|
||||||
|
margin = "0 0 0 0";
|
||||||
|
padding = "0 0 0 0";
|
||||||
|
anchorTop = "1";
|
||||||
|
anchorBottom = "0";
|
||||||
|
anchorLeft = "1";
|
||||||
|
anchorRight = "0";
|
||||||
|
position = "9 98";
|
||||||
|
extent = "121 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiDefaultProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
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 = "58 97";
|
||||||
|
extent = "40 18";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "GuiTextEditProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "1";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
internalName = "ZRotation";
|
||||||
|
class = "ConvexEditorUVFld";
|
||||||
|
};
|
||||||
|
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
text = "Flip H";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
position = "110 97";
|
||||||
|
extent = "40 21";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
class = "ConvexEditorUVHorzFlipBtn";
|
||||||
|
};
|
||||||
|
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
text = "Flip V";
|
||||||
|
groupNum = "-1";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
position = "154 97";
|
||||||
|
extent = "40 21";
|
||||||
|
minExtent = "8 2";
|
||||||
|
horizSizing = "right";
|
||||||
|
vertSizing = "bottom";
|
||||||
|
profile = "ToolsGuiButtonProfile";
|
||||||
|
visible = "1";
|
||||||
|
active = "1";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
class = "ConvexEditorUVVertFlipBtn";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
//--- OBJECT WRITE END ---
|
||||||
|
|
@ -35,13 +35,13 @@ function initializeConvexEditor()
|
||||||
ConvexEditorOptionsWindow.setVisible( false );
|
ConvexEditorOptionsWindow.setVisible( false );
|
||||||
ConvexEditorTreeWindow.setVisible( false );
|
ConvexEditorTreeWindow.setVisible( false );
|
||||||
ConvexEditorToolbar.setVisible( false );
|
ConvexEditorToolbar.setVisible( false );
|
||||||
ConvexEditorOptionssWindow.setVisible( false );
|
ConvexEditorOptionsWindow.setVisible( false );
|
||||||
|
|
||||||
EditorGui.add( ConvexEditorGui );
|
EditorGui.add( ConvexEditorGui );
|
||||||
EditorGui.add( ConvexEditorOptionsWindow );
|
EditorGui.add( ConvexEditorOptionsWindow );
|
||||||
EditorGui.add( ConvexEditorTreeWindow );
|
EditorGui.add( ConvexEditorTreeWindow );
|
||||||
EditorGui.add( ConvexEditorToolbar );
|
EditorGui.add( ConvexEditorToolbar );
|
||||||
EditorGui.add( ConvexEditorOptionssWindow );
|
EditorGui.add( ConvexEditorOptionsWindow );
|
||||||
|
|
||||||
new ScriptObject( ConvexEditorPlugin )
|
new ScriptObject( ConvexEditorPlugin )
|
||||||
{
|
{
|
||||||
|
|
@ -102,7 +102,7 @@ function ConvexEditorPlugin::onActivated( %this )
|
||||||
EditorGui.bringToFront( ConvexEditorGui );
|
EditorGui.bringToFront( ConvexEditorGui );
|
||||||
ConvexEditorGui.setVisible( true );
|
ConvexEditorGui.setVisible( true );
|
||||||
ConvexEditorToolbar.setVisible( true );
|
ConvexEditorToolbar.setVisible( true );
|
||||||
ConvexEditorOptionssWindow.setVisible( true );
|
ConvexEditorOptionsWindow.setVisible( true );
|
||||||
ConvexEditorGui.makeFirstResponder( true );
|
ConvexEditorGui.makeFirstResponder( true );
|
||||||
%this.map.push();
|
%this.map.push();
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ function ConvexEditorPlugin::onDeactivated( %this )
|
||||||
ConvexEditorGui.setVisible( false );
|
ConvexEditorGui.setVisible( false );
|
||||||
ConvexEditorOptionsWindow.setVisible( false );
|
ConvexEditorOptionsWindow.setVisible( false );
|
||||||
ConvexEditorTreeWindow.setVisible( false );
|
ConvexEditorTreeWindow.setVisible( false );
|
||||||
ConvexEditorOptionssWindow.setVisible( false );
|
ConvexEditorOptionsWindow.setVisible( false );
|
||||||
ConvexEditorToolbar.setVisible( false );
|
ConvexEditorToolbar.setVisible( false );
|
||||||
%this.map.pop();
|
%this.map.pop();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue