|
@@ -33,6 +33,42 @@ else if ($platform $= "Android")
|
|
|
else
|
|
|
$platformFontSize = 12;
|
|
|
|
|
|
+$color[1] = "43 43 43 255";
|
|
|
+$color[2] = "81 92 102 255";
|
|
|
+$color[3] = "224 224 224 255";
|
|
|
+$color[4] = "54 135 196 255";
|
|
|
+$color[5] = "245 210 50 255";
|
|
|
+
|
|
|
+function AdjustColorValue(%color, %percent)
|
|
|
+{
|
|
|
+ %red = getWord(%color, 0);
|
|
|
+ %green = getWord(%color, 1);
|
|
|
+ %blue = getWord(%color, 2);
|
|
|
+ %alpha = getWord(%color, 3);
|
|
|
+
|
|
|
+ %largest = mGetMax(%red, mGetMax(%blue, %green));
|
|
|
+ %currentValue = %largest / 255;
|
|
|
+ %fullRed = %red / %currentValue;
|
|
|
+ %fullGreen = %green / %currentValue;
|
|
|
+ %fullBlue = %blue / %currentValue;
|
|
|
+
|
|
|
+ %newValue = %currentValue += (%percent/100);
|
|
|
+ %newValue = mClamp(%newValue, 0, 100);
|
|
|
+ %newColor = mRound(mClamp((%fullRed * %newValue), 0, 255)) SPC
|
|
|
+ mRound(mClamp((%fullGreen * %newValue), 0, 255)) SPC
|
|
|
+ mRound(mClamp((%fullBlue * %newValue), 0, 255)) SPC %alpha;
|
|
|
+
|
|
|
+ return %newColor;
|
|
|
+}
|
|
|
+
|
|
|
+function SetColorAlpha(%color, %newAlpha)
|
|
|
+{
|
|
|
+ %red = getWord(%color, 0);
|
|
|
+ %green = getWord(%color, 1);
|
|
|
+ %blue = getWord(%color, 2);
|
|
|
+ return %red SPC %green SPC %blue SPC mRound(mClamp(%newAlpha, 0, 255));
|
|
|
+}
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
new GuiCursor(DefaultCursor)
|
|
@@ -42,139 +78,110 @@ new GuiCursor(DefaultCursor)
|
|
|
bitmapName = "^Sandbox/gui/images/defaultCursor";
|
|
|
};
|
|
|
|
|
|
-//---------------------------------------------------------------------------------------------
|
|
|
-// GuiDefaultProfile is a special profile that all other profiles inherit defaults from. It
|
|
|
-// must exist.
|
|
|
-//---------------------------------------------------------------------------------------------
|
|
|
-if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
|
|
|
+if (!isObject(GuiDefaultBorderProfile)) new GuiBorderProfile (GuiDefaultBorderProfile)
|
|
|
{
|
|
|
- tab = false;
|
|
|
- canKeyFocus = false;
|
|
|
- hasBitmapArray = false;
|
|
|
- mouseOverSelected = false;
|
|
|
+ border = 0;
|
|
|
+ borderColor = $color1;
|
|
|
+ borderColorHL = AdjustColorValue($color1, 10);
|
|
|
+ borderColorSL = AdjustColorValue($color1, 10);
|
|
|
+ borderColorNA = SetColorAlpha($color1, 100);
|
|
|
+};
|
|
|
|
|
|
- // fill color
|
|
|
- fillColor = "211 211 211 0";
|
|
|
- fillColorHL = "244 244 244 0";
|
|
|
- fillColorNA = "244 244 244 0";
|
|
|
+if (!isObject(GuiBrightBorderProfile)) new GuiBorderProfile (GuiBrightBorderProfile : GuiDefaultBorderProfile)
|
|
|
+{
|
|
|
+ border = 2;
|
|
|
+ borderHL = 2;
|
|
|
+ borderSL = 2;
|
|
|
+ borderNA = 2;
|
|
|
+
|
|
|
+ borderColor = "255 255 255 50";
|
|
|
+ borderColorHL = "255 255 255 50";
|
|
|
+ borderColorSL = "255 255 255 50";
|
|
|
+ borderColorNA = "255 255 255 50";
|
|
|
|
|
|
- // border color
|
|
|
- border = 0;
|
|
|
- borderColor = "100 100 100 255";
|
|
|
- borderColorHL = "128 128 128 255";
|
|
|
- borderColorNA = "64 64 64 255";
|
|
|
+ underfill = true;
|
|
|
+};
|
|
|
+
|
|
|
+if (!isObject(GuiDarkBorderProfile)) new GuiBorderProfile (GuiDarkBorderProfile : GuiBrightBorderProfile)
|
|
|
+{
|
|
|
+ borderColor = "0 0 0 50";
|
|
|
+ borderColorHL = "0 0 0 50";
|
|
|
+ borderColorSL = "0 0 0 50";
|
|
|
+ borderColorNA = "0 0 0 50";
|
|
|
+};
|
|
|
+
|
|
|
+if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
|
|
|
+{
|
|
|
+ // fill color
|
|
|
+ fillColor = "0 0 0 0";
|
|
|
|
|
|
// font
|
|
|
fontType = $platformFontType;
|
|
|
fontSize = $platformFontSize;
|
|
|
-
|
|
|
- fontColor = "0 0 0";
|
|
|
- fontColorHL = "32 100 100";
|
|
|
- fontColorNA = "0 0 0";
|
|
|
- fontColorSEL= "10 10 10";
|
|
|
+ fontColor = "255 255 255 255";
|
|
|
+ align = center;
|
|
|
+ vAlign = middle;
|
|
|
|
|
|
// bitmap information
|
|
|
- bitmap = "^Sandbox/gui/images/window.png";
|
|
|
- bitmapBase = "";
|
|
|
- textOffset = "0 0";
|
|
|
-
|
|
|
- // used by guiTextControl
|
|
|
- modal = true;
|
|
|
- align = "left";
|
|
|
- autoSizeWidth = false;
|
|
|
- autoSizeHeight = false;
|
|
|
- returnTab = false;
|
|
|
- numbersOnly = false;
|
|
|
- cursorColor = "0 0 0 255";
|
|
|
+ cursorColor = "0 0 0 255";
|
|
|
|
|
|
- // sounds
|
|
|
- soundButtonDown = $ButtonSound.fileName;
|
|
|
- soundButtonOver = "";
|
|
|
+ borderDefault = GuiDefaultBorderProfile;
|
|
|
};
|
|
|
|
|
|
-// ----------------------------------------------------------------------------
|
|
|
+if(!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile : GuiDefaultProfile);
|
|
|
|
|
|
-if (!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile : GuiDefaultProfile)
|
|
|
+if(!isObject(GuiSpriteProfile)) new GuiControlProfile (GuiSpriteProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- opaque = false;
|
|
|
- border = false;
|
|
|
+ FillColor = "255 255 255 255";
|
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
-if(!isObject(GuiSolidProfile)) new GuiControlProfile (GuiSolidProfile)
|
|
|
+if (!isObject(GuiSolidBorderProfile)) new GuiBorderProfile (GuiSolidBorderProfile : GuiDefaultBorderProfile)
|
|
|
{
|
|
|
- opaque = true;
|
|
|
- border = true;
|
|
|
-};
|
|
|
+ border = 1;
|
|
|
|
|
|
-// ----------------------------------------------------------------------------
|
|
|
+ padding = 10;
|
|
|
+ paddingHL = 10;
|
|
|
+ paddingSL = 10;
|
|
|
+ paddingNA = 10;
|
|
|
+};
|
|
|
|
|
|
-if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile : GuiDefaultProfile)
|
|
|
+if(!isObject(GuiSolidProfile)) new GuiControlProfile (GuiSolidProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- fillColor = "246 220 165 255";
|
|
|
+ // fill color
|
|
|
+ fillColor = $color1;
|
|
|
+ fillColorHL = AdjustColorValue($color1, 10);
|
|
|
+ fillColorSL = AdjustColorValue($color1, 15);
|
|
|
+ fillColorNA = SetColorAlpha($color1, 100);
|
|
|
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
+ borderDefault = GuiSolidBorderProfile;
|
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiPopupMenuItemBorder)) new GuiControlProfile (GuiPopupMenuItemBorder : GuiDefaultProfile)
|
|
|
+if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile : GuiSolidProfile)
|
|
|
{
|
|
|
- bitmap = "^Sandbox/gui/images/scroll";
|
|
|
- hasBitmapArray = true;
|
|
|
+ fillColor = SetColorAlpha($color1, 220);
|
|
|
+ fontColor = $color5;
|
|
|
+
|
|
|
+ borderDefault = GuiBrightBorderProfile;
|
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiPopUpMenuDefault)) new GuiControlProfile (GuiPopUpMenuDefault)
|
|
|
+if (!isObject(GuiPopUpMenuDefault)) new GuiControlProfile (GuiPopUpMenuDefault : GuiDefaultProfile)
|
|
|
{
|
|
|
- tab = false;
|
|
|
- canKeyFocus = false;
|
|
|
- hasBitmapArray = false;
|
|
|
- mouseOverSelected = false;
|
|
|
-
|
|
|
// fill color
|
|
|
- opaque = false;
|
|
|
fillColor = "255 255 255 192";
|
|
|
fillColorHL = "255 0 0 192";
|
|
|
+ fillColorSL = "255 0 0 192";
|
|
|
fillColorNA = "0 0 255 255";
|
|
|
|
|
|
- // border color
|
|
|
- border = 1;
|
|
|
- borderColor = "100 100 100 255";
|
|
|
- borderColorHL = "0 128 0 255";
|
|
|
- borderColorNA = "0 226 226 52";
|
|
|
-
|
|
|
- // font
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
-
|
|
|
fontColor = "27 59 95 255";
|
|
|
fontColorHL = "232 240 248 255";
|
|
|
+ fontColorSL= "255 255 255 255";
|
|
|
fontColorNA = "0 0 0 255";
|
|
|
- fontColorSEL= "255 255 255 255";
|
|
|
-
|
|
|
- // bitmap information
|
|
|
- bitmap = "^Sandbox/gui/images/scroll";
|
|
|
- hasBitmapArray = true;
|
|
|
- bitmapBase = "";
|
|
|
- textOffset = "0 0";
|
|
|
-
|
|
|
- // used by guiTextControl
|
|
|
- modal = true;
|
|
|
- align = "left";
|
|
|
- autoSizeWidth = false;
|
|
|
- autoSizeHeight = false;
|
|
|
- returnTab = false;
|
|
|
- numbersOnly = false;
|
|
|
- cursorColor = "0 0 0 255";
|
|
|
-
|
|
|
- profileForChildren = GuiPopupMenuItemBorder;
|
|
|
- // sounds
|
|
|
- soundButtonDown = "";
|
|
|
- soundButtonOver = "";
|
|
|
};
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
@@ -184,25 +191,15 @@ if (!isObject(GuiPopUpMenuProfile)) new GuiControlProfile (GuiPopUpMenuProfile :
|
|
|
textOffset = "6 3";
|
|
|
align = "center";
|
|
|
bitmap = "^Sandbox/gui/images/dropDown";
|
|
|
- hasBitmapArray = true;
|
|
|
- border = -3;
|
|
|
profileForChildren = GuiPopUpMenuDefault;
|
|
|
- opaque = true;
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile)
|
|
|
+if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- border=false;
|
|
|
-
|
|
|
- // font
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
-
|
|
|
- fontColor = "white";
|
|
|
+ fontColor = $color3;
|
|
|
|
|
|
- modal = true;
|
|
|
align = "left";
|
|
|
autoSizeWidth = false;
|
|
|
autoSizeHeight = false;
|
|
@@ -213,53 +210,38 @@ if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile)
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile)
|
|
|
+if (!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- opaque = false;
|
|
|
- fontColor = "white";
|
|
|
- fillColor = "232 232 232 255";
|
|
|
- fontColorHL = "white";
|
|
|
- border = false;
|
|
|
- borderColor = "0 0 0 255";
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
- fixedExtent = true;
|
|
|
- align = "left";
|
|
|
- bitmap = "^Sandbox/gui/images/checkBox";
|
|
|
- hasBitmapArray = true;
|
|
|
-};
|
|
|
|
|
|
-//-----------------------------------------------------------------------------
|
|
|
+ fillColor = $color3;
|
|
|
+ fillColorHL = AdjustColorValue($color3, -10);
|
|
|
+ fillColorSL = $color4;
|
|
|
+ fillColorNA = SetColorAlpha($color3, 100);
|
|
|
|
|
|
-if(!isObject(GuiConsoleProfile)) new GuiControlProfile (GuiConsoleProfile)
|
|
|
-{
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize * 1.1;
|
|
|
- fontColor = White;
|
|
|
- fontColorHL = LightSlateGray;
|
|
|
- fontColorNA = Red;
|
|
|
- fontColors[6] = "100 100 100";
|
|
|
- fontColors[7] = "100 100 0";
|
|
|
- fontColors[8] = "0 0 100";
|
|
|
- fontColors[9] = "0 100 0";
|
|
|
+ fontColor = $color3;
|
|
|
+ fontColorHL = $color4;
|
|
|
+ fontColorSL = $color5;
|
|
|
+ fontColorNA = SetColorAlpha($color3, 100);
|
|
|
+ align = "left";
|
|
|
+ tab = true;
|
|
|
+
|
|
|
+ borderDefault = "GuiBrightBorderProfile";
|
|
|
+ borderRight = "GuiDarkBorderProfile";
|
|
|
+ borderBottom = "GuiDarkBorderProfile";
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile)
|
|
|
+if (!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- fontSize = $platformFontSize;
|
|
|
- opaque = false;
|
|
|
fillColor = "232 240 248 255";
|
|
|
fillColorHL = "251 170 0 255";
|
|
|
fillColorNA = "127 127 127 52";
|
|
|
- border = -2;
|
|
|
bitmap = "^Sandbox/gui/images/textEdit.png";
|
|
|
- borderColor = "40 40 40 10";
|
|
|
fontColor = "27 59 95 255";
|
|
|
fontColorHL = "232 240 248 255";
|
|
|
fontColorNA = "0 0 0 52";
|
|
|
- fontColorSEL = "0 0 0 255";
|
|
|
+ fontColorSL = "0 0 0 255";
|
|
|
textOffset = "5 2";
|
|
|
autoSizeWidth = false;
|
|
|
autoSizeHeight = false;
|
|
@@ -277,57 +259,77 @@ if(!isObject(GuiNumberEditProfile)) new GuiControlProfile (GuiNumberEditProfile:
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if(!isObject(GuiConsoleTextEditProfile)) new GuiControlProfile (GuiConsoleTextEditProfile : GuiTextEditProfile)
|
|
|
+if(!isObject(GuiScrollTrackProfile)) new GuiControlProfile (GuiScrollTrackProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize * 1.1;
|
|
|
+ fillColor = $color1;
|
|
|
+ fillColorHL = $color1;
|
|
|
+ fillColorSL = $color1;
|
|
|
+ fillColorNA = $color1;
|
|
|
};
|
|
|
|
|
|
-//-----------------------------------------------------------------------------
|
|
|
+if (!isObject(GuiScrollBrightBorderProfile)) new GuiBorderProfile (GuiScrollBrightBorderProfile : GuiBrightBorderProfile)
|
|
|
+{
|
|
|
+ padding = 3;
|
|
|
+ paddingHL = 2;
|
|
|
+ paddingSL = 2;
|
|
|
+ paddingNA = 3;
|
|
|
+
|
|
|
+ border = 1;
|
|
|
+ borderHL = 2;
|
|
|
+ borderSL = 2;
|
|
|
+ borderNA = 1;
|
|
|
+};
|
|
|
|
|
|
-if(!isObject(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
|
|
|
+if (!isObject(GuiScrollDarkBorderProfile)) new GuiBorderProfile (GuiScrollDarkBorderProfile : GuiScrollBrightBorderProfile)
|
|
|
{
|
|
|
- opaque = true;
|
|
|
- fillColor = "255 255 255";
|
|
|
- border = 1;
|
|
|
- borderThickness = 2;
|
|
|
- bitmap = "^Sandbox/gui/images/scrollBar.png";
|
|
|
- hasBitmapArray = true;
|
|
|
+ borderColor = "0 0 0 20";
|
|
|
+ borderColorHL = "0 0 0 20";
|
|
|
+ borderColorSL = "0 0 0 20";
|
|
|
+ borderColorNA = "0 0 0 20";
|
|
|
};
|
|
|
|
|
|
-//-----------------------------------------------------------------------------
|
|
|
+if(!isObject(GuiScrollThumbProfile)) new GuiControlProfile (GuiScrollThumbProfile : GuiDefaultProfile)
|
|
|
+{
|
|
|
+ fillColor = $color3;
|
|
|
+ fillColorHL = AdjustColorValue($color3, 10);
|
|
|
+ fillColorSL = $color4;
|
|
|
+ fillColorNA = SetColorAlpha($color3, 100);
|
|
|
+
|
|
|
+ borderDefault = GuiScrollBrightBorderProfile;
|
|
|
+ borderRight = GuiScrollDarkBorderProfile;
|
|
|
+ borderBottom = GuiScrollDarkBorderProfile;
|
|
|
+};
|
|
|
+
|
|
|
+if(!isObject(GuiScrollArrowProfile)) new GuiControlProfile (GuiScrollArrowProfile : GuiScrollThumbProfile)
|
|
|
+{
|
|
|
+ fontColor = "0 0 0 100";
|
|
|
+ fontColorHL = "0 0 0 150";
|
|
|
+ fontColorSL = $color5;
|
|
|
+ fontColorNA = "0 0 0 50";
|
|
|
+
|
|
|
+ borderDefault = GuiScrollBrightBorderProfile;
|
|
|
+ borderRight = GuiScrollDarkBorderProfile;
|
|
|
+ borderBottom = GuiScrollDarkBorderProfile;
|
|
|
+};
|
|
|
|
|
|
-if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile)
|
|
|
+if(!isObject(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
|
|
|
{
|
|
|
- opaque = false;
|
|
|
- fillColor = "255 255 255";
|
|
|
- border = false;
|
|
|
- borderThickness = 2;
|
|
|
- borderColor = "0 0 0";
|
|
|
- bitmap = "^Sandbox/gui/images/scrollBar.png";
|
|
|
- hasBitmapArray = true;
|
|
|
+ fillColor = $color2;
|
|
|
+ borderDefault = GuiDefaultBorderProfile;
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if(!isObject(ConsoleScrollProfile)) new GuiControlProfile( ConsoleScrollProfile : GuiScrollProfile )
|
|
|
+if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile : GuiScrollProfile)
|
|
|
{
|
|
|
- opaque = true;
|
|
|
- fillColor = "0 0 0 120";
|
|
|
- border = 3;
|
|
|
- borderThickness = 0;
|
|
|
- borderColor = "0 0 0";
|
|
|
+ fillColor = "255 255 255 0";
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
if(!isObject(GuiToolboxProfile)) new GuiControlProfile( GuiToolboxProfile : GuiScrollProfile )
|
|
|
{
|
|
|
- opaque = true;
|
|
|
fillColor = "255 255 255 220";
|
|
|
- border = 3;
|
|
|
- borderThickness = 0;
|
|
|
- borderColor = "0 0 0";
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
@@ -335,28 +337,19 @@ if(!isObject(GuiToolboxProfile)) new GuiControlProfile( GuiToolboxProfile : GuiS
|
|
|
if(!isObject(SandboxWindowProfile)) new GuiControlProfile (SandboxWindowProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
// fill color
|
|
|
- opaque = false;
|
|
|
- fillColor = "0 0 0 92";
|
|
|
+ fillColor = "0 0 0 100";
|
|
|
|
|
|
// font
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
fontColor = "255 255 255 255";
|
|
|
lockMouse = "0";
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
|
|
|
+if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- opaque = true;
|
|
|
- border = -1;
|
|
|
- fontColor = "white";
|
|
|
- fontColorHL = "229 229 229 255";
|
|
|
- fixedExtent = true;
|
|
|
- align = "center";
|
|
|
- canKeyFocus = false;
|
|
|
- fontType = $platformFontType;
|
|
|
+ fontColor = "255 255 255 255";
|
|
|
+ fontColorHL = $color5;
|
|
|
bitmap = "^Sandbox/gui/images/smallButtonContainer";
|
|
|
};
|
|
|
|
|
@@ -364,10 +357,8 @@ if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile)
|
|
|
|
|
|
if (!isObject(BlueButtonProfile)) new GuiControlProfile (BlueButtonProfile : GuiButtonProfile)
|
|
|
{
|
|
|
- fontSize = $platformFontSize;
|
|
|
- fontColor = "255 255 255 255";
|
|
|
+ fontColor = "240 240 240 255";
|
|
|
fontColorHL = "255 255 255 255";
|
|
|
- align = "center";
|
|
|
bitmap = "^Sandbox/gui/images/blueButton.png";
|
|
|
};
|
|
|
|
|
@@ -375,8 +366,7 @@ if (!isObject(BlueButtonProfile)) new GuiControlProfile (BlueButtonProfile : Gui
|
|
|
|
|
|
if (!isObject(RedButtonProfile)) new GuiControlProfile (RedButtonProfile : GuiButtonProfile)
|
|
|
{
|
|
|
- fontSize = $platformFontSize;
|
|
|
- fontColor = "255 255 255 255";
|
|
|
+ fontColor = "240 240 240 255";
|
|
|
fontColorHL = "255 255 255 255";
|
|
|
bitmap = "^Sandbox/gui/images/redButton.png";
|
|
|
};
|
|
@@ -385,8 +375,7 @@ if (!isObject(RedButtonProfile)) new GuiControlProfile (RedButtonProfile : GuiBu
|
|
|
|
|
|
if (!isObject(GreenButtonProfile)) new GuiControlProfile (GreenButtonProfile : GuiButtonProfile)
|
|
|
{
|
|
|
- fontSize = $platformFontSize;
|
|
|
- fontColor = "255 255 255 255";
|
|
|
+ fontColor = "240 240 240 255";
|
|
|
fontColorHL = "255 255 255 255";
|
|
|
bitmap = "^Sandbox/gui/images/greenButton.png";
|
|
|
};
|
|
@@ -396,9 +385,7 @@ if (!isObject(GreenButtonProfile)) new GuiControlProfile (GreenButtonProfile : G
|
|
|
if (!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
fillColor = "232 232 232 255";
|
|
|
- fixedExtent = true;
|
|
|
bitmap = "^Sandbox/gui/images/radioButton.png";
|
|
|
- hasBitmapArray = true;
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
@@ -422,26 +409,23 @@ if (!isObject(GuiSliderNoTextProfile)) new GuiControlProfile (GuiSliderNoTextPro
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiSpinnerProfile)) new GuiControlProfile (GuiSpinnerProfile)
|
|
|
+if (!isObject(GuiSpinnerProfile)) new GuiControlProfile (GuiSpinnerProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- fontType = $platformFontType;
|
|
|
- fontSize = $platformFontSize;
|
|
|
- opaque = false;
|
|
|
- align = "center";
|
|
|
- fillColor = "232 240 248 255";
|
|
|
- fillColorHL = "251 170 0 255";
|
|
|
- fillColorNA = "127 127 127 52";
|
|
|
+ fillColor = $color3;
|
|
|
+ fillColorHL = $color5;
|
|
|
+ fillColorSL = $color3;
|
|
|
+ fillColorNA = SetColorAlpha(%this.color3, 100);
|
|
|
numbersOnly = true;
|
|
|
- border = -2;
|
|
|
- bitmap = "^Sandbox/gui/images/textEdit_noSides";
|
|
|
- borderColor = "40 40 40 10";
|
|
|
- fontColor = "27 59 95 255";
|
|
|
- fontColorHL = "232 240 248 255";
|
|
|
- fontColorNA = "0 0 0 52";
|
|
|
- fontColorSEL = "0 0 0 255";
|
|
|
- textOffset = "4 2";
|
|
|
- autoSizeWidth = false;
|
|
|
- autoSizeHeight = false;
|
|
|
+
|
|
|
+ fontSize = $platformFontSize + 2;
|
|
|
+ fontColor = $color1;
|
|
|
+ fontColorHL = $color4;
|
|
|
+ fontColorSL = $color1;
|
|
|
+ fontColorNA = SetColorAlpha($color1, 100);
|
|
|
+
|
|
|
+ borderTop = "GuiDarkBorderProfile";
|
|
|
+ borderBottom = "GuiBrightBorderProfile";
|
|
|
+
|
|
|
tab = false;
|
|
|
canKeyFocus = true;
|
|
|
returnTab = true;
|
|
@@ -449,24 +433,26 @@ if (!isObject(GuiSpinnerProfile)) new GuiControlProfile (GuiSpinnerProfile)
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
-if (!isObject(GuiLightScrollProfile)) new GuiControlProfile (GuiLightScrollProfile : GuiScrollProfile)
|
|
|
+if (!isObject(GuiSunkenContainerProfile)) new GuiControlProfile (GuiSunkenContainerProfile : GuiSolidProfile)
|
|
|
{
|
|
|
- opaque = false;
|
|
|
- fillColor = "212 216 220";
|
|
|
- border = 0;
|
|
|
- bitmap = "^Sandbox/gui/images/scrollBar";
|
|
|
- hasBitmapArray = true;
|
|
|
+ fillColor = SetColorAlpha($color1, 150);
|
|
|
};
|
|
|
|
|
|
-//-----------------------------------------------------------------------------
|
|
|
+if (!isObject(GuiHeaderProfile)) new GuiControlProfile (GuiHeaderProfile : GuiSolidProfile)
|
|
|
+{
|
|
|
+ fillColor = $color2;
|
|
|
+ fontColor = $color3;
|
|
|
+ fontSize = $platformFontSize + 2;
|
|
|
+ align = "left";
|
|
|
+
|
|
|
+ borderDefault = "GuiBrightBorderProfile";
|
|
|
+ borderRight = "GuiDarkBorderProfile";
|
|
|
+ borderBottom = "GuiDarkBorderProfile";
|
|
|
+};
|
|
|
|
|
|
-if (!isObject(GuiSunkenContainerProfile)) new GuiControlProfile (GuiSunkenContainerProfile)
|
|
|
+if (!isObject(GuiLabelProfile)) new GuiControlProfile (GuiLabelProfile : GuiDefaultProfile)
|
|
|
{
|
|
|
- opaque = false;
|
|
|
- fillColor = "232 240 248 255";
|
|
|
- fillColorHL = "251 170 0 255";
|
|
|
- fillColorNA = "127 127 127 52";
|
|
|
- border = -2;
|
|
|
- bitmap = "^Sandbox/gui/images/sunkenContainer";
|
|
|
- borderColor = "40 40 40 10";
|
|
|
+ fontColor = "255 255 255 255";
|
|
|
+ fontSize = $platformFontSize;
|
|
|
+ align = "left";
|
|
|
};
|