Adjusting window titles to fit properly

Because of the large width & height of the Arial font at 18 did the window titles not fit properly. Font has been decreased and made bold for the sake of distinction. Additional has the terrainpainter window's position been corrected (terrainEditor.ed.tscript)
This commit is contained in:
Nils Eikelenboom 2024-09-12 18:16:25 +02:00
parent f38352501d
commit dffb557930
40 changed files with 66 additions and 74 deletions

View file

@ -71,7 +71,7 @@ new VPathEditor(EVPathEditor) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorInspectorPlugin );";
EdgeSnap = "1";
text = ":: Verve Path Editor";
text = ":: Verve Path Editor";
new GuiContainer(){
profile = GuiDefaultProfile;
@ -218,7 +218,7 @@ new VPathEditor(EVPathEditor) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorPlugin );";
EdgeSnap = "1";
text = ":: Verve Path - Properties";
text = ":: Verve Path - Properties";
new GuiContainer(){ //Node Properties
isContainer = "1";

View file

@ -138,7 +138,7 @@ $guiContent = new GuiControl(AssetBrowser) {
};
};
new GuiWindowCtrl(AssetBrowserWindow) {
text = ":: Asset Browser";
text = ":: Asset Browser";
resizeWidth = "0";
resizeHeight = "1";
canMove = "1";

View file

@ -70,7 +70,7 @@ $guiContent = new GuiConvexEditorCtrl(ConvexEditorGui) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorInspectorPlugin );";
EdgeSnap = "1";
text = ":: Convex Shape Editor";
text = ":: Convex Shape Editor";
new GuiContainer(){
profile = "ToolsGuiDefaultProfile";

View file

@ -5,7 +5,7 @@ $guiContnt = new GuiControl(ConvexEditorOptions)
extent = "800 600";
new GuiWindowCollapseCtrl(ConvexEditorOptionsWindow) {
text = ":: Sketch Tool - Properties";
text = ":: Sketch Tool - Properties";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";

View file

@ -23,7 +23,7 @@ $guiContent = new GuiControl() {
minSize = "50 50";
closeCommand = "DatablockEditorInspectorWindow.setVisible(false);";
EdgeSnap = "1";
text = ":: Datablock Editor - Data";
text = ":: Datablock Editor - Data";
Margin = "8 8 8 8";
Padding = "0 0 0 0";
AnchorTop = "1";

View file

@ -23,7 +23,7 @@ $guiContent = new GuiControl(DatablockEditorGui) {
minSize = "50 50";
closeCommand = "DatablockInspectorTreeWindow.setVisible(false);";
EdgeSnap = "1";
text = ":: Datablock Editor - Library";
text = ":: Datablock Editor - Library";
Margin = "8 8 8 8";
Padding = "0 0 0 0";
AnchorTop = "1";

View file

@ -69,7 +69,7 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorInspectorPlugin );";
EdgeSnap = "1";
text = ":: Decal Editor";
text = ":: Decal Editor";
new GuiTabBookCtrl(DecalEditorTabBook) {
canSaveDynamicFields = "0";
@ -517,7 +517,7 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
minSize = "152 235";
closeCommand = "EPainter.parentGroup.setVisible(false);";
EdgeSnap = "1";
text = ":: Decal Properties";
text = ":: Decal Properties";
new GuiScrollCtrl(DecalEditorTemplateProperties){
canSaveDynamicFields = "0";

View file

@ -486,7 +486,7 @@ function DecalEditorTabBook::onTabSelected( %this, %text, %idx )
{
if( %idx == 0)
{
DecalPreviewWindow.text = ":: Decal Editor - Template Properties";
DecalPreviewWindow.text = ":: Decal Editor - Template Properties";
DecalEditorLibraryProperties.setVisible(true);
DecalEditorTemplateProperties.setVisible(false);
RetargetDecalButton.setVisible( true );
@ -496,7 +496,7 @@ function DecalEditorTabBook::onTabSelected( %this, %text, %idx )
}
else
{
DecalPreviewWindow.text = ":: Decal Editor - Instance Properties";
DecalPreviewWindow.text = ":: Decal Editor - Instance Properties";
RetargetDecalButton.setVisible( false );
NewDecalButton.setVisible( false );
SaveDecalsButton.setVisible( false );

View file

@ -46,7 +46,7 @@ $guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Forest Editor - Pallete";
text = ":: Forest Editor - Pallete";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";
@ -525,7 +525,7 @@ $guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Forest Editor - Properties";
text = ":: Forest Editor - Properties";
Margin = "0 0 0 0";
Padding = "0 0 0 0";
AnchorTop = "1";

View file

@ -15,7 +15,7 @@ $guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
canSaveDynamicFields = "1";
new GuiWindowCollapseCtrl(ESettingsWindow) {
text = ":: Editor Settings";
text = ":: Editor Settings";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";

View file

@ -108,7 +108,7 @@ function ESettingsWindow::toggleEditorSettings(%this)
ESettingsWindowList.sort(0);
%this.mode = "Editor";
ESettingsWindow.text = ":: Editor Settings";
ESettingsWindow.text = ":: Editor Settings";
ESettingsWindowList.setSelectedById( 1 );
}

View file

@ -11,7 +11,7 @@ $guiContent = new GuiWindowCollapseCtrl() {
minSize = "50 50";
closeCommand = "$ThisControl.onClose();";
edgeSnap = "1";
text = ":: Object Inspector";
text = ":: Object Inspector";
margin = "0 0 0 0";
padding = "0 0 0 0";
anchorTop = "1";

View file

@ -15,7 +15,7 @@ $guiContent = new GuiControl(postFXEditor) {
canSaveDynamicFields = "1";
new GuiWindowCtrl(PostFXEditorWindow) {
text = ":: PostFX Editor - EditorTemplateLevel";
text = ":: PostFX Editor - EditorTemplateLevel";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";

View file

@ -37,7 +37,7 @@ $Gui::fontTypeMono = "Arial";
$GUI::fontSize[12] = 12;
$GUI::fontSize[14] = 14;
$GUI::fontSize[16] = 16;
$GUI::fontSize[18] = 18;
$GUI::fontSize[18] = 17;
$GUI::fontSize[24] = 24;
$GUI::fontSize[36] = 36;
@ -195,8 +195,8 @@ new GuiControlProfile (ToolsGuiWindowProfile)
hasBitmapArray = true;
justify = "left";
category = "Tools";
fontType = $Gui::fontTypeMedium;
fontSize = $GUI::fontSize[18];
fontType = $Gui::fontTypeBold;
fontSize = $GUI::fontSize[16];
};
if( !isObject( ToolsGuiPaneProfile ) )
@ -211,7 +211,7 @@ new GuiControlProfile (ToolsGuiPaneProfile)
borderColor = EditorSettings.value("Theme/windowBackgroundColor");
category = "Tools";
fontType = $Gui::fontTypeMedium;
fontSize = $GUI::fontSize[18];
fontSize = $GUI::fontSize[16];
};
if( !isObject( ToolsGuiToolbarWindowProfile ) )

View file

@ -2,6 +2,7 @@
AssetName="DefaultEditorLevel"
LevelFile="@assetFile=DefaultEditorLevel.mis"
LevelName="DefaultEditorLevel"
PostFXPresetFile="@assetFile=tools/levels/DefaultEditorLevel.postfxpreset.tscript"
description="An empty room"
previewImageAsset0="@asset=ToolsModule:DefaultEditorLevel_preview_image"
previewImageAsset1="@asset=ToolsModule:DefaultEditorLevel_preview_image"
@ -11,4 +12,5 @@
previewImageAsset5="@asset=ToolsModule:DefaultEditorLevel_preview_image"
previewImageAsset6="@asset=ToolsModule:DefaultEditorLevel_preview_image"
staticObjectAssetDependency0="@asset=Prototyping:FloorGray"
staticObjectAssetDependency1="@asset=ExampleModule:NewTerrain1"
VersionId="1"/>

View file

@ -1,33 +1,20 @@
//--- OBJECT WRITE BEGIN ---
new Scene(EditorTemplateLevel) {
canSave = "1";
canSaveDynamicFields = "1";
Enabled = "1";
isEditing = "1";
enabled = "1";
new LevelInfo(theLevelInfo) {
nearClip = "0.1";
visibleDistance = "1000";
visibleGhostDistance = "0";
decalBias = "0.0015";
fogColor = "0.6 0.6 0.7 1";
fogDensity = "0";
FogColor = "0.6 0.6 0.7 1";
fogDensityOffset = "700";
fogAtmosphereHeight = "0";
canvasClearColor = "0 0 0 255";
ambientLightBlendPhase = "1";
ambientLightBlendCurve = "0 0 -1 -1";
soundAmbience = "AudioAmbienceDefault";
soundDistanceModel = "Linear";
canSave = "1";
canSaveDynamicFields = "1";
Enabled = "1";
enabled = "1";
};
new ScatterSky(DynamicSky) {
sunScale = "0.991102 0.921582 0.83077 1";
zOffset = "-3000";
azimuth = "25";
brightness = "5";
flareType = "LightFlareExample1";
MoonMatAsset = "Core_Rendering:moon_wglow";
useNightCubemap = "1";
nightCubemap = "nightCubemap";
@ -44,16 +31,19 @@ new Scene(EditorTemplateLevel) {
persistentId = "289ad401-3140-11ed-aae8-c0cb519281fc";
reflectionPath = "tools/levels/DefaultEditorLevel/probes/";
};
new GroundPlane() {
scaleU = "32";
scaleV = "32";
MaterialAsset = "Prototyping:FloorGray";
Enabled = "1";
enabled = "1";
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
};
new TerrainBlock(NewTerrain1) {
TerrainAsset = "ExampleModule:NewTerrain1";
position = "-512 -412 -511";
};
};
//--- OBJECT WRITE END ---

View file

@ -44,7 +44,7 @@ $guiContent = new GuiControl() {
closeCommand = "MaterialEditorPreviewWindow.setVisible(false);";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Material Editor - Preview";
text = ":: Material Editor - Preview";
/*new GuiContainer(MaterialEditorPreviewPane) {
canSaveDynamicFields = "0";

View file

@ -44,7 +44,7 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
closeCommand = "MaterialEditorPropertiesWindow.setVisible(false);";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Material Editor - Properties";
text = ":: Material Editor - Properties";
new GuiContainer(MaterialEditorGuiContent){ // Client group
isContainer = "1";

View file

@ -784,8 +784,8 @@ function MaterialEditorGui::isMatEditorMaterial(%this, %material)
function MaterialEditorGui::setMaterialNotDirty(%this)
{
%propertyText = ":: Material Editor - Properties";
%previewText = ":: Material Editor - Preview";
%propertyText = ":: Material Editor - Properties";
%previewText = ":: Material Editor - Preview";
MaterialEditorPropertiesWindow.text = %propertyText;
MaterialEditorPreviewWindow.text = %previewText;
@ -795,8 +795,8 @@ function MaterialEditorGui::setMaterialNotDirty(%this)
function MaterialEditorGui::setMaterialDirty(%this)
{
%propertyText = ":: Material Editor - Properties *";
%previewText = ":: Material Editor - Preview *";
%propertyText = ":: Material Editor - Properties *";
%previewText = ":: Material Editor - Preview *";
MaterialEditorPropertiesWindow.text = %propertyText;
MaterialEditorPreviewWindow.text = %previewText;

View file

@ -71,7 +71,7 @@ $guiContent = new GuiMeshRoadEditorCtrl(MeshRoadEditorGui,EditorGuiGroup) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorInspectorPlugin );";
EdgeSnap = "1";
text = ":: Mesh Road Editor - Roads";
text = ":: Mesh Road Editor - Roads";
new GuiContainer(MeshRoadEditorRoadsPanel){
profile = "ToolsGuiDefaultProfile";
@ -267,7 +267,7 @@ $guiContent = new GuiMeshRoadEditorCtrl(MeshRoadEditorGui,EditorGuiGroup) {
minSize = "50 50";
closeCommand = "EditorGui.setEditor( WorldEditorPlugin );";
EdgeSnap = "1";
text = ":: Mesh Road Editor - Properties";
text = ":: Mesh Road Editor - Properties";
new GuiContainer(MeshRoadNodesPanel){ //Node Properties
isContainer = "1";

View file

@ -67,7 +67,7 @@ $guiContent = new GuiMissionAreaEditorCtrl(MissionAreaEditorGui, EditorGuiGroup)
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Mission Area";
text = ":: Mission Area";
new GuiContainer(MissionAreaEditorTerrainPanel){
profile = "ToolsGuiDefaultProfile";
@ -234,7 +234,7 @@ $guiContent = new GuiMissionAreaEditorCtrl(MissionAreaEditorGui, EditorGuiGroup)
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Mission Area Editor - Properties";
text = ":: Mission Area Editor - Properties";
new GuiContainer(MissionAreaEditorPropertiesPanel){ //Mission Area Properties
isContainer = "1";

View file

@ -66,7 +66,7 @@ $guiContent = new GuiNavEditorCtrl(NavEditorGui, EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Navigation Editor";
text = ":: Navigation Editor";
new GuiButtonCtrl() {
Profile = "ToolsGuiButtonProfile";
@ -271,7 +271,7 @@ $guiContent = new GuiNavEditorCtrl(NavEditorGui, EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Navigation Editor - Properties";
text = ":: Navigation Editor - Properties";
new GuiContainer(NavEditorOptionsPanel){ //Actions
isContainer = "1";

View file

@ -50,7 +50,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
minSize = "50 50";
closeCommand = "";
EdgeSnap = "0";
text = ":: Particle Editor";
text = ":: Particle Editor";
new GuiTabBookCtrl(PE_TabBook) {
canSaveDynamicFields = "0";

View file

@ -160,7 +160,7 @@ function ParticleEditor::createParticleList( %this )
function ParticleEditor::openEmitterPane( %this )
{
PE_Window.text = ":: Particle Editor - Emitters";
PE_Window.text = ":: Particle Editor - Emitters";
PE_EmitterEditor.guiSync();
ParticleEditor.activeEditor = PE_EmitterEditor;
@ -172,7 +172,7 @@ function ParticleEditor::openEmitterPane( %this )
function ParticleEditor::openParticlePane( %this )
{
PE_Window.text = ":: Particle Editor - Particles";
PE_Window.text = ":: Particle Editor - Particles";
PE_ParticleEditor.guiSync();
ParticleEditor.activeEditor = PE_ParticleEditor;

View file

@ -71,7 +71,7 @@ $guiContent = new GuiRiverEditorCtrl(RiverEditorGui, EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: River Editor - Rivers";
text = ":: River Editor - Rivers";
/*
new GuiBitmapButtonCtrl() {
@ -316,7 +316,7 @@ $guiContent = new GuiRiverEditorCtrl(RiverEditorGui, EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: River Editor - Properties";
text = ":: River Editor - Properties";
new GuiContainer(RiverEditorOptionsPanel){ //Node Properties
isContainer = "1";

View file

@ -73,7 +73,7 @@ $guiContent = new GuiRoadEditorCtrl(RoadEditorGui) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Decal Road Editor - Roads & Paths";
text = ":: Decal Road Editor - Roads & Paths";
/*
new GuiBitmapButtonCtrl() {
@ -317,7 +317,7 @@ $guiContent = new GuiRoadEditorCtrl(RoadEditorGui) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Decal Road Editor - Properties";
text = ":: Decal Road Editor - Properties";
new GuiContainer(RoadEditorProperties){ //Node Properties
isContainer = "1";

View file

@ -10,7 +10,7 @@ else
//--- OBJECT WRITE BEGIN ---
$guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow,EditorGuiGroup) {
text = ":: Shape Editor - Advanced Properties";
text = ":: Shape Editor - Advanced Properties";
resizeWidth = "0";
resizeHeight = "0";
canMove = "1";

View file

@ -27,7 +27,7 @@ $guiContent = new GuiWindowCollapseCtrl(ShapeEdPropWindow) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Shape Editor - Properties";
text = ":: Shape Editor - Properties";
//---------------------------------------------------------------------
// Sequence and Node editors

View file

@ -43,7 +43,7 @@ $guiContent = new GuiControl() {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Shape Editor - Select";
text = ":: Shape Editor - Select";
new GuiTabBookCtrl(ShapeEditorTabbook) {
internalName = "tabBook";

View file

@ -15,7 +15,7 @@ $guiContent = new GuiControl(windowConsoleDlg) {
canSaveDynamicFields = "0";
new GuiWindowCtrl(windowConsoleControl) {
text = ":: Console Log";
text = ":: Console Log";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";

View file

@ -23,7 +23,7 @@ $guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
canMaximize = "0";
minSize = "50 50";
EdgeSnap = "1";
text = ":: Editor Settings";
text = ":: Editor Settings";
closeCommand = "ESettingsWindow.hideDialog();";
Margin = "0 0 0 0";
Padding = "0 0 0 0";

View file

@ -29,7 +29,7 @@ $guiContent = new GuiControl(ManageBookmarksContainer, EditorGuiGroup) {
position = "50 90";
extent = "180 306";
MinExtent = "120 130";
text = ":: Camera Bookmark Manager";
text = ":: Camera Bookmark Manager";
closeCommand = "EManageBookmarks.hideDialog();";
EdgeSnap = "0";
canCollapse = "0";

View file

@ -27,7 +27,7 @@ $guiContent = new GuiControl(ManageSFXParametersContainer,EditorGuiGroup) {
minSize = "50 50";
closeCommand = "EManageSFXParameters.setVisible( false );";
EdgeSnap = "0";
text = ":: Audio Parameters";
text = ":: Audio Parameters";
Margin = "5 5 5 5";
Padding = "5 5 5 5";
AnchorTop = "1";

View file

@ -30,7 +30,7 @@ $guiContent = new GuiControl(ObjectSnapOptionsContainer, EditorGuiGroup) {
position = "400 31";
extent =" 175 267";
MinExtent = "175 130";
text = ":: Snap Options";
text = ":: Snap Options";
closeCommand = "ESnapOptions.hideDialog();";
EdgeSnap = "0";
canCollapse = "0";

View file

@ -47,7 +47,7 @@ $guiContent = new GuiControl(TerrainPainterContainer,EditorGuiGroup) {
minSize = "300 160";
closeCommand = "EPainter.parentGroup.setVisible(false);";
EdgeSnap = "1";
text = ":: Terrain Painter - Preview";
text = ":: Terrain Painter - Preview";
new GuiContainer(EPainterPreviewCont){
Docking = "Client";
@ -293,7 +293,7 @@ $guiContent = new GuiControl(TerrainPainterContainer,EditorGuiGroup) {
minSize = "152 300";
closeCommand = "EPainter.parentGroup.setVisible(false);";
EdgeSnap = "1";
text = ":: Terrain Painter - Selector";
text = ":: Terrain Painter - Selector";
new GuiScrollCtrl( EPainterScroll ) {
canSaveDynamicFields = "0";

View file

@ -44,7 +44,7 @@ $guiContent = new GuiControl() {
closeCommand = "EWInspectorWindow.setVisible(false);";
minSize = "50 50";
EdgeSnap = "1";
text = ":: World Editor - Inspector";
text = ":: World Editor - Inspector";
new GuiContainer(EWInspectorContainer) {
canSaveDynamicFields = "0";

View file

@ -44,7 +44,7 @@ $guiContent = new GuiControl() {
minSize = "50 50";
closeCommand = "EWTreeWindow.setVisible(false);";
EdgeSnap = "1";
text = ":: World Edior - Scene Tree";
text = ":: World Edior - Scene Tree";
new GuiTabBookCtrl(EditorTreeTabBook) {
canSaveDynamicFields = "0";

View file

@ -46,7 +46,7 @@ $guiContent = new GuiControl(TerrainImportGui, EditorGuiGroup) {
minSize = "4 4";
closeCommand = "Canvas.popDialog( TerrainImportGui );";
EdgeSnap = "0";
text = ":: Import Terrain Height Map";
text = ":: Import Terrain Height Map";
new GuiTextEditCtrl() {
canSaveDynamicFields = "0";

View file

@ -7,7 +7,7 @@ $guiContent = new GuiControl(TerrainMaterialDlg,EditorGuiGroup) {
canSaveDynamicFields = "1";
new GuiWindowCtrl() {
text = ":: Terrain Materials Editor";
text = ":: Terrain Materials Editor";
resizeWidth = "0";
canMinimize = "0";
canMaximize = "0";

View file

@ -596,7 +596,7 @@ function TerrainPainterContainer::maxSize(%this, %window)
%fixedWindow = EPainterPreview;
%fluidWindow = EPainter;
%top = EditorGuiToolbar.extent.y + 6 - 7;
%top = EditorGuiToolbar.extent.y + 6 - 7 + 24;
%bottom = %top + 65 - 6;
%maxHeight = Canvas.extent.y - %top - %bottom;