Default profile
GuiDefaultProfile has to reference defaultBorderProfile and so has to come after it is made
@@ -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;
