diff --git a/Engine/source/console/consoleFunctions.cpp b/Engine/source/console/consoleFunctions.cpp index cff1d87b22..eb6176645d 100644 --- a/Engine/source/console/consoleFunctions.cpp +++ b/Engine/source/console/consoleFunctions.cpp @@ -2803,6 +2803,21 @@ DefineEngineFunction(getTimestamp, const char*, (), , return returnBuffer; } +//----------------------------------------------------------------------------- + +// Define the console function to get environment variable value +// like: USERNAME, SystemDrive, LOCALAPPDATA etc. +DefineEngineFunction(getEnvironment, const char*, (const char* variableName), , + "Get the value of an environment variable.\n" + "@param variableName The name of the environment variable.\n" + "@return The value of the environment variable or an empty string if not set.") +{ + const char* value = std::getenv(variableName); // Retrieve the environment variable + return value ? value : ""; // Return the value or an empty string if not found +} + +//----------------------------------------------------------------------------- + #ifdef TORQUE_TOOLS_EXT_COMMANDS DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "") { diff --git a/Templates/BaseGame/game/tools/gui/editorSettingsWindow.ed.tscript b/Templates/BaseGame/game/tools/gui/editorSettingsWindow.ed.tscript index cc0638cca0..3b481560b1 100644 --- a/Templates/BaseGame/game/tools/gui/editorSettingsWindow.ed.tscript +++ b/Templates/BaseGame/game/tools/gui/editorSettingsWindow.ed.tscript @@ -404,6 +404,14 @@ function ESettingsWindow::getShapeEditorSettings(%this) function ESettingsWindow::getThemeSettings(%this) { + SettingsInspector.startGroup("Font"); + SettingsInspector.addSettingsField("Theme/editorFont", "Editor font ( if installed | restart required )", "list", "Font used for most of the text used in the editor.", + "Open Sans,Arial,Segoe UI"); + SettingsInspector.addSettingsField("Theme/codeFont", "Code font ( if installed | restart required )", "list", "Font used for diplaying code.", + "Lucida Console,Cascadia Code,Consolas"); + SettingsInspector + SettingsInspector.endGroup(); + SettingsInspector.startGroup("Colors"); SettingsInspector.addSettingsField("Theme/headerColor", "Headerbar Color", "ColorI", ""); SettingsInspector.addSettingsField("Theme/windowBackgroundColor", "Window Background Color", "ColorI", ""); diff --git a/Templates/BaseGame/game/tools/gui/profiles.ed.tscript b/Templates/BaseGame/game/tools/gui/profiles.ed.tscript index 17390ad0ff..6c62fa6320 100644 --- a/Templates/BaseGame/game/tools/gui/profiles.ed.tscript +++ b/Templates/BaseGame/game/tools/gui/profiles.ed.tscript @@ -27,13 +27,25 @@ function execEditorProfilesCS() $Gui::clipboardFile = expandFilename("./clipboard.gui"); -$Gui::fontTypeRegular = "Arial"; -$Gui::fontTypeLight = "Arial Light"; -$Gui::fontTypeMedium = "Arial Medium"; -$Gui::fontTypeBold = "Arial Bold"; -$Gui::fontTypeItalic = "Arial Italic"; -$Gui::fontTypeMono = "Arial"; +$Gui::editorFont = EditorSettings.value("Theme/editorFont"); +$Gui::codeFont = EditorSettings.value("Theme/codeFont"); +// Get user's fonts location (later Windows versions) +$Gui::localFontsPath = getEnvironment("LOCALAPPDATA") @ "/Microsoft/Windows/Fonts/"; +$Gui::winFontsPath = getEnvironment("SystemRoot") @ "/Fonts/"; + +// Default editor font settings +// Segoe is standard provided with Windows Vista to 11 +$Gui::fontTypeRegular = "Segoe UI"; +$Gui::fontTypeLight = "Segoe UI Semilight"; +$Gui::fontTypeMedium = "Segoe UI Regular"; +$Gui::fontTypeBold = "Segoe UI Bold"; +$Gui::fontTypeItalic = "Segoe UI Italic"; + +// Default codefont settings +$Gui::fontTypeMono = "Lucida Console"; // Standard provided with Windows 7 to 11 + +// Standard font sizes $GUI::fontSize[12] = 12; $GUI::fontSize[14] = 14; $GUI::fontSize[16] = 16; @@ -41,6 +53,66 @@ $GUI::fontSize[18] = 17; $GUI::fontSize[24] = 24; $GUI::fontSize[36] = 36; +// Override with Open Sans (if available) +// Open Sans is an Open Source UI font with Apache License +if ($Gui::editorFont $= "Open Sans") +{ + if(isFile($Gui::localFontsPath @ "OpenSans-Regular.ttf") || isFile($Gui::winFontsPath @ "OpenSans-Regular.ttf")) + { + $Gui::fontTypeRegular = "Open Sans"; + $Gui::fontTypeLight = "Open Sans Light"; + $Gui::fontTypeMedium = "Open Sans Medium"; + $Gui::fontTypeBold = "Open Sans Bold"; + $Gui::fontTypeItalic = "Open Sans Italic"; + $GUI::fontSize[12] = 12; + $GUI::fontSize[14] = 14; + $GUI::fontSize[16] = 16; + $GUI::fontSize[18] = 18; + $GUI::fontSize[24] = 24; + $GUI::fontSize[36] = 36; + } +} + +// Override with Arial (if available) +if ($Gui::editorFont $= "Arial") +{ + if(isFile($Gui::localFontsPath @ "Arial.ttf") || isFile($Gui::winFontsPath @ "Arial.ttf")) + { + $Gui::fontTypeRegular = "Arial"; + $Gui::fontTypeLight = "Arial"; + $Gui::fontTypeMedium = "Arial"; + $Gui::fontTypeBold = "Arial Bold"; + $Gui::fontTypeItalic = "Arial Italic"; + $GUI::fontSize[12] = 12; + $GUI::fontSize[14] = 14; + $GUI::fontSize[16] = 16; + $GUI::fontSize[18] = 18; + $GUI::fontSize[24] = 24; + $GUI::fontSize[36] = 36; + } +} + +// Override with Cascadia Code (if available) +if ($Gui::codeFont $= "Cascadia Code") +{ + if(isFile($Gui::localFontsPath @ "CascadiaCode.ttf") || isFile($Gui::winFontsPath @ "CascadiaCode.ttf")) + { + // This font is provided with Visual Studio and Visual Studio Code. + $Gui::fontTypeMono = "Cascadia Code"; + } +} + +// Override with Consolas Code (if available) +if ($Gui::codeFont $= "Consolas") +{ + if(isFile($Gui::localFontsPath @ "consola.ttf") || isFile($Gui::winFontsPath @ "consola.ttf")) + { + // This font is standard provided with Windows 7 to 11 + $Gui::fontTypeMono = "Consolas"; + } +} + + if( !isObject( ToolsGuiDefaultProfile ) ) new GuiControlProfile (ToolsGuiDefaultProfile) { @@ -535,6 +607,12 @@ new GuiControlProfile( ToolsGuiIconButtonLargeProfile : ToolsGuiIconButtonProfil fontType = $Gui::fontTypeMedium; }; +if( !isObject( InspectorTypeButtonProfile ) ) +new GuiControlProfile( InspectorTypeButtonProfile : ToolsGuiButtonProfile ) +{ + category = "Tools"; +}; + if( !isObject( ToolsGuiEditorTabPage ) ) new GuiControlProfile(ToolsGuiEditorTabPage) { @@ -928,6 +1006,7 @@ new GuiControlProfile( ToolsGuiFormProfile : ToolsGuiTextProfile ) // ---------------------------------------------------------------------------- +if( !isObject( GuiBackFillProfile ) ) singleton GuiControlProfile( GuiBackFillProfile ) { opaque = true; @@ -943,6 +1022,7 @@ singleton GuiControlProfile( GuiBackFillProfile ) category = "Editor"; }; +if( !isObject( GuiDarkFillProfile ) ) singleton GuiControlProfile( GuiDarkFillProfile ) { opaque = true; @@ -951,6 +1031,7 @@ singleton GuiControlProfile( GuiDarkFillProfile ) category = "Editor"; }; +if( !isObject( GuiShaderEditorProfile ) ) singleton GuiControlProfile(GuiShaderEditorProfile : ToolsGuiDefaultProfile) { opaque = true; @@ -961,6 +1042,7 @@ singleton GuiControlProfile(GuiShaderEditorProfile : ToolsGuiDefaultProfile) borderColorSEL = "128 0 128 128"; }; +if( !isObject( GuiControlListPopupProfile ) ) singleton GuiControlProfile( GuiControlListPopupProfile ) { opaque = true; @@ -981,6 +1063,7 @@ singleton GuiControlProfile( GuiControlListPopupProfile ) category = "Editor"; }; +if( !isObject( GuiSceneGraphEditProfile ) ) singleton GuiControlProfile( GuiSceneGraphEditProfile ) { canKeyFocus = true; @@ -988,6 +1071,7 @@ singleton GuiControlProfile( GuiSceneGraphEditProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorButtonProfile ) ) singleton GuiControlProfile( GuiInspectorButtonProfile : ToolsGuiButtonProfile ) { //border = 1; @@ -995,6 +1079,7 @@ singleton GuiControlProfile( GuiInspectorButtonProfile : ToolsGuiButtonProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorSwatchButtonProfile ) ) singleton GuiControlProfile( GuiInspectorSwatchButtonProfile ) { borderColor = EditorSettings.value("Theme/dividerDarkColor"); @@ -1004,6 +1089,7 @@ singleton GuiControlProfile( GuiInspectorSwatchButtonProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorTextEditProfile ) ) singleton GuiControlProfile( GuiInspectorTextEditProfile ) { // Transparent Background @@ -1029,11 +1115,15 @@ singleton GuiControlProfile( GuiInspectorTextEditProfile ) fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); category = "Editor"; }; + +if( !isObject( GuiDropdownTextEditProfile ) ) singleton GuiControlProfile( GuiDropdownTextEditProfile : ToolsGuiTextEditProfile ) { bitmapAsset = "ToolsModule:dropdown_textEdit_image"; category = "Editor"; }; + +if( !isObject( GuiInspectorTextEditRightProfile ) ) singleton GuiControlProfile( GuiInspectorTextEditRightProfile : GuiInspectorTextEditProfile ) { justify = "right"; @@ -1041,6 +1131,7 @@ singleton GuiControlProfile( GuiInspectorTextEditRightProfile : GuiInspectorText }; //Scene Tree GUI Inspector Dropdown menus +if( !isObject( GuiInspectorGroupProfile ) ) singleton GuiControlProfile( GuiInspectorGroupProfile ) { fontType = $Gui::fontTypeRegular; @@ -1060,6 +1151,7 @@ singleton GuiControlProfile( GuiInspectorGroupProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorFieldProfile ) ) singleton GuiControlProfile( GuiInspectorFieldProfile) { // fill color @@ -1100,12 +1192,14 @@ singleton GuiControlProfile( GuiInspectorMultiFieldProfile : GuiInspectorFieldPr }; */ +if( !isObject( GuiInspectorMultiFieldDifferentProfile ) ) singleton GuiControlProfile( GuiInspectorMultiFieldDifferentProfile : GuiInspectorFieldProfile ) { border = true; borderColor = EditorSettings.value("Theme/dividerMidColor"); }; +if( !isObject( GuiInspectorDynamicFieldProfile ) ) singleton GuiControlProfile( GuiInspectorDynamicFieldProfile : GuiInspectorFieldProfile ) { // Transparent Background @@ -1130,6 +1224,7 @@ singleton GuiControlProfile( GuiInspectorDynamicFieldProfile : GuiInspectorField category = "Editor"; }; +if( !isObject( GuiRolloutProfile ) ) singleton GuiControlProfile( GuiRolloutProfile ) { border = 0; @@ -1146,6 +1241,7 @@ singleton GuiControlProfile( GuiRolloutProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorRolloutProfile0 ) ) singleton GuiControlProfile( GuiInspectorRolloutProfile0 ) { // font @@ -1170,6 +1266,7 @@ singleton GuiControlProfile( GuiInspectorRolloutProfile0 ) category = "Editor"; }; +if( !isObject( GuiInspectorRolloutProfile1 ) ) singleton GuiControlProfile( GuiInspectorRolloutProfile1 ) { // font @@ -1194,6 +1291,7 @@ singleton GuiControlProfile( GuiInspectorRolloutProfile1 ) category = "Editor"; }; +if( !isObject( GuiInspectorStackProfile ) ) singleton GuiControlProfile( GuiInspectorStackProfile ) { opaque = false; @@ -1208,6 +1306,7 @@ singleton GuiControlProfile( GuiInspectorStackProfile ) fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); }; +if( !isObject( GuiInspectorProfile ) ) singleton GuiControlProfile( GuiInspectorProfile : GuiInspectorFieldProfile ) { opaque = true; @@ -1217,6 +1316,8 @@ singleton GuiControlProfile( GuiInspectorProfile : GuiInspectorFieldProfile ) tab = true; category = "Editor"; }; + +if( !isObject( GuiInspectorInfoProfile ) ) singleton GuiControlProfile( GuiInspectorInfoProfile : GuiInspectorFieldProfile ) { opaque = true; @@ -1227,6 +1328,7 @@ singleton GuiControlProfile( GuiInspectorInfoProfile : GuiInspectorFieldProfile category = "Editor"; }; +if( !isObject( GuiInspectorBackgroundProfile ) ) singleton GuiControlProfile( GuiInspectorBackgroundProfile : GuiInspectorFieldProfile ) { border = 0; @@ -1235,6 +1337,7 @@ singleton GuiControlProfile( GuiInspectorBackgroundProfile : GuiInspectorFieldPr category = "Editor"; }; +if( !isObject( GuiInspectorTypeFileNameProfile ) ) singleton GuiControlProfile( GuiInspectorTypeFileNameProfile ) { // Transparent Background @@ -1267,6 +1370,7 @@ singleton GuiControlProfile( GuiInspectorTypeFileNameProfile ) category = "Editor"; }; +if( !isObject( GuiInspectorColumnCtrlProfile) ) singleton GuiControlProfile( GuiInspectorColumnCtrlProfile : GuiInspectorFieldProfile ) { opaque = true; @@ -1275,6 +1379,7 @@ singleton GuiControlProfile( GuiInspectorColumnCtrlProfile : GuiInspectorFieldPr category = "Editor"; }; +if( !isObject( InspectorTypeEnumProfile) ) singleton GuiControlProfile( InspectorTypeEnumProfile : GuiInspectorFieldProfile ) { mouseOverSelected = true; @@ -1286,6 +1391,7 @@ singleton GuiControlProfile( InspectorTypeEnumProfile : GuiInspectorFieldProfile category = "Editor"; }; +if( !isObject( InspectorTypeCheckboxProfile ) ) singleton GuiControlProfile( InspectorTypeCheckboxProfile : GuiInspectorFieldProfile ) { bitmapAsset = "ToolsModule:checkBox_image"; @@ -1296,241 +1402,223 @@ singleton GuiControlProfile( InspectorTypeCheckboxProfile : GuiInspectorFieldPro category = "Editor"; }; -singleton GuiControlProfile( GuiToolboxButtonProfile : ToolsGuiButtonProfile ) -{ - justify = "center"; - fontColor = EditorSettings.value("Theme/fieldTextColor"); - border = 0; - textOffset = "0 0"; - category = "Editor"; -}; - -singleton GuiControlProfile( GuiDirectoryTreeProfile : ToolsGuiTreeViewProfile ) -{ - fontColor = EditorSettings.value("Theme/fieldTextColor"); - fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor"); - fillColorHL = EditorSettings.value("Theme/fieldBGColor"); - fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); - fontType = $Gui::fontTypeRegular; - fontSize = $GUI::fontSize[16]; - category = "Editor"; +if (!isObject(GuiToolboxButtonProfile)) +singleton GuiControlProfile(GuiToolboxButtonProfile : ToolsGuiButtonProfile) { + justify = "center"; + fontColor = EditorSettings.value("Theme/fieldTextColor"); + border = 0; + textOffset = "0 0"; + category = "Editor"; +}; + +if (!isObject(GuiDirectoryTreeProfile)) +singleton GuiControlProfile(GuiDirectoryTreeProfile : ToolsGuiTreeViewProfile) { + fontColor = EditorSettings.value("Theme/fieldTextColor"); + fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); + fillColorHL = EditorSettings.value("Theme/fieldBGColor"); + fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); + fontType = $Gui::fontTypeRegular; + fontSize = $GUI::fontSize[16]; + category = "Editor"; +}; + +if (!isObject(GuiDirectoryFileListProfile)) +singleton GuiControlProfile(GuiDirectoryFileListProfile) { + fontColor = EditorSettings.value("Theme/fieldTextColor"); + fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); + fillColorHL = EditorSettings.value("Theme/fieldBGColor"); + fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); + fontType = $Gui::fontTypeRegular; + fontSize = $GUI::fontSize[16]; + category = "Editor"; +}; + +if (!isObject(GuiDragAndDropProfile)) +singleton GuiControlProfile(GuiDragAndDropProfile) { + category = "Editor"; +}; + +if (!isObject(GuiInspectorFieldInfoPaneProfile)) +singleton GuiControlProfile(GuiInspectorFieldInfoPaneProfile) { + opaque = false; + fillcolor = GuiInspectorBackgroundProfile.fillColor; + borderColor = ToolsGuiDefaultProfile.borderColor; + border = 1; + category = "Editor"; +}; + +if (!isObject(GuiInspectorFieldInfoMLTextProfile)) +singleton GuiControlProfile(GuiInspectorFieldInfoMLTextProfile : ToolsGuiMLTextProfile) { + opaque = false; + border = 0; + textOffset = "5 0"; + category = "Editor"; + fontColor = EditorSettings.value("Theme/fieldTextColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); +}; + +if (!isObject(GuiEditorScrollProfile)) +singleton GuiControlProfile(GuiEditorScrollProfile) { + opaque = true; + fillcolor = EditorSettings.value("Theme/windowBackgroundColor"); + borderColor = EditorSettings.value("Theme/dividerDarkColor"); + border = 1; + bitmapAsset = "ToolsModule:scrollBar_image"; + hasBitmapArray = true; + category = "Editor"; +}; + +if (!isObject(GuiCreatorIconButtonProfile)) +singleton GuiControlProfile(GuiCreatorIconButtonProfile) { + opaque = true; + fillColor = EditorSettings.value("Theme/tabsColor"); + fillColorHL = EditorSettings.value("Theme/tabsHLColor"); + fillColorSEL = EditorSettings.value("Theme/tabsSELColor"); + fillColorNA = EditorSettings.value("Theme/tabsSELColor"); + fontType = $Gui::fontTypeBold; + fontSize = $GUI::fontSize[18]; + fontColor = EditorSettings.value("Theme/fieldTextColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); + fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); + border = 1; + borderColor = EditorSettings.value("Theme/dividerMidColor"); + borderColorHL = EditorSettings.value("Theme/dividerLightColor"); + borderColorNA = EditorSettings.value("Theme/dividerDarkColor"); + category = "Editor"; +}; + +if (!isObject(ToolsGuiMenuBarProfile)) +singleton GuiControlProfile(ToolsGuiMenuBarProfile) { + fillColor = EditorSettings.value("Theme/headerColor"); + fillcolorHL = EditorSettings.value("Theme/tabsSELColor"); + borderColor = EditorSettings.value("Theme/dividerDarkColor"); + borderColorHL = EditorSettings.value("Theme/dividerMidColor"); + fontColor = EditorSettings.value("Theme/headerTextColor"); + fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + fontColorNA = EditorSettings.value("Theme/fieldTextNAColor"); + border = 1; + borderThickness = 1; + opaque = true; + mouseOverSelected = true; + category = "Editor"; + bitmapAsset = "ToolsModule:checkbox_menubar_image"; + fontSize = $GUI::fontSize[18]; + fontType = $Gui::fontTypeRegular; +}; + +if (!isObject(ToolsMenubarProfile)) +singleton GuiControlProfile(ToolsMenubarProfile : ToolsGuiDefaultProfile) { + bitmap = "./menubar"; + category = "Editor"; + opaque = true; + border = false; + fillColor = EditorSettings.value("Theme/headerColor"); + fontColor = EditorSettings.value("Theme/headerTextColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + borderColor = EditorSettings.value("Theme/dividerDarkColor"); +}; + +if (!isObject(menubarProfile)) +singleton GuiControlProfile(menubarProfile) { + opaque = false; + border = -2; + category = "Editor"; + bitmap = "./menubar"; + fillColor = EditorSettings.value("Theme/windowBackgroundColor"); + fontColor = EditorSettings.value("Theme/headerTextColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + borderColor = EditorSettings.value("Theme/dividerDarkColor"); + fontSize = 15; +}; + +if (!isObject(editorMenubarProfile)) +singleton GuiControlProfile(editorMenubarProfile) { + border = -2; + category = "Editor"; + bitmap = "./editor-menubar"; +}; + +if (!isObject(editorMenu_wBorderProfile)) +singleton GuiControlProfile(editorMenu_wBorderProfile) { + border = -2; + category = "Editor"; + bitmap = "./menu-fullborder"; +}; + +if (!isObject(inspectorStyleRolloutProfile)) +singleton GuiControlProfile(inspectorStyleRolloutProfile) { + border = -2; + category = "Editor"; + bitmap = "./inspector-style-rollout"; +}; + +if (!isObject(inspectorStyleRolloutListProfile)) +singleton GuiControlProfile(inspectorStyleRolloutListProfile) { + border = -2; + category = "Editor"; + bitmap = "./inspector-style-rollout-list"; +}; + +if (!isObject(inspectorStyleRolloutDarkProfile)) +singleton GuiControlProfile(inspectorStyleRolloutDarkProfile) { + border = -2; + category = "Editor"; + bitmap = "./inspector-style-rollout-dark"; + fillColor = EditorSettings.value("Theme/windowBackgroundColor"); + fontColor = EditorSettings.value("Theme/headerTextColor"); + fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); + borderColor = EditorSettings.value("Theme/dividerDarkColor"); +}; + +if (!isObject(inspectorStyleRolloutInnerProfile)) +singleton GuiControlProfile(inspectorStyleRolloutInnerProfile) { + border = -2; + category = "Editor"; + bitmap = "./inspector-style-rollout_inner"; +}; + +if (!isObject(inspectorStyleRolloutNoHeaderProfile)) +singleton GuiControlProfile(inspectorStyleRolloutNoHeaderProfile) { + border = -2; + category = "Editor"; + bitmap = "./inspector-style-rollout-noheader"; +}; + +if (!isObject(IconDropdownProfile)) +singleton GuiControlProfile(IconDropdownProfile) { + border = true; + opaque = true; + category = "Editor"; + fillColor = EditorSettings.value("Theme/headerColor"); +}; + +if (!isObject(GuiSimpleBorderProfile)) +singleton GuiControlProfile(GuiSimpleBorderProfile) { + opaque = false; + border = 1; + category = "Editor"; +}; + +if (!isObject(GuiDisabledTextEditProfile)) +singleton GuiControlProfile(GuiDisabledTextEditProfile) { + opaque = false; + border = 0; + bitmapAsset = "ToolsModule:textEdit_image"; + 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( GuiDirectoryFileListProfile ) -{ - fontColor = EditorSettings.value("Theme/fieldTextColor"); - fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor"); - fillColorHL = EditorSettings.value("Theme/fieldBGColor"); - fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); - fontType = $Gui::fontTypeRegular; - fontSize = $GUI::fontSize[16]; - category = "Editor"; -}; - -singleton GuiControlProfile( GuiDragAndDropProfile ) -{ - category = "Editor"; -}; - -singleton GuiControlProfile( GuiInspectorFieldInfoPaneProfile ) -{ - opaque = false; - fillcolor = GuiInspectorBackgroundProfile.fillColor; - borderColor = ToolsGuiDefaultProfile.borderColor; - border = 1; - category = "Editor"; -}; - -singleton GuiControlProfile( GuiInspectorFieldInfoMLTextProfile : ToolsGuiMLTextProfile ) -{ - opaque = false; - border = 0; - textOffset = "5 0"; - category = "Editor"; - - fontColor = EditorSettings.value("Theme/fieldTextColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); -}; - -singleton GuiControlProfile( GuiEditorScrollProfile ) -{ - opaque = true; - fillcolor = EditorSettings.value("Theme/windowBackgroundColor"); - borderColor = EditorSettings.value("Theme/dividerDarkColor"); - border = 1; - bitmapAsset = "ToolsModule:scrollBar_image"; - hasBitmapArray = true; - category = "Editor"; -}; - -singleton GuiControlProfile( GuiCreatorIconButtonProfile ) -{ - opaque = true; - fillColor = EditorSettings.value("Theme/tabsColor"); - fillColorHL = EditorSettings.value("Theme/tabsHLColor"); - fillColorSEL = EditorSettings.value("Theme/tabsSELColor"); - fillColorNA = EditorSettings.value("Theme/tabsSELColor"); - - //tab = true; - //canKeyFocus = true; - - fontType = $Gui::fontTypeBold; - fontSize = $GUI::fontSize[18]; - - fontColor = EditorSettings.value("Theme/fieldTextColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - fontColorNA = EditorSettings.value("Theme/fieldTextSELColor"); - fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); - - border = 1; - borderColor = EditorSettings.value("Theme/dividerMidColor"); - borderColorHL = EditorSettings.value("Theme/dividerLightColor"); - borderColorNA = EditorSettings.value("Theme/dividerDarkColor"); - - //bevelColorHL = "255 255 255"; - //bevelColorLL = "0 0 0"; - category = "Editor"; -}; - -singleton GuiControlProfile( ToolsGuiMenuBarProfile ) -{ - fillColor = EditorSettings.value("Theme/headerColor"); - fillcolorHL = EditorSettings.value("Theme/tabsSELColor"); - borderColor = EditorSettings.value("Theme/dividerDarkColor"); - borderColorHL = EditorSettings.value("Theme/dividerMidColor"); - fontColor = EditorSettings.value("Theme/headerTextColor"); - fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - fontColorNA = EditorSettings.value("Theme/fieldTextNAColor"); - border = 1; - borderThickness = 1; - opaque = true; - mouseOverSelected = true; - category = "Editor"; - bitmapAsset = "ToolsModule:checkbox_menubar_image"; - fontSize = $GUI::fontSize[18]; - fontType = $Gui::fontTypeRegular; -}; - -singleton GuiControlProfile( ToolsMenubarProfile : ToolsGuiDefaultProfile ) -{ - bitmap = "./menubar"; - category = "Editor"; - - opaque = true; - border = false; - - fillColor = EditorSettings.value("Theme/headerColor"); - fontColor = EditorSettings.value("Theme/headerTextColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - borderColor = EditorSettings.value("Theme/dividerDarkColor"); -}; - -singleton GuiControlProfile (menubarProfile) -{ - opaque = false; - border = -2; - category = "Editor"; - - bitmap = "./menubar"; - category = "Editor"; - - fillColor = EditorSettings.value("Theme/windowBackgroundColor"); - fontColor = EditorSettings.value("Theme/headerTextColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - borderColor = EditorSettings.value("Theme/dividerDarkColor"); - fontSize = 15; -}; - -singleton GuiControlProfile (editorMenubarProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./editor-menubar"; - category = "Editor"; -}; -singleton GuiControlProfile (editorMenu_wBorderProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./menu-fullborder"; - category = "Editor"; -}; -singleton GuiControlProfile (inspectorStyleRolloutProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./inspector-style-rollout"; - category = "Editor"; -}; -singleton GuiControlProfile (inspectorStyleRolloutListProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./inspector-style-rollout-list"; - category = "Editor"; -}; -singleton GuiControlProfile (inspectorStyleRolloutDarkProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./inspector-style-rollout-dark"; - - fillColor = EditorSettings.value("Theme/windowBackgroundColor"); - fontColor = EditorSettings.value("Theme/headerTextColor"); - fontColorHL = EditorSettings.value("Theme/fieldTextHLColor"); - borderColor = EditorSettings.value("Theme/dividerDarkColor"); -}; -singleton GuiControlProfile (inspectorStyleRolloutInnerProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./inspector-style-rollout_inner"; - category = "Editor"; -}; -singleton GuiControlProfile (inspectorStyleRolloutNoHeaderProfile) -{ - border = -2; - category = "Editor"; - bitmap = "./inspector-style-rollout-noheader"; - category = "Editor"; -}; -singleton GuiControlProfile (IconDropdownProfile) -{ - border = -2; - opaque = true; - border = true; - category = "Editor"; - //bitmap = "./icon-dropdownbar"; - - fillColor = EditorSettings.value("Theme/headerColor"); -}; - -// -singleton GuiControlProfile (GuiSimpleBorderProfile) -{ - opaque = false; - border = 1; - category = "Editor"; -}; - -singleton GuiControlProfile (GuiDisabledTextEditProfile) -{ - opaque = false; - border = 0; - bitmapAsset = "ToolsModule:textEdit_image"; - 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"; -}; // ----------------------------------------------------------------------------- if(!isObject(ToolsGuiConsoleProfile)) new GuiControlProfile(ToolsGuiConsoleProfile) @@ -1606,4 +1694,5 @@ new GuiControlProfile(ToolsConsoleTextEditProfile : ToolsGuiTextEditProfile) cursorColor = "255 255 255"; category = "Tools"; }; + // ----------------------------------------------------------------------------- diff --git a/Templates/BaseGame/game/tools/settings.xml b/Templates/BaseGame/game/tools/settings.xml index 1485670da6..29e6cd9f3c 100644 --- a/Templates/BaseGame/game/tools/settings.xml +++ b/Templates/BaseGame/game/tools/settings.xml @@ -316,6 +316,10 @@ + Arial + Lucida Console 30 30 30 255