Forráskód Böngészése

Default profile

GuiDefaultProfile has to reference defaultBorderProfile and so has to come after it is made
marauder2k7 4 éve
szülő
commit
e106c891fe
1 módosított fájl, 18 hozzáadás és 18 törlés
  1. 18 18
      toybox/Sandbox/1/gui/guiProfiles.cs

+ 18 - 18
toybox/Sandbox/1/gui/guiProfiles.cs

@@ -72,24 +72,6 @@ function SetColorAlpha(%color, %newAlpha)
 
 //-----------------------------------------------------------------------------
 
-if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
-{
-    // fill color
-    fillColor = "0 0 0 0";
-
-    // font
-    fontType = $platformFontType;
-    fontSize = $platformFontSize;
-    fontColor = "255 255 255 255";
-	align = center;
-	vAlign = middle;
-
-	cursorColor = "0 0 0 255";
-
-	borderDefault = GuiDefaultBorderProfile;
-	category = "default";
-};
-
 new GuiCursor(DefaultCursor)
 {
     hotSpot = "3 3";
@@ -158,6 +140,24 @@ if (!isObject(GuiDefaultBorderProfile)) new GuiBorderProfile (GuiDefaultBorderPr
 	underfill = true;
 };
 
+if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
+{
+    // fill color
+    fillColor = "0 0 0 0";
+
+    // font
+    fontType = $platformFontType;
+    fontSize = $platformFontSize;
+    fontColor = "255 255 255 255";
+	align = center;
+	vAlign = middle;
+
+	cursorColor = "0 0 0 255";
+
+	borderDefault = GuiDefaultBorderProfile;
+	category = "default";
+};
+
 if (!isObject(GuiBrightBorderProfile)) new GuiBorderProfile (GuiBrightBorderProfile : GuiDefaultBorderProfile)
 {
 	border = 2;