Explorar o código

Tweaks to the GuiMenuBarProfile to have correct coloration and borders.

Also added a new Centered Text Edit gui profile.
Areloch %!s(int64=7) %!d(string=hai) anos
pai
achega
682d43a688
Modificáronse 1 ficheiros con 32 adicións e 3 borrados
  1. 32 3
      Templates/BaseGame/game/tools/gui/profiles.ed.cs

+ 32 - 3
Templates/BaseGame/game/tools/gui/profiles.ed.cs

@@ -287,6 +287,31 @@ new GuiControlProfile( ToolsGuiTextEditProfile )
    category = "Tools";
 };
 
+if( !isObject( ToolsGuiTextEditCenterProfile ) )
+new GuiControlProfile (ToolsGuiTextEditCenterProfile)
+{
+   opaque = true;
+   //bitmap = "./images/textEditFrame";
+   //hasBitmapArray = true; 
+   border = -2; // fix to display textEdit img
+   //borderWidth = "1";  // fix to display textEdit img
+   //borderColor = "100 100 100";
+   fillColor = "255 255 255 0";
+   fillColorHL = "72 72 72";
+   fillColorSEL = "255 255 255";
+   fontColor = "196 196 196 255";
+   fontColorHL = "255 255 255";
+   fontColorSEL = "0 0 0";
+   fontColorNA = "196 196 196 255";
+   textOffset = "4 2";
+   autoSizeWidth = false;
+   autoSizeHeight = true;
+   justify = "center";
+   tab = true;
+   canKeyFocus = true;   
+   category = "Tools";
+};
+
 if( !isObject( ToolsGuiNumericTextEditProfile ) )
 new GuiControlProfile( ToolsGuiNumericTextEditProfile : ToolsGuiTextEditProfile )
 {
@@ -1068,10 +1093,14 @@ singleton GuiControlProfile( GuiMenuBarProfile )
 {
    fillcolor = "255 255 255";
    fillcolorHL = "213 231 248";
-   borderColor = "98 163 229";
-   borderColorHL = "122 177 232";
-   border = 0;
+   
+   fontColorNA = "180 180 180";
+   
+   border = 1;
    borderThickness = 1;
+   borderColor = "128 128 128";
+   borderColorHL = "122 177 232";
+   
    opaque = true;
    mouseOverSelected = true;
    category = "Editor";