Browse Source

Fixed some base theme dependencies

The base theme was calling some functions in the game which is a dependency we're trying to avoid.
Peter Robinson 3 years ago
parent
commit
f2c4e91bc5
1 changed files with 5 additions and 5 deletions
  1. 5 5
      editor/EditorCore/Themes/BaseTheme/BaseTheme.cs

+ 5 - 5
editor/EditorCore/Themes/BaseTheme/BaseTheme.cs

@@ -16,9 +16,9 @@ function BaseTheme::onAdd(%this)
 		borderNA = 0;
 		borderNA = 0;
 		//Default border color
 		//Default border color
 		borderColor   = $color1;
 		borderColor   = $color1;
-	    borderColorHL = AdjustColorValue($color1, 10);
-	    borderColorSL = AdjustColorValue($color1, 10);
-	    borderColorNA = SetColorAlpha($color1, 100);
+	    borderColorHL = %this.adjustValue($color1, 10);
+	    borderColorSL = %this.adjustValue($color1, 10);
+	    borderColorNA = %this.setAlpha($color1, 100);
 		//Default Padding
 		//Default Padding
 		padding = 0;
 		padding = 0;
 		paddingHL = 0;
 		paddingHL = 0;
@@ -1486,9 +1486,9 @@ function BaseTheme::makeDropDownProfile(%this)
 	%this.DropDownItemProfile = new GuiControlProfile()
 	%this.DropDownItemProfile = new GuiControlProfile()
 	{
 	{
 		fillColor = %this.color1;
 		fillColor = %this.color1;
-	    fillColorHL = AdjustColorValue(%this.color1, 10);
+	    fillColorHL = %this.adjustValue(%this.color1, 10);
 	    fillColorSL = %this.color5;
 	    fillColorSL = %this.color5;
-	    fillColorNA = SetColorAlpha(%this.color1, 100);
+	    fillColorNA = %this.setAlpha(%this.color1, 100);
 
 
 		fontType = %this.font[3];
 		fontType = %this.font[3];
 		fontDirectory = %this.fontDirectory;
 		fontDirectory = %this.fontDirectory;