Moves the world Editor guis to be based through a tabbed structure to make it easier to begin separating out editor/tool guis into their own tabs or elements for better separation.

Currently establishes the MainScene tab and otherwise retains existing behavior directly
This commit is contained in:
Areloch 2023-11-14 18:58:58 -06:00
parent fcd611353d
commit 59247bd9ca
20 changed files with 1503 additions and 1471 deletions

View file

@ -58,6 +58,10 @@ IMPLEMENT_CALLBACK( GuiTabBookCtrl, onTabSelected, void, ( const String& text, U
"Called when a new tab page is selected.\n\n" "Called when a new tab page is selected.\n\n"
"@param text Text of the page header for the tab that is being selected.\n" "@param text Text of the page header for the tab that is being selected.\n"
"@param index Index of the tab page being selected." ); "@param index Index of the tab page being selected." );
IMPLEMENT_CALLBACK(GuiTabBookCtrl, onTabUnSelected, void, (const String& text, U32 index), (text, index),
"Called when a new tab page is unselected.\n\n"
"@param text Text of the page header for the tab that is being unselected.\n"
"@param index Index of the tab page being unselected.");
IMPLEMENT_CALLBACK( GuiTabBookCtrl, onTabRightClick, void, ( const String& text, U32 index ), ( text, index ), IMPLEMENT_CALLBACK( GuiTabBookCtrl, onTabRightClick, void, ( const String& text, U32 index ), ( text, index ),
"Called when the user right-clicks on a tab page header.\n\n" "Called when the user right-clicks on a tab page header.\n\n"
"@param text Text of the page header for the tab that is being selected.\n" "@param text Text of the page header for the tab that is being selected.\n"
@ -849,7 +853,10 @@ void GuiTabBookCtrl::selectPage( GuiTabPageCtrl *page )
onTabSelected_callback( tab->getText(), index ); onTabSelected_callback( tab->getText(), index );
} }
else else
{
tab->setVisible(false); tab->setVisible(false);
onTabUnSelected_callback(tab->getText(), index);
}
} }
setUpdateLayout( updateSelf ); setUpdateLayout( updateSelf );
} }

View file

@ -116,6 +116,7 @@ class GuiTabBookCtrl : public GuiContainer
/// @{ /// @{
DECLARE_CALLBACK( void, onTabSelected, ( const String& text, U32 index ) ); DECLARE_CALLBACK( void, onTabSelected, ( const String& text, U32 index ) );
DECLARE_CALLBACK(void, onTabUnSelected, (const String& text, U32 index));
DECLARE_CALLBACK( void, onTabRightClick, ( const String& text, U32 index ) ); DECLARE_CALLBACK( void, onTabRightClick, ( const String& text, U32 index ) );
/// @} /// @}

View file

@ -248,7 +248,7 @@ void LightManager::registerGlobalLights( const Frustum *frustum, bool staticLigh
// the shape bounds and can often get culled. // the shape bounds and can often get culled.
GameConnection *conn = GameConnection::getConnectionToServer(); GameConnection *conn = GameConnection::getConnectionToServer();
if (conn->getControlObject()) if (conn && conn->getControlObject())
{ {
GameBase *conObject = conn->getControlObject(); GameBase *conObject = conn->getControlObject();
activeLights.push_back_unique(conObject); activeLights.push_back_unique(conObject);

View file

@ -18,7 +18,7 @@ function VPathEditorPlugin::onWorldEditorStartup( %this )
// //
//---------------------------------------------------------------------- //----------------------------------------------------------------------
EditorGui.add( EVPathEditor ); MainSceneTabPanel.add( EVPathEditor );
EVPathEditor.setVisible( false ); EVPathEditor.setVisible( false );
%this.EditorMap = new ActionMap(); %this.EditorMap = new ActionMap();

View file

@ -90,7 +90,7 @@ function VerveEditor::LaunchEditor()
{ {
%mainScreen.add(VerveEditorGUI); %mainScreen.add(VerveEditorGUI);
VerveEditorGUI.position.y = VerveEditorGUI.Position.y + 20; VerveEditorGUI.position.y = VerveEditorGUI.Position.y + 20;
EditorGUI.add(%mainScreen); MainSceneTabPanel.add(%mainScreen);
} }
// Clear History. // Clear History.

View file

@ -36,10 +36,10 @@ function initializeConvexEditor()
ConvexEditorOptionsWindow.setVisible( false ); ConvexEditorOptionsWindow.setVisible( false );
EditorGui.add( ConvexEditorGui ); MainSceneTabPanel.add( ConvexEditorGui );
EditorGui.add( ConvexEditorOptionsWindow ); MainSceneTabPanel.add( ConvexEditorOptionsWindow );
EditorGui.add( ConvexEditorTreeWindow ); MainSceneTabPanel.add( ConvexEditorTreeWindow );
EditorGui.add( ConvexEditorOptionsWindow ); MainSceneTabPanel.add( ConvexEditorOptionsWindow );
new ScriptObject( ConvexEditorPlugin ) new ScriptObject( ConvexEditorPlugin )
{ {

View file

@ -37,8 +37,8 @@ function initializeDatablockEditor()
DatablockEditorInspectorWindow.setVisible( false ); DatablockEditorInspectorWindow.setVisible( false );
DatablockEditorTreeWindow.setVisible( false ); DatablockEditorTreeWindow.setVisible( false );
EditorGui.add( DatablockEditorInspectorWindow ); MainSceneTabPanel.add( DatablockEditorInspectorWindow );
EditorGui.add( DatablockEditorTreeWindow ); MainSceneTabPanel.add( DatablockEditorTreeWindow );
new ScriptObject( DatablockEditorPlugin ) new ScriptObject( DatablockEditorPlugin )
{ {

View file

@ -35,9 +35,9 @@ function initializeDecalEditor()
DecalEditorGui.setVisible( false ); DecalEditorGui.setVisible( false );
DecalPreviewWindow.setVisible( false ); DecalPreviewWindow.setVisible( false );
DecalEditorWindow.setVisible( false ); DecalEditorWindow.setVisible( false );
EditorGui.add( DecalEditorGui ); MainSceneTabPanel.add( DecalEditorGui );
EditorGui.add( DecalEditorWindow ); MainSceneTabPanel.add( DecalEditorWindow );
EditorGui.add( DecalPreviewWindow ); MainSceneTabPanel.add( DecalPreviewWindow );
DecalEditorTabBook.selectPage( 0 ); DecalEditorTabBook.selectPage( 0 );
new ScriptObject( DecalEditorPlugin ) new ScriptObject( DecalEditorPlugin )

View file

@ -35,9 +35,9 @@ function initializeForestEditor()
ForestEditorPalleteWindow.setVisible( false ); ForestEditorPalleteWindow.setVisible( false );
ForestEditorPropertiesWindow.setVisible( false ); ForestEditorPropertiesWindow.setVisible( false );
EditorGui.add( ForestEditorGui ); MainSceneTabPanel.add( ForestEditorGui );
EditorGui.add( ForestEditorPalleteWindow ); MainSceneTabPanel.add( ForestEditorPalleteWindow );
EditorGui.add( ForestEditorPropertiesWindow ); MainSceneTabPanel.add( ForestEditorPropertiesWindow );
new ScriptObject( ForestEditorPlugin ) new ScriptObject( ForestEditorPlugin )
{ {

View file

@ -46,10 +46,10 @@ function initializeMaterialEditor()
matEd_addCubemapWindow.setVisible( false ); matEd_addCubemapWindow.setVisible( false );
MaterialEditorPropertiesWindow.setVisible( false ); MaterialEditorPropertiesWindow.setVisible( false );
EditorGui.add( MaterialEditorPreviewWindow ); MainSceneTabPanel.add( MaterialEditorPreviewWindow );
EditorGui.add( matEd_cubemapEditor ); MainSceneTabPanel.add( matEd_cubemapEditor );
EditorGui.add( matEd_addCubemapWindow ); MainSceneTabPanel.add( matEd_addCubemapWindow );
EditorGui.add( MaterialEditorPropertiesWindow ); MainSceneTabPanel.add( MaterialEditorPropertiesWindow );
} }
function destroyMaterialEditor() function destroyMaterialEditor()

View file

@ -33,9 +33,9 @@ function initializeMeshRoadEditor()
MeshRoadEditorOptionsWindow.setVisible( false ); MeshRoadEditorOptionsWindow.setVisible( false );
MeshRoadEditorTreeWindow.setVisible( false ); MeshRoadEditorTreeWindow.setVisible( false );
EditorGui.add( MeshRoadEditorGui ); MainSceneTabPanel.add( MeshRoadEditorGui );
EditorGui.add( MeshRoadEditorOptionsWindow ); MainSceneTabPanel.add( MeshRoadEditorOptionsWindow );
EditorGui.add( MeshRoadEditorTreeWindow ); MainSceneTabPanel.add( MeshRoadEditorTreeWindow );
new ScriptObject( MeshRoadEditorPlugin ) new ScriptObject( MeshRoadEditorPlugin )
{ {

View file

@ -33,9 +33,9 @@ function initializeMissionAreaEditor()
MissionAreaEditorTerrainWindow.setVisible( false ); MissionAreaEditorTerrainWindow.setVisible( false );
MissionAreaEditorPropertiesWindow.setVisible( false ); MissionAreaEditorPropertiesWindow.setVisible( false );
EditorGui.add( MissionAreaEditorGui ); MainSceneTabPanel.add( MissionAreaEditorGui );
EditorGui.add( MissionAreaEditorTerrainWindow ); MainSceneTabPanel.add( MissionAreaEditorTerrainWindow );
EditorGui.add( MissionAreaEditorPropertiesWindow ); MainSceneTabPanel.add( MissionAreaEditorPropertiesWindow );
new ScriptObject( MissionAreaEditorPlugin ) new ScriptObject( MissionAreaEditorPlugin )
{ {

View file

@ -46,10 +46,10 @@ function initializeNavEditor()
NavEditorTreeWindow.setVisible(false); NavEditorTreeWindow.setVisible(false);
NavEditorConsoleDlg.setVisible(false); NavEditorConsoleDlg.setVisible(false);
EditorGui.add(NavEditorGui); MainSceneTabPanel.add(NavEditorGui);
EditorGui.add(NavEditorOptionsWindow); MainSceneTabPanel.add(NavEditorOptionsWindow);
EditorGui.add(NavEditorTreeWindow); MainSceneTabPanel.add(NavEditorTreeWindow);
EditorGui.add(NavEditorConsoleDlg); MainSceneTabPanel.add(NavEditorConsoleDlg);
new ScriptObject(NavEditorPlugin) new ScriptObject(NavEditorPlugin)
{ {

View file

@ -36,7 +36,7 @@ function initializeParticleEditor()
exec( "./particleParticleEditor.ed." @ $TorqueScriptFileExtension ); exec( "./particleParticleEditor.ed." @ $TorqueScriptFileExtension );
PE_Window.setVisible( false ); PE_Window.setVisible( false );
EditorGui.add( PE_Window ); MainSceneTabPanel.add( PE_Window );
new ScriptObject( ParticleEditorPlugin ) new ScriptObject( ParticleEditorPlugin )
{ {

View file

@ -34,9 +34,9 @@ function initializeRiverEditor()
RiverEditorOptionsWindow.setVisible( false ); RiverEditorOptionsWindow.setVisible( false );
RiverEditorTreeWindow.setVisible( false ); RiverEditorTreeWindow.setVisible( false );
EditorGui.add( RiverEditorGui ); MainSceneTabPanel.add( RiverEditorGui );
EditorGui.add( RiverEditorOptionsWindow ); MainSceneTabPanel.add( RiverEditorOptionsWindow );
EditorGui.add( RiverEditorTreeWindow ); MainSceneTabPanel.add( RiverEditorTreeWindow );
new ScriptObject( RiverEditorPlugin ) new ScriptObject( RiverEditorPlugin )
{ {

View file

@ -34,9 +34,9 @@ function initializeRoadEditor()
RoadEditorOptionsWindow.setVisible( false ); RoadEditorOptionsWindow.setVisible( false );
RoadEditorTreeWindow.setVisible( false ); RoadEditorTreeWindow.setVisible( false );
EditorGui.add( RoadEditorGui ); MainSceneTabPanel.add( RoadEditorGui );
EditorGui.add( RoadEditorOptionsWindow ); MainSceneTabPanel.add( RoadEditorOptionsWindow );
EditorGui.add( RoadEditorTreeWindow ); MainSceneTabPanel.add( RoadEditorTreeWindow );
new ScriptObject( RoadEditorPlugin ) new ScriptObject( RoadEditorPlugin )
{ {

View file

@ -48,12 +48,12 @@ function initializeShapeEditor()
ShapeEdSelectWindow.setVisible(false); ShapeEdSelectWindow.setVisible(false);
ShapeEdPropWindow.setVisible(false); ShapeEdPropWindow.setVisible(false);
EditorGui.add(ShapeEdPreviewGui); MainSceneTabPanel.add(ShapeEdPreviewGui);
EditorGui.add(ShapeEdAnimWindow); MainSceneTabPanel.add(ShapeEdAnimWindow);
EditorGui.add(ShapeEdAdvancedWindow); MainSceneTabPanel.add(ShapeEdAdvancedWindow);
EditorGui.add(ShapeEdSelectWindow); MainSceneTabPanel.add(ShapeEdSelectWindow);
EditorGui.add(ShapeEdPropWindow); MainSceneTabPanel.add(ShapeEdPropWindow);
new ScriptObject(ShapeEditorPlugin) new ScriptObject(ShapeEditorPlugin)
{ {
@ -186,7 +186,7 @@ function ShapeEditorPlugin::open(%this, %shapeAsset)
ShapeEdPropWindow.setVisible(true); ShapeEdPropWindow.setVisible(true);
ShapeEdAnimWindow.setVisible(true); ShapeEdAnimWindow.setVisible(true);
ShapeEdAdvancedWindow.setVisible(ShapeEditorToolbar-->showAdvanced.getValue()); ShapeEdAdvancedWindow.setVisible(ShapeEditorToolbar-->showAdvanced.getValue());
EditorGui.bringToFront(ShapeEdPreviewGui); MainSceneTabPanel.bringToFront(ShapeEdPreviewGui);
ToolsPaletteArray->WorldEditorMove.performClick(); ToolsPaletteArray->WorldEditorMove.performClick();
%this.map.push(); %this.map.push();

View file

@ -19,6 +19,240 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
AnchorLeft = "1"; AnchorLeft = "1";
AnchorRight = "0"; AnchorRight = "0";
new GuiTabBookCtrl(EditorGuiMainTabBook) {
tabHeight = "20";
selectedPage = "0";
position = "0 5";
extent = "800 595";
horizSizing = "width";
vertSizing = "height";
profile = "ToolsGuiTabBookProfile";
tooltipProfile = "GuiToolTipProfile";
new GuiTabPageCtrl(MainSceneEditorTab) {
text = "Main Scene";
position = 0 SPC $MainEditor::TabHeight;
extent = 800 SPC 580;
horizSizing = "width";
vertSizing = "height";
profile = "ToolsGuiTabPageProfile";
tooltipProfile = "GuiToolTipProfile";
new GuiContainer(MainSceneTabPanel) {
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 580";
new WorldEditor(EWorldEditor) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "WorldEditorProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 580";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
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";
isDirty = "0";
stickToGround = "0";
dropAtBounds = "1";
dropBelowCameraOffset = "15";
dropType = "screenCenter";
boundingBoxCollision = "1";
renderPopupBackground = "1";
popupBackgroundColor = "100 100 100 255";
popupTextColor = "255 255 0 255";
objectTextColor = "255 255 255 255";
objectsUseBoxCenter = "1";
objSelectColor = "255 0 0 255";
objMouseOverSelectColor = "0 0 255 255";
objMouseOverColor = "0 255 0 255";
showMousePopupInfo = "1";
dragRectColor = "255 255 0 255";
renderObjText = "1";
renderObjHandle = "1";
objTextFormat = "$name|class$";
faceSelectColor = "0 0 100 100";
renderSelectionBox = "1";
selectionBoxColor = "255 255 0 255";
selectionLocked = "0";
toggleIgnoreList = "0";
selectHandle = "ToolsModule:SelectHandle_image";
defaultHandle = "ToolsModule:DefaultHandle_image";
lockedHandleAsset = "ToolsModule:LockedHandle_image";
};
new TerrainEditor(ETerrainEditor) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "WorldEditorProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 580";
MinExtent = "8 8";
canSave = "1";
Visible = "0";
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 = "0 0 0 20";//"255 0 0 20";
missionAreaFrameColor = "0 0 0 128";//"255 0 0 128";
allowBorderMove = "0";
borderMovePixelSize = "20";
borderMoveSpeed = "0.1";
consoleFrameColor = "0 0 0 255";
consoleFillColor = "0 0 0 0";
consoleSphereLevel = "1";
consoleCircleSegments = "32";
consoleLineWidth = "1";
GizmoProfile = "GlobalGizmoProfile";
isDirty = "0";
isMissionDirty = "0";
renderBorder = "1";
borderHeight = "10";
borderFillColor = "0 255 0 20";
borderFrameColor = "0 255 0 128";
borderLineMode = "0";
selectionHidden = "1";
renderVertexSelection = "1";
processUsesBrush = "0";
maxBrushSize = "256 256";
adjustHeightVal = "10";
setHeightVal = "100";
scaleVal = "1";
smoothFactor = "0.1";
materialGroup = "0";
softSelectRadius = "50";
softSelectFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
softSelectDefaultFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
adjustHeightMouseScale = "0.1";
paintIndex = "-1";
new GuiTextCtrl(TESelectionInfo) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "288 549";
Extent = "120 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Selection) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TEMouseBrushInfo) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "40 549";
Extent = "107 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Mouse) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TESelectionInfo1) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfileWhite";
HorizSizing = "right";
VertSizing = "top";
Position = "289 550";
Extent = "120 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Selection) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TEMouseBrushInfo1) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfileWhite";
HorizSizing = "right";
VertSizing = "top";
Position = "41 550";
Extent = "107 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Mouse) #: 0 avg: 0";
maxLength = "255";
};
};
};
new GuiContainer(EditorGuiToolbar) { new GuiContainer(EditorGuiToolbar) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
@ -26,7 +260,7 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
Profile = "ToolsMenubarProfile"; Profile = "ToolsMenubarProfile";
HorizSizing = "width"; HorizSizing = "width";
VertSizing = "bottom"; VertSizing = "bottom";
Position = "0 6"; Position = "0 0";
Extent = "800 37"; Extent = "800 37";
MinExtent = "8 8"; MinExtent = "8 8";
Margin = "0 0 0 0"; Margin = "0 0 0 0";
@ -531,7 +765,6 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
}; };
}; };
}; };
new GuiContainer(EditorGuiStatusBar) { new GuiContainer(EditorGuiStatusBar) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
@ -659,214 +892,6 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
}; };
}; };
new WorldEditor(EWorldEditor) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "WorldEditorProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
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";
isDirty = "0";
stickToGround = "0";
dropAtBounds = "1";
dropBelowCameraOffset = "15";
dropType = "screenCenter";
boundingBoxCollision = "1";
renderPopupBackground = "1";
popupBackgroundColor = "100 100 100 255";
popupTextColor = "255 255 0 255";
objectTextColor = "255 255 255 255";
objectsUseBoxCenter = "1";
objSelectColor = "255 0 0 255";
objMouseOverSelectColor = "0 0 255 255";
objMouseOverColor = "0 255 0 255";
showMousePopupInfo = "1";
dragRectColor = "255 255 0 255";
renderObjText = "1";
renderObjHandle = "1";
objTextFormat = "$name|class$";
faceSelectColor = "0 0 100 100";
renderSelectionBox = "1";
selectionBoxColor = "255 255 0 255";
selectionLocked = "0";
toggleIgnoreList = "0";
selectHandle = "ToolsModule:SelectHandle_image";
defaultHandle = "ToolsModule:DefaultHandle_image";
lockedHandleAsset = "ToolsModule:LockedHandle_image";
};
new TerrainEditor(ETerrainEditor) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "WorldEditorProfile";
HorizSizing = "width";
VertSizing = "height";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 8";
canSave = "1";
Visible = "0";
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 = "0 0 0 20";//"255 0 0 20";
missionAreaFrameColor = "0 0 0 128";//"255 0 0 128";
allowBorderMove = "0";
borderMovePixelSize = "20";
borderMoveSpeed = "0.1";
consoleFrameColor = "0 0 0 255";
consoleFillColor = "0 0 0 0";
consoleSphereLevel = "1";
consoleCircleSegments = "32";
consoleLineWidth = "1";
GizmoProfile = "GlobalGizmoProfile";
isDirty = "0";
isMissionDirty = "0";
renderBorder = "1";
borderHeight = "10";
borderFillColor = "0 255 0 20";
borderFrameColor = "0 255 0 128";
borderLineMode = "0";
selectionHidden = "1";
renderVertexSelection = "1";
processUsesBrush = "0";
maxBrushSize = "256 256";
adjustHeightVal = "10";
setHeightVal = "100";
scaleVal = "1";
smoothFactor = "0.1";
materialGroup = "0";
softSelectRadius = "50";
softSelectFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
softSelectDefaultFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
adjustHeightMouseScale = "0.1";
paintIndex = "-1";
new GuiTextCtrl(TESelectionInfo) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "288 549";
Extent = "120 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Selection) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TEMouseBrushInfo) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfile";
HorizSizing = "right";
VertSizing = "top";
Position = "40 549";
Extent = "107 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Mouse) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TESelectionInfo1) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfileWhite";
HorizSizing = "right";
VertSizing = "top";
Position = "289 550";
Extent = "120 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Selection) #: 0 avg: 0";
maxLength = "255";
};
new GuiTextCtrl(TEMouseBrushInfo1) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "0";
Profile = "EditorTextProfileWhite";
HorizSizing = "right";
VertSizing = "top";
Position = "41 550";
Extent = "107 18";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
AnchorBottom = "0";
AnchorLeft = "1";
AnchorRight = "0";
text = " (Mouse) #: 0 avg: 0";
maxLength = "255";
};
};
new GuiControl(RelightStatus) { new GuiControl(RelightStatus) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
@ -1446,19 +1471,15 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
}; };
}; };
}; };
};
new GuiMouseEventCtrl(CameraSpeedDropdownCtrlContainer, EditorGuiGroup) { new GuiMouseEventCtrl(CameraSpeedDropdownCtrlContainer, EditorGuiGroup) {
internalName = "AggregateControl"; internalName = "AggregateControl";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";
position = "0 0"; position = "0 60";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";
visible = "1"; visible = "0";
helpTag = "0"; helpTag = "0";
class = "EditorDropdownSliderContainer"; class = "EditorDropdownSliderContainer";
@ -1535,4 +1556,7 @@ new GuiMouseEventCtrl(CameraSpeedDropdownCtrlContainer, EditorGuiGroup) {
}; };
}; };
}; };
};
};
};
//--- OBJECT WRITE END --- //--- OBJECT WRITE END ---

View file

@ -7,7 +7,7 @@ $guiContent = new GuiContainer(EWToolsToolbar) {
Profile = "ToolsMenubarProfile"; Profile = "ToolsMenubarProfile";
HorizSizing = "right"; HorizSizing = "right";
VertSizing = "bottom"; VertSizing = "bottom";
Position = "0 41"; Position = "0 38";
Extent = "0 33"; Extent = "0 33";
MinExtent = "8 2"; MinExtent = "8 2";
canSave = "1"; canSave = "1";

View file

@ -43,7 +43,7 @@ function EditorGui::init(%this)
if( isObject( EWToolsPaletteWindow ) ) if( isObject( EWToolsPaletteWindow ) )
{ {
%this.add( EWToolsPaletteWindow ); MainSceneTabPanel.add( EWToolsPaletteWindow );
EWToolsPaletteWindow.init(); EWToolsPaletteWindow.init();
EWToolsPaletteWindow.setVisible( false ); EWToolsPaletteWindow.setVisible( false );
} }
@ -124,7 +124,7 @@ function EditorGui::init(%this)
exec("~/worldEditor/gui/ToolsToolbar.ed.gui"); exec("~/worldEditor/gui/ToolsToolbar.ed.gui");
if( isObject( EWToolsToolbar ) ) if( isObject( EWToolsToolbar ) )
{ {
%this.add( EWToolsToolbar ); MainSceneTabPanel.add( EWToolsToolbar );
EWToolsToolbar.setVisible( true ); EWToolsToolbar.setVisible( true );
} }