mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Empty Template for ticket #1
This commit is contained in:
parent
8337cad7ee
commit
40220512d3
1573 changed files with 141028 additions and 0 deletions
225
Templates/Empty/game/tools/meshRoadEditor/main.cs
Normal file
225
Templates/Empty/game/tools/meshRoadEditor/main.cs
Normal file
|
|
@ -0,0 +1,225 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// 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 initializeMeshRoadEditor()
|
||||
{
|
||||
echo(" % - Initializing Mesh Road Editor");
|
||||
|
||||
exec( "./meshRoadEditor.cs" );
|
||||
exec( "./meshRoadEditorGui.gui" );
|
||||
exec( "./meshRoadEditorToolbar.gui");
|
||||
exec( "./meshRoadEditorGui.cs" );
|
||||
|
||||
MeshRoadEditorGui.setVisible( false );
|
||||
MeshRoadEditorOptionsWindow.setVisible( false );
|
||||
MeshRoadEditorToolbar.setVisible( false );
|
||||
MeshRoadEditorTreeWindow.setVisible( false );
|
||||
|
||||
EditorGui.add( MeshRoadEditorGui );
|
||||
EditorGui.add( MeshRoadEditorOptionsWindow );
|
||||
EditorGui.add( MeshRoadEditorToolbar );
|
||||
EditorGui.add( MeshRoadEditorTreeWindow );
|
||||
|
||||
new ScriptObject( MeshRoadEditorPlugin )
|
||||
{
|
||||
superClass = "EditorPlugin";
|
||||
editorGui = MeshRoadEditorGui;
|
||||
};
|
||||
|
||||
%map = new ActionMap();
|
||||
%map.bindCmd( keyboard, "backspace", "MeshRoadEditorGui.deleteNode();", "" );
|
||||
%map.bindCmd( keyboard, "1", "MeshRoadEditorGui.prepSelectionMode();", "" );
|
||||
%map.bindCmd( keyboard, "2", "ToolsPaletteArray->MeshRoadEditorMoveMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "3", "ToolsPaletteArray->MeshRoadEditorRotateMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "4", "ToolsPaletteArray->MeshRoadEditorScaleMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "5", "ToolsPaletteArray->MeshRoadEditorAddRoadMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "=", "ToolsPaletteArray->MeshRoadEditorInsertPointMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "numpadadd", "ToolsPaletteArray->MeshRoadEditorInsertPointMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "-", "ToolsPaletteArray->MeshRoadEditorRemovePointMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "numpadminus", "ToolsPaletteArray->MeshRoadEditorRemovePointMode.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "z", "MeshRoadEditorShowSplineBtn.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "x", "MeshRoadEditorWireframeBtn.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "v", "MeshRoadEditorShowRoadBtn.performClick();", "" );
|
||||
MeshRoadEditorPlugin.map = %map;
|
||||
|
||||
MeshRoadEditorPlugin.initSettings();
|
||||
}
|
||||
|
||||
function destroyMeshRoadEditor()
|
||||
{
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::onWorldEditorStartup( %this )
|
||||
{
|
||||
// Add ourselves to the window menu.
|
||||
%accel = EditorGui.addToEditorsMenu( "Mesh Road Editor", "", MeshRoadEditorPlugin );
|
||||
|
||||
// Add ourselves to the ToolsToolbar
|
||||
%tooltip = "Mesh Road Editor (" @ %accel @ ")";
|
||||
EditorGui.addToToolsToolbar( "MeshRoadEditorPlugin", "MeshRoadEditorPalette", expandFilename("tools/worldEditor/images/toolbar/mesh-road-editor"), %tooltip );
|
||||
|
||||
//connect editor windows
|
||||
GuiWindowCtrl::attach( MeshRoadEditorOptionsWindow, MeshRoadEditorTreeWindow);
|
||||
|
||||
// Add ourselves to the Editor Settings window
|
||||
exec( "./meshRoadEditorSettingsTab.gui" );
|
||||
ESettingsWindow.addTabPage( EMeshRoadEditorSettingsPage );
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::onActivated( %this )
|
||||
{
|
||||
%this.readSettings();
|
||||
|
||||
ToolsPaletteArray->MeshRoadEditorAddRoadMode.performClick();
|
||||
EditorGui.bringToFront( MeshRoadEditorGui );
|
||||
MeshRoadEditorGui.setVisible( true );
|
||||
MeshRoadEditorGui.makeFirstResponder( true );
|
||||
MeshRoadEditorOptionsWindow.setVisible( true );
|
||||
MeshRoadEditorToolbar.setVisible( true );
|
||||
MeshRoadEditorTreeWindow.setVisible( true );
|
||||
MeshRoadTreeView.open(ServerMeshRoadSet,true);
|
||||
%this.map.push();
|
||||
|
||||
// Store this on a dynamic field
|
||||
// in order to restore whatever setting
|
||||
// the user had before.
|
||||
%this.prevGizmoAlignment = GlobalGizmoProfile.alignment;
|
||||
|
||||
// The DecalEditor always uses Object alignment.
|
||||
GlobalGizmoProfile.alignment = "Object";
|
||||
|
||||
// Set the status bar here until all tool have been hooked up
|
||||
EditorGuiStatusBar.setInfo("Mesh road editor.");
|
||||
EditorGuiStatusBar.setSelection("");
|
||||
|
||||
Parent::onActivated(%this);
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::onDeactivated( %this )
|
||||
{
|
||||
%this.writeSettings();
|
||||
|
||||
MeshRoadEditorGui.setVisible( false );
|
||||
MeshRoadEditorOptionsWindow.setVisible( false );
|
||||
MeshRoadEditorToolbar.setVisible( false );
|
||||
MeshRoadEditorTreeWindow.setVisible( false );
|
||||
%this.map.pop();
|
||||
|
||||
// Restore the previous Gizmo
|
||||
// alignment settings.
|
||||
GlobalGizmoProfile.alignment = %this.prevGizmoAlignment;
|
||||
|
||||
Parent::onDeactivated(%this);
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::onEditMenuSelect( %this, %editMenu )
|
||||
{
|
||||
%hasSelection = false;
|
||||
|
||||
if( isObject( MeshRoadEditorGui.road ) )
|
||||
%hasSelection = true;
|
||||
|
||||
%editMenu.enableItem( 3, false ); // Cut
|
||||
%editMenu.enableItem( 4, false ); // Copy
|
||||
%editMenu.enableItem( 5, false ); // Paste
|
||||
%editMenu.enableItem( 6, %hasSelection ); // Delete
|
||||
%editMenu.enableItem( 8, false ); // Deselect
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::handleDelete( %this )
|
||||
{
|
||||
MeshRoadEditorGui.deleteNode();
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::handleEscape( %this )
|
||||
{
|
||||
return MeshRoadEditorGui.onEscapePressed();
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::isDirty( %this )
|
||||
{
|
||||
return MeshRoadEditorGui.isDirty;
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::onSaveMission( %this, %missionFile )
|
||||
{
|
||||
if( MeshRoadEditorGui.isDirty )
|
||||
{
|
||||
MissionGroup.save( %missionFile );
|
||||
MeshRoadEditorGui.isDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Settings
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function MeshRoadEditorPlugin::initSettings( %this )
|
||||
{
|
||||
EditorSettings.beginGroup( "MeshRoadEditor", true );
|
||||
|
||||
EditorSettings.setDefaultValue( "DefaultWidth", "10" );
|
||||
EditorSettings.setDefaultValue( "DefaultDepth", "5" );
|
||||
EditorSettings.setDefaultValue( "DefaultNormal", "0 0 1" );
|
||||
EditorSettings.setDefaultValue( "HoverSplineColor", "255 0 0 255" );
|
||||
EditorSettings.setDefaultValue( "SelectedSplineColor", "0 255 0 255" );
|
||||
EditorSettings.setDefaultValue( "HoverNodeColor", "255 255 255 255" ); //<-- Not currently used
|
||||
EditorSettings.setDefaultValue( "TopMaterialName", "DefaultRoadMaterialTop" );
|
||||
EditorSettings.setDefaultValue( "BottomMaterialName", "DefaultRoadMaterialOther" );
|
||||
EditorSettings.setDefaultValue( "SideMaterialName", "DefaultRoadMaterialOther" );
|
||||
|
||||
EditorSettings.endGroup();
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::readSettings( %this )
|
||||
{
|
||||
EditorSettings.beginGroup( "MeshRoadEditor", true );
|
||||
|
||||
MeshRoadEditorGui.DefaultWidth = EditorSettings.value("DefaultWidth");
|
||||
MeshRoadEditorGui.DefaultDepth = EditorSettings.value("DefaultDepth");
|
||||
MeshRoadEditorGui.DefaultNormal = EditorSettings.value("DefaultNormal");
|
||||
MeshRoadEditorGui.HoverSplineColor = EditorSettings.value("HoverSplineColor");
|
||||
MeshRoadEditorGui.SelectedSplineColor = EditorSettings.value("SelectedSplineColor");
|
||||
MeshRoadEditorGui.HoverNodeColor = EditorSettings.value("HoverNodeColor");
|
||||
MeshRoadEditorGui.topMaterialName = EditorSettings.value("TopMaterialName");
|
||||
MeshRoadEditorGui.bottomMaterialName = EditorSettings.value("BottomMaterialName");
|
||||
MeshRoadEditorGui.sideMaterialName = EditorSettings.value("SideMaterialName");
|
||||
|
||||
EditorSettings.endGroup();
|
||||
}
|
||||
|
||||
function MeshRoadEditorPlugin::writeSettings( %this )
|
||||
{
|
||||
EditorSettings.beginGroup( "MeshRoadEditor", true );
|
||||
|
||||
EditorSettings.setValue( "DefaultWidth", MeshRoadEditorGui.DefaultWidth );
|
||||
EditorSettings.setValue( "DefaultDepth", MeshRoadEditorGui.DefaultDepth );
|
||||
EditorSettings.setValue( "DefaultNormal", MeshRoadEditorGui.DefaultNormal );
|
||||
EditorSettings.setValue( "HoverSplineColor", MeshRoadEditorGui.HoverSplineColor );
|
||||
EditorSettings.setValue( "SelectedSplineColor", MeshRoadEditorGui.SelectedSplineColor );
|
||||
EditorSettings.setValue( "HoverNodeColor", MeshRoadEditorGui.HoverNodeColor );
|
||||
EditorSettings.setValue( "TopMaterialName", MeshRoadEditorGui.topMaterialName );
|
||||
EditorSettings.setValue( "BottomMaterialName", MeshRoadEditorGui.bottomMaterialName );
|
||||
EditorSettings.setValue( "SideMaterialName", MeshRoadEditorGui.sideMaterialName );
|
||||
|
||||
EditorSettings.endGroup();
|
||||
}
|
||||
53
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditor.cs
Normal file
53
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditor.cs
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// 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( MeshRoadEditorProfile )
|
||||
{
|
||||
canKeyFocus = true;
|
||||
opaque = true;
|
||||
fillColor = "192 192 192 192";
|
||||
category = "Editor";
|
||||
};
|
||||
|
||||
singleton GuiControlProfile (GuiDisabledTextEditProfile)
|
||||
{
|
||||
opaque = false;
|
||||
border = 0;
|
||||
bitmap = "./textEdit";
|
||||
borderColor = "255 255 255 200";
|
||||
fontColor = "0 0 0";
|
||||
fontColorHL = "255 255 255";
|
||||
fontColorNA = "128 128 128";
|
||||
textOffset = "4 2";
|
||||
autoSizeWidth = false;
|
||||
autoSizeHeight = false;
|
||||
tab = false;
|
||||
canKeyFocus = false;
|
||||
category = "Editor";
|
||||
};
|
||||
|
||||
singleton GuiControlProfile (GuiSimpleBorderProfile)
|
||||
{
|
||||
opaque = false;
|
||||
border = 1;
|
||||
category = "Editor";
|
||||
};
|
||||
256
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditorGui.cs
Normal file
256
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditorGui.cs
Normal file
|
|
@ -0,0 +1,256 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// 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.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$MeshRoad::wireframe = true;
|
||||
$MeshRoad::showSpline = true;
|
||||
$MeshRoad::showReflectPlane = false;
|
||||
$MeshRoad::showRoad = true;
|
||||
$MeshRoad::breakAngle = 3.0;
|
||||
|
||||
function MeshRoadEditorGui::onWake( %this )
|
||||
{
|
||||
$MeshRoad::EditorOpen = true;
|
||||
|
||||
%count = EWorldEditor.getSelectionSize();
|
||||
for ( %i = 0; %i < %count; %i++ )
|
||||
{
|
||||
%obj = EWorldEditor.getSelectedObject(%i);
|
||||
if ( %obj.getClassName() !$= "MeshRoad" )
|
||||
EWorldEditor.unselectObject();
|
||||
else
|
||||
%this.setSelectedRoad( %obj );
|
||||
}
|
||||
|
||||
//%this-->TabBook.selectPage(0);
|
||||
|
||||
%this.onNodeSelected(-1);
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::onSleep( %this )
|
||||
{
|
||||
$MeshRoad::EditorOpen = false;
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::paletteSync( %this, %mode )
|
||||
{
|
||||
%evalShortcut = "ToolsPaletteArray-->" @ %mode @ ".setStateOn(1);";
|
||||
eval(%evalShortcut);
|
||||
}
|
||||
function MeshRoadEditorGui::onEscapePressed( %this )
|
||||
{
|
||||
if( %this.getMode() $= "MeshRoadEditorAddNodeMode" )
|
||||
{
|
||||
%this.prepSelectionMode();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function MeshRoadEditorGui::onRoadSelected( %this, %road )
|
||||
{
|
||||
%this.road = %road;
|
||||
|
||||
// Update the materialEditorList
|
||||
if( isObject( %road ) )
|
||||
$Tools::materialEditorList = %road.getId();
|
||||
|
||||
MeshRoadInspector.inspect( %road );
|
||||
MeshRoadTreeView.buildVisibleTree(true);
|
||||
if( MeshRoadTreeView.getSelectedObject() != %road )
|
||||
{
|
||||
MeshRoadTreeView.clearSelection();
|
||||
%treeId = MeshRoadTreeView.findItemByObjectId( %road );
|
||||
MeshRoadTreeView.selectItem( %treeId );
|
||||
}
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::onNodeSelected( %this, %nodeIdx )
|
||||
{
|
||||
if ( %nodeIdx == -1 )
|
||||
{
|
||||
MeshRoadEditorOptionsWindow-->position.setActive( false );
|
||||
MeshRoadEditorOptionsWindow-->position.setValue( "" );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->rotation.setActive( false );
|
||||
MeshRoadEditorOptionsWindow-->rotation.setValue( "" );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->width.setActive( false );
|
||||
MeshRoadEditorOptionsWindow-->width.setValue( "" );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->depth.setActive( false );
|
||||
MeshRoadEditorOptionsWindow-->depth.setValue( "" );
|
||||
}
|
||||
else
|
||||
{
|
||||
MeshRoadEditorOptionsWindow-->position.setActive( true );
|
||||
MeshRoadEditorOptionsWindow-->position.setValue( %this.getNodePosition() );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->rotation.setActive( true );
|
||||
MeshRoadEditorOptionsWindow-->rotation.setValue( %this.getNodeNormal() );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->width.setActive( true );
|
||||
MeshRoadEditorOptionsWindow-->width.setValue( %this.getNodeWidth() );
|
||||
|
||||
MeshRoadEditorOptionsWindow-->depth.setActive( true );
|
||||
MeshRoadEditorOptionsWindow-->depth.setValue( %this.getNodeDepth() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function MeshRoadEditorGui::onNodeModified( %this, %nodeIdx )
|
||||
{
|
||||
MeshRoadEditorOptionsWindow-->position.setValue( %this.getNodePosition() );
|
||||
MeshRoadEditorOptionsWindow-->rotation.setValue( %this.getNodeNormal() );
|
||||
MeshRoadEditorOptionsWindow-->width.setValue( %this.getNodeWidth() );
|
||||
MeshRoadEditorOptionsWindow-->depth.setValue( %this.getNodeDepth() );
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::editNodeDetails( %this )
|
||||
{
|
||||
|
||||
%this.setNodePosition( MeshRoadEditorOptionsWindow-->position.getText() );
|
||||
%this.setNodeNormal( MeshRoadEditorOptionsWindow-->rotation.getText() );
|
||||
%this.setNodeWidth( MeshRoadEditorOptionsWindow-->width.getText() );
|
||||
%this.setNodeDepth( MeshRoadEditorOptionsWindow-->depth.getText() );
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::onBrowseClicked( %this )
|
||||
{
|
||||
//%filename = RETextureFileCtrl.getText();
|
||||
|
||||
%dlg = new OpenFileDialog()
|
||||
{
|
||||
Filters = "All Files (*.*)|*.*|";
|
||||
DefaultPath = MeshRoadEditorGui.lastPath;
|
||||
DefaultFile = %filename;
|
||||
ChangePath = false;
|
||||
MustExist = true;
|
||||
};
|
||||
|
||||
%ret = %dlg.Execute();
|
||||
if(%ret)
|
||||
{
|
||||
MeshRoadEditorGui.lastPath = filePath( %dlg.FileName );
|
||||
%filename = %dlg.FileName;
|
||||
MeshRoadEditorGui.setTextureFile( %filename );
|
||||
MeshRoadEditorTextureFileCtrl.setText( %filename );
|
||||
}
|
||||
|
||||
%dlg.delete();
|
||||
}
|
||||
|
||||
function MeshRoadInspector::inspect( %this, %obj )
|
||||
{
|
||||
%name = "";
|
||||
if ( isObject( %obj ) )
|
||||
%name = %obj.getName();
|
||||
else
|
||||
MeshFieldInfoControl.setText( "" );
|
||||
|
||||
//RiverInspectorNameEdit.setValue( %name );
|
||||
Parent::inspect( %this, %obj );
|
||||
}
|
||||
|
||||
function MeshRoadInspector::onInspectorFieldModified( %this, %object, %fieldName, %arrayIndex, %oldValue, %newValue )
|
||||
{
|
||||
// Same work to do as for the regular WorldEditor Inspector.
|
||||
Inspector::onInspectorFieldModified( %this, %object, %fieldName, %arrayIndex, %oldValue, %newValue );
|
||||
}
|
||||
|
||||
function MeshRoadInspector::onFieldSelected( %this, %fieldName, %fieldTypeStr, %fieldDoc )
|
||||
{
|
||||
MeshFieldInfoControl.setText( "<font:ArialBold:14>" @ %fieldName @ "<font:ArialItalic:14> (" @ %fieldTypeStr @ ") " NL "<font:Arial:14>" @ %fieldDoc );
|
||||
}
|
||||
|
||||
function MeshRoadTreeView::onInspect(%this, %obj)
|
||||
{
|
||||
MeshRoadInspector.inspect(%obj);
|
||||
}
|
||||
|
||||
function MeshRoadTreeView::onSelect(%this, %obj)
|
||||
{
|
||||
MeshRoadEditorGui.road = %obj;
|
||||
MeshRoadInspector.inspect( %obj );
|
||||
if(%obj != MeshRoadEditorGui.getSelectedRoad())
|
||||
{
|
||||
MeshRoadEditorGui.setSelectedRoad( %obj );
|
||||
}
|
||||
}
|
||||
|
||||
function MeshRoadEditorGui::prepSelectionMode( %this )
|
||||
{
|
||||
%mode = %this.getMode();
|
||||
|
||||
if ( %mode $= "MeshRoadEditorAddNodeMode" )
|
||||
{
|
||||
if ( isObject( %this.getSelectedRoad() ) )
|
||||
%this.deleteNode();
|
||||
}
|
||||
|
||||
%this.setMode( "MeshRoadEditorSelectMode" );
|
||||
ToolsPaletteArray-->MeshRoadEditorSelectMode.setStateOn(1);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
function EMeshRoadEditorSelectModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorAddModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorMoveModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorRotateModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorScaleModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorInsertModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function EMeshRoadEditorRemoveModeBtn::onClick(%this)
|
||||
{
|
||||
EditorGuiStatusBar.setInfo(%this.ToolTip);
|
||||
}
|
||||
|
||||
function MeshRoadDefaultWidthSliderCtrlContainer::onWake(%this)
|
||||
{
|
||||
MeshRoadDefaultWidthSliderCtrlContainer-->slider.setValue(MeshRoadDefaultWidthTextEditContainer-->textEdit.getText());
|
||||
}
|
||||
|
||||
function MeshRoadDefaultDepthSliderCtrlContainer::onWake(%this)
|
||||
{
|
||||
MeshRoadDefaultDepthSliderCtrlContainer-->slider.setValue(MeshRoadDefaultDepthTextEditContainer-->textEdit.getText());
|
||||
}
|
||||
361
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditorGui.gui
Normal file
361
Templates/Empty/game/tools/meshRoadEditor/meshRoadEditorGui.gui
Normal file
|
|
@ -0,0 +1,361 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
%guiContent = new GuiMeshRoadEditorCtrl(MeshRoadEditorGui,EditorGuiGroup) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "MeshRoadEditorProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
Position = "0 0";
|
||||
Extent = "800 600";
|
||||
MinExtent = "8 8";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
Docking = "None";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "0";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "0";
|
||||
AnchorRight = "0";
|
||||
cameraZRot = "0";
|
||||
forceFOV = "0";
|
||||
renderMissionArea = "0";
|
||||
missionAreaFillColor = "255 0 0 20";
|
||||
missionAreaFrameColor = "255 0 0 128";
|
||||
allowBorderMove = "0";
|
||||
borderMovePixelSize = "20";
|
||||
borderMoveSpeed = "0.1";
|
||||
consoleFrameColor = "255 0 0 255";
|
||||
consoleFillColor = "0 0 0 0";
|
||||
consoleSphereLevel = "1";
|
||||
consoleCircleSegments = "32";
|
||||
consoleLineWidth = "1";
|
||||
GizmoProfile = "GlobalGizmoProfile";
|
||||
DefaultWidth = "10";
|
||||
HoverSplineColor = "0 255 0 255";
|
||||
SelectedSplineColor = "255 0 255 255";
|
||||
HoverNodeColor = "255 255 255 255";
|
||||
|
||||
new GuiWindowCollapseCtrl(MeshRoadEditorTreeWindow) {
|
||||
internalName = "";
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "windowRelative";
|
||||
VertSizing = "windowRelative";
|
||||
Position = getWord($pref::Video::mode, 0) - 209
|
||||
SPC getWord(EditorGuiToolbar.extent, 1) - 1;
|
||||
Extent = "210 167";
|
||||
MinExtent = "210 100";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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( WorldEditorInspectorPlugin );";
|
||||
EdgeSnap = "1";
|
||||
text = "Mesh Roads";
|
||||
|
||||
new GuiContainer(){
|
||||
profile = GuiDefaultProfile;
|
||||
Position = "5 25";
|
||||
Extent = "200 120";
|
||||
Docking = "Client";
|
||||
Margin = "3 1 3 3 ";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
isContainer = "1";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiEditorScrollProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
Position = "0 0";
|
||||
Extent = "200 118";
|
||||
MinExtent = "8 8";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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";
|
||||
mouseWheelScrollSpeed = "-1";
|
||||
|
||||
new GuiTreeViewCtrl(MeshRoadTreeView) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiTreeViewProfile";
|
||||
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 = "0";
|
||||
MultipleSelections = "0";
|
||||
DeleteObjectAllowed = "1";
|
||||
DragToItemAllowed = "0";
|
||||
showRoot = "0";
|
||||
internalNamesOnly = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiWindowCollapseCtrl(MeshRoadEditorOptionsWindow) {
|
||||
internalName = "Window";
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "windowRelative";
|
||||
VertSizing = "windowRelative";
|
||||
Position = getWord($pref::Video::mode, 0) - 209
|
||||
SPC getWord(EditorGuiToolbar.extent, 1) + getWord(MeshRoadEditorTreeWindow.extent, 1) - 2;
|
||||
Extent = "210 530";
|
||||
MinExtent = "210 298";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "5 0";
|
||||
Extent = "86 18";
|
||||
text = "Node Properties";
|
||||
};
|
||||
|
||||
new GuiTextCtrl(){
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "7 21";
|
||||
Extent = "46 18";
|
||||
text = "Position";
|
||||
};
|
||||
new GuiTextEditCtrl(){
|
||||
internalName = "position";
|
||||
Profile = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
Position = "57 21";
|
||||
Extent = "141 18";
|
||||
text = "";
|
||||
AltCommand = "MeshRoadEditorGui.editNodeDetails();";
|
||||
};
|
||||
new GuiTextCtrl(){
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "7 42";
|
||||
Extent = "46 18";
|
||||
text = "Rotation";
|
||||
};
|
||||
new GuiTextEditCtrl(){
|
||||
internalName = "rotation";
|
||||
Profile = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
Position = "57 42";
|
||||
Extent = "141 18";
|
||||
text = "";
|
||||
AltCommand = "MeshRoadEditorGui.editNodeDetails();";
|
||||
};
|
||||
new GuiTextCtrl(){
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "7 63";
|
||||
Extent = "46 18";
|
||||
text = "Width";
|
||||
};
|
||||
new GuiTextEditCtrl(){
|
||||
internalName = "width";
|
||||
Profile = "GuiTextEditProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "57 63";
|
||||
Extent = "52 18";
|
||||
text = "";
|
||||
AltCommand = "MeshRoadEditorGui.editNodeDetails();";
|
||||
};
|
||||
new GuiTextCtrl(){
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "left";
|
||||
VertSizing = "bottom";
|
||||
Position = "110 63";
|
||||
Extent = "32 18";
|
||||
text = "Depth";
|
||||
};
|
||||
new GuiTextEditCtrl(){
|
||||
internalName = "depth";
|
||||
Profile = "GuiTextEditProfile";
|
||||
HorizSizing = "left";
|
||||
VertSizing = "bottom";
|
||||
Position = "146 63";
|
||||
Extent = "52 18";
|
||||
text = "";
|
||||
AltCommand = "MeshRoadEditorGui.editNodeDetails();";
|
||||
};
|
||||
};
|
||||
new GuiContainer(){ //Mesh 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 = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "5 0";
|
||||
Extent = "121 18";
|
||||
text = "Mesh Road 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 = "GuiToolTipProfile";
|
||||
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(MeshRoadInspector) {
|
||||
StackingType = "Vertical";
|
||||
HorizStacking = "Left to Right";
|
||||
VertStacking = "Top to Bottom";
|
||||
Padding = "1";
|
||||
name = "MeshRoadInspector";
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiTransparentProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "1 1";
|
||||
Extent = "179 16";
|
||||
MinExtent = "16 16";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
dividerMargin = "5";
|
||||
};
|
||||
};
|
||||
new GuiMLTextCtrl(MeshFieldInfoControl) {
|
||||
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 = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
useURLMouseCursor = "0";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
|
@ -0,0 +1,697 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
%guiContent = new GuiControl(MeshRoadEditorSettingsTab,EditorGuiGroup) {
|
||||
isContainer = "1";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "0 0";
|
||||
Extent = "208 600";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
|
||||
new GuiTabPageCtrl(EMeshRoadEditorSettingsPage) {
|
||||
fitBook = "1";
|
||||
text = "Mesh Road Editor";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "1";
|
||||
Profile = "GuiSolidDefaultProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
position = "0 0";
|
||||
Extent = "208 400";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiScrollProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
position = "0 0";
|
||||
Extent = "208 400";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiStackControl() {
|
||||
StackingType = "Vertical";
|
||||
HorizStacking = "Left to Right";
|
||||
VertStacking = "Top to Bottom";
|
||||
Padding = "0";
|
||||
isContainer = "1";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "208 210";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
|
||||
new GuiRolloutCtrl() {
|
||||
Profile = "GuiRolloutProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "10 10";
|
||||
extent = "208 95";
|
||||
Caption = "Defaults";
|
||||
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 = "GuiDefaultProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "0 0";
|
||||
Extent = "208 0";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
padding = "3";
|
||||
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Width:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 16";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditNumericProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/DefaultWidth";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Depth:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 16";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditNumericProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/DefaultDepth";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Normal:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 14";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/DefaultNormal";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Top Material:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 16";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/TopMaterialName";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Bottom Material:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 16";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/BottomMaterialName";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
extent = "208 18";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Side Material:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextRightProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "5 1";
|
||||
Extent = "70 16";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
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 = "GuiTextEditProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "81 0";
|
||||
Extent = "121 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowTextEdit";
|
||||
className = "ESettingsWindowTextEdit";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/SideMaterialName";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiRolloutCtrl() {
|
||||
Profile = "GuiRolloutProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "10 10";
|
||||
extent = "208 95";
|
||||
Caption = "Colors";
|
||||
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 = "GuiDefaultProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "bottom";
|
||||
position = "0 0";
|
||||
Extent = "208 0";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
padding = "3";
|
||||
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "208 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColor";
|
||||
className = "ESettingsWindowColor";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/HoverSplineColor";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Hover Spline:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
profile = "GuiTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 2";
|
||||
extent = "70 14";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
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 = "GuiTextEditProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "80 0";
|
||||
extent = "104 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
internalName = "ColorEdit";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColorEdit";
|
||||
className = "ESettingsWindowColorEdit";
|
||||
};
|
||||
new GuiSwatchButtonCtrl() {
|
||||
color = "1 1 1 1";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefaultProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "188 2";
|
||||
extent = "14 14";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
internalName = "ColorButton";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColorButton";
|
||||
className = "ESettingsWindowColorButton";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
isContainer = "1";
|
||||
Profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "208 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColor";
|
||||
className = "ESettingsWindowColor";
|
||||
editorSettingsRead = "MeshRoadEditorPlugin.readSettings();";
|
||||
editorSettingsValue = "MeshRoadEditor/SelectedSplineColor";
|
||||
editorSettingsWrite = "MeshRoadEditorPlugin.writeSettings();";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
text = "Sel. Spline:";
|
||||
maxLength = "1024";
|
||||
Margin = "0 0 0 0";
|
||||
Padding = "0 0 0 0";
|
||||
AnchorTop = "1";
|
||||
AnchorBottom = "0";
|
||||
AnchorLeft = "1";
|
||||
AnchorRight = "0";
|
||||
isContainer = "0";
|
||||
profile = "GuiTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 2";
|
||||
extent = "70 14";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
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 = "GuiTextEditProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "80 0";
|
||||
extent = "104 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
internalName = "ColorEdit";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColorEdit";
|
||||
className = "ESettingsWindowColorEdit";
|
||||
};
|
||||
new GuiSwatchButtonCtrl() {
|
||||
color = "1 1 1 1";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
isContainer = "0";
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "188 2";
|
||||
extent = "14 14";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
internalName = "ColorButton";
|
||||
canSaveDynamicFields = "1";
|
||||
class = "ESettingsWindowColorButton";
|
||||
className = "ESettingsWindowColorButton";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
|
@ -0,0 +1,322 @@
|
|||
%guiContent = new GuiControl(MeshRoadEditorToolbar,EditorGuiGroup) {
|
||||
canSaveDynamicFields = "0";
|
||||
internalName = "MeshRoadEditorToolbar";
|
||||
Enabled = "1";
|
||||
isContainer = "1";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "306 0";
|
||||
Extent = "800 32";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "0";
|
||||
hovertime = "1000";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "6 6";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
text = "Mesh Road Settings";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiDynamicCtrlArrayControl(){
|
||||
Position = "116 3";
|
||||
extent = "111 32";
|
||||
colCount = "31";
|
||||
colSize = "29";
|
||||
rowCount = "1";
|
||||
RowSize = "27";
|
||||
rowSpacing = "2";
|
||||
colspacing = "4";
|
||||
|
||||
new GuiBitmapButtonCtrl(MeshRoadEditorShowSplineBtn) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "167 3";
|
||||
Extent = "29 27";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
Variable = "$MeshRoad::showSpline";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
toolTip = "Show Spline (Z)";
|
||||
bitmap = "tools/worldEditor/images/road-river/menubar/show-spline";
|
||||
groupNum = "7";
|
||||
buttonType = "ToggleButton";
|
||||
useMouseEvents = "0";
|
||||
useInactiveState = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(MeshRoadEditorWireframeBtn) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "253 3";
|
||||
Extent = "29 27";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
Variable = "$MeshRoad::wireframe";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
toolTip = "Show Wireframe (X)";
|
||||
bitmap = "tools/worldEditor/images/road-river/menubar/show-wireframe";
|
||||
groupNum = "-1";
|
||||
buttonType = "ToggleButton";
|
||||
useMouseEvents = "0";
|
||||
useInactiveState = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(MeshRoadEditorShowRoadBtn) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefalutProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "89 3";
|
||||
Extent = "29 27";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
Variable = "$MeshRoad::showRoad";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
toolTip = "Show Road Texture (V)";
|
||||
bitmap = "tools/worldEditor/images/road-river/menubar/show-texture";
|
||||
groupNum = "-1";
|
||||
buttonType = "ToggleButton";
|
||||
useMouseEvents = "0";
|
||||
useInactiveState = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl(MeshRoadDefaultWidthTextEditContainer) {
|
||||
canSaveDynamicFields = "0";
|
||||
isContainer = "1";
|
||||
Profile = "GuiTransparentProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "230 5";
|
||||
Extent = "120 50";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
hovertime = "1000";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "0 6";
|
||||
Extent = "68 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 = "Default Width";
|
||||
maxLength = "1024";
|
||||
};
|
||||
new GuiTextEditCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
internalName = "textEdit";
|
||||
isContainer = "0";
|
||||
profile="GuiNumericDropSliderTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "67 2";
|
||||
Extent = "42 16";
|
||||
MinExtent = "8 16";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
Command = "MeshRoadEditorGui.DefaultWidth = $ThisControl.getValue();";
|
||||
hovertime = "1000";
|
||||
text = "10";
|
||||
maxLength = "3";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
tabComplete = "0";
|
||||
sinkAllKeyEvents = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "101 2";
|
||||
Extent = "18 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
Command = "Canvas.pushDialog(MeshRoadDefaultWidthSliderCtrlContainer);";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
ToolTip = "Changes Default Road Width";
|
||||
hovertime = "750";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "core/art/gui/images/dropslider";
|
||||
};
|
||||
};
|
||||
new GuiControl(MeshRoadDefaultDepthTextEditContainer) {
|
||||
canSaveDynamicFields = "0";
|
||||
isContainer = "1";
|
||||
Profile = "GuiTransparentProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "360 5";
|
||||
Extent = "120 50";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
hovertime = "1000";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "0 6";
|
||||
Extent = "68 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 = "Default Depth";
|
||||
maxLength = "1024";
|
||||
};
|
||||
new GuiTextEditCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
internalName = "textEdit";
|
||||
isContainer = "0";
|
||||
profile="GuiNumericDropSliderTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "67 2";
|
||||
Extent = "42 16";
|
||||
MinExtent = "8 16";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
Command = "MeshRoadEditorGui.DefaultDepth = $ThisControl.getValue();";
|
||||
hovertime = "1000";
|
||||
text = "10";
|
||||
maxLength = "3";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
tabComplete = "0";
|
||||
sinkAllKeyEvents = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "101 2";
|
||||
Extent = "18 18";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
Command = "Canvas.pushDialog(MeshRoadDefaultDepthSliderCtrlContainer);";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
ToolTip = "Changes Default Road Depth";
|
||||
hovertime = "750";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "core/art/gui/images/dropslider";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiMouseEventCtrl(MeshRoadDefaultWidthSliderCtrlContainer, 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 = "GuiSliderBoxProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = firstWord(MeshRoadDefaultWidthTextEditContainer.position) + firstWord(MeshRoadEditorToolbar.position) + 10 SPC
|
||||
(getWord(MeshRoadDefaultWidthTextEditContainer, 1)) + 25;
|
||||
Extent = "112 20";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
AltCommand = "MeshRoadDefaultWidthTextEditContainer-->textEdit.setValue( mFloatLength($ThisControl.getValue(), 2)); MeshRoadEditorGui.DefaultWidth = $ThisControl.getValue();";
|
||||
range = "0 100";
|
||||
ticks = "0";
|
||||
value = "10";
|
||||
};
|
||||
};
|
||||
new GuiMouseEventCtrl(MeshRoadDefaultDepthSliderCtrlContainer, 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 = "GuiSliderBoxProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = firstWord(MeshRoadDefaultDepthTextEditContainer.position) + firstWord(MeshRoadEditorToolbar.position) + 10 SPC
|
||||
(getWord(MeshRoadDefaultDepthTextEditContainer, 1)) + 25;
|
||||
Extent = "112 20";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
Visible = "1";
|
||||
AltCommand = "MeshRoadDefaultDepthTextEditContainer-->textEdit.setValue( mFloatLength($ThisControl.getValue(), 2)); MeshRoadEditorGui.DefaultDepth = $ThisControl.getValue();";
|
||||
range = "0 100";
|
||||
ticks = "0";
|
||||
value = "10";
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue