123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821 |
- //-----------------------------------------------------------------------------
- // Copyright (c) 2013 GarageGames, LLC
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to
- // deal in the Software without restriction, including without limitation the
- // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- // sell copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- // IN THE SOFTWARE.
- //-----------------------------------------------------------------------------
- if ($platform $= "windows")
- $platformFontType = "share tech mono";
- else if ($platform $= "Android")
- $platformFontType = "Droid";
- else
- $platformFontType = "monaco";
- if ($platform $= "ios")
- $platformFontSize = 18;
- else if ($platform $= "Android")
- $platformFontSize = 14;
- 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";
- $color[6] = "196 54 71 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)
- {
- hotSpot = "1 1";
- renderOffset = "0 0";
- bitmapName = "^AppCore/gui/images/cursors/defaultCursor";
- };
- new GuiCursor(LeftRightCursor)
- {
- hotSpot = "0.5 0";
- renderOffset = "0.5 0";
- bitmapName = "^AppCore/gui/images/cursors/leftRight";
- };
- new GuiCursor(UpDownCursor)
- {
- hotSpot = "1 1";
- renderOffset = "0 1";
- bitmapName = "^AppCore/gui/images/cursors/upDown";
- };
- new GuiCursor(NWSECursor)
- {
- hotSpot = "1 1";
- renderOffset = "0.5 0.5";
- bitmapName = "^AppCore/gui/images/cursors/NWSE";
- };
- new GuiCursor(NESWCursor)
- {
- hotSpot = "1 1";
- renderOffset = "0.5 0.5";
- bitmapName = "^AppCore/gui/images/cursors/NESW";
- };
- new GuiCursor(MoveCursor)
- {
- hotSpot = "1 1";
- renderOffset = "0.5 0.5";
- bitmapName = "^AppCore/gui/images/cursors/move";
- };
- new GuiCursor(EditCursor)
- {
- hotSpot = "0 0";
- renderOffset = "0.5 0.5";
- bitmapName = "^AppCore/gui/images/cursors/ibeam";
- };
- //The Torque gods will be displeased if you change the default gui profile! Consider making a new child profile instead.
- if (!isObject(GuiDefaultBorderProfile)) new GuiBorderProfile (GuiDefaultBorderProfile)
- {
- // Default margin
- margin = 0;
- marginHL = 0;
- marginSL = 0;
- marginNA = 0;
- //Default Border
- border = 0;
- borderHL = 0;
- borderSL = 0;
- borderNA = 0;
- //Default border color
- borderColor = $color1;
- borderColorHL = AdjustColorValue($color1, 10);
- borderColorSL = AdjustColorValue($color1, 10);
- borderColorNA = SetColorAlpha($color1, 100);
- //Default Padding
- padding = 0;
- paddingHL = 0;
- paddingSL = 0;
- paddingNA = 0;
- //Default underfill
- underfill = true;
- };
- if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
- {
- // fill color
- fillColor = "0 0 0 0";
- // font
- fontType = $platformFontType;
- fontDirectory = expandPath( "^AppCore/fonts" );
- 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;
- 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";
- 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(GuiPanelProfile)) new GuiControlProfile (GuiPanelProfile : GuiDefaultProfile)
- {
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = AdjustColorValue($color1, 15);
- fillColorNA = SetColorAlpha($color1, 100);
- borderDefault = GuiBrightBorderProfile;
- category = "defaultPanel";
- };
- if (!isObject(GuiListBoxBorderProfile)) new GuiBorderProfile (GuiListBoxBorderProfile : GuiDefaultBorderProfile)
- {
- margin = 1;
- marginHL = 1;
- marginSL = 1;
- marginNA = 1;
- padding = 4;
- paddingHL = 4;
- paddingSL = 4;
- paddingNA = 4;
- };
- if(!isObject(GuiListBoxProfile)) new GuiControlProfile (GuiListBoxProfile : GuiDefaultProfile)
- {
- // fill color
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = $color4;
- fillColorNA = SetColorAlpha($color1, 100);
- align = left;
- tab = false;
- canKeyFocus = true;
- category = "defaultListBox";
- fontColor = $color3;
- fontColorHL = AdjustColorValue($color3, 20);
- fontColorSL = AdjustColorValue($color3, 20);
- fontColorNA = AdjustColorValue($color3, -30);
- borderDefault = GuiListBoxBorderProfile;
- };
- if(!isObject(GuiWindowBorderProfile)) new GuiBorderProfile (GuiWindowBorderProfile : GuiDefaultBorderProfile)
- {
- padding = 10;
- paddingHL = 10;
- paddingSL = 10;
- paddingNA = 4;
- };
- if(!isObject(GuiWindowProfile)) new GuiControlProfile (GuiWindowProfile : GuiDefaultProfile)
- {
- fillColor = AdjustColorValue($color1, 10);
- fillColorHL = AdjustColorValue($color1, 12);
- fillColorSL = $color4;
- fillColorNA = $color1;
- category = "defaultWindow";
- align = "Left";
- fontColorSL = $color5;
- borderLeft = GuiWindowBorderProfile;
- };
- if(!isObject(GuiWindowContentBorderProfile)) new GuiBorderProfile (GuiWindowContentBorderProfile : GuiDefaultBorderProfile)
- {
- borderColor = AdjustColorValue($color1, 10);
- borderColorSL = AdjustColorValue($color4, -10);
- border = 3;
- borderSL = 3;
- };
- if(!isObject(GuiWindowContentProfile)) new GuiControlProfile (GuiWindowContentProfile : GuiDefaultProfile)
- {
- fillColor = AdjustColorValue($color1, -10);
- fillColorSL = AdjustColorValue($color1, -10);
- borderDefault = GuiWindowContentBorderProfile;
- borderTop = GuiDefaultBorderProfile;
- };
- if(!isObject(GuiWindowButtonBorderProfile)) new GuiBorderProfile (GuiWindowButtonBorderProfile : GuiDefaultBorderProfile)
- {
- margin = 1;
- marginHL = 1;
- marginSL = 1;
- marginNA = 1;
- padding = 3;
- paddingHL = 3;
- paddingSL = 3;
- paddingNA = 3;
- };
- if(!isObject(GuiWindowCloseButtonProfile)) new GuiControlProfile (GuiWindowCloseButtonProfile : GuiDefaultProfile)
- {
- fillColor = SetColorAlpha($color1, 150);
- fillColorHL = SetColorAlpha($color6, 150);
- fillColorSL = AdjustColorValue($color6, 10);
- fillColorNA = $color1;
- fontColor = SetColorAlpha($color3, 150);
- fontColorHL = SetColorAlpha($color3, 170);
- fontColorSL = $color5;
- fontColorNA = SetColorAlpha($color3, 150);
- borderDefault = GuiWindowButtonBorderProfile;
- };
- if(!isObject(GuiWindowMinButtonProfile)) new GuiControlProfile (GuiWindowMinButtonProfile : GuiWindowCloseButtonProfile)
- {
- fillColorHL = SetColorAlpha($color4, 150);
- fillColorSL = AdjustColorValue($color4, 10);
- };
- if(!isObject(GuiWindowMaxButtonProfile)) new GuiControlProfile (GuiWindowMaxButtonProfile : GuiWindowMinButtonProfile);
- if(!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile : GuiDefaultProfile);
- if(!isObject(GuiGridProfile)) new GuiControlProfile (GuiGridProfile : GuiDefaultProfile);
- if(!isObject(GuiChainProfile)) new GuiControlProfile (GuiChainProfile : GuiDefaultProfile);
- if(!isObject(GuiTabBookProfile)) new GuiControlProfile (GuiTabBookProfile : GuiDefaultProfile)
- {
- fillColor = SetColorAlpha($color1, 100);
- category = "defaultTabBook";
- };
- if(!isObject(GuiTabProfile)) new GuiControlProfile (GuiTabProfile : GuiDefaultProfile)
- {
- fontColor = "255 255 255 255";
- fontColorHL = "232 240 248 255";
- fontColorSL= "255 255 255 255";
- fontColorNA = "0 0 0 255";
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = AdjustColorValue($color1, 15);
- fillColorNA = SetColorAlpha($color1, 100);
- borderDefault = GuiBrightBorderProfile;
- align = Center;
- category = "defaultTab";
- };
- if(!isObject(GuiTabPageProfile)) new GuiControlProfile (GuiTabPageProfile : GuiDefaultProfile)
- {
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = AdjustColorValue($color1, 15);
- fillColorNA = SetColorAlpha($color1, 100);
- category = "defaultTabPage";
- };
- if(!isObject(GuiSpriteProfile)) new GuiControlProfile (GuiSpriteProfile : GuiDefaultProfile);
- if (!isObject(GuiTreeViewProfile)) new GuiControlProfile (GuiTreeViewProfile : GuiDefaultProfile)
- {
- fontColor = "255 255 255 255";
- fontColorHL = "232 240 248 255";
- fontColorSL= "255 255 255 255";
- fontColorNA = "0 0 0 255";
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = AdjustColorValue($color1, 15);
- fillColorNA = SetColorAlpha($color1, 100);
- bitmap = "./images/treeView";
- canKeyFocus = true;
- autoSizeHeight = true;
- };
- if (!isObject(GuiSolidBorderProfile)) new GuiBorderProfile (GuiSolidBorderProfile : GuiDefaultBorderProfile)
- {
- border = 1;
- padding = 10;
- paddingHL = 10;
- paddingSL = 10;
- paddingNA = 10;
- };
- if(!isObject(GuiSolidProfile)) new GuiControlProfile (GuiSolidProfile : GuiDefaultProfile)
- {
- // fill color
- fillColor = $color1;
- fillColorHL = AdjustColorValue($color1, 10);
- fillColorSL = AdjustColorValue($color1, 15);
- fillColorNA = SetColorAlpha($color1, 100);
- borderDefault = GuiSolidBorderProfile;
- };
- if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile : GuiSolidProfile)
- {
- fillColor = SetColorAlpha($color1, 220);
- fontColor = $color5;
- borderDefault = GuiBrightBorderProfile;
- };
- if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile : GuiDefaultProfile)
- {
- fontColor = $color3;
- align = "left";
- autoSizeWidth = false;
- autoSizeHeight = false;
- returnTab = false;
- numbersOnly = false;
- cursorColor = "0 0 0 255";
- };
- if(!isObject(GuiTextArrayProfile)) new GuiControlProfile (GuiTextArrayProfile : GuiTextProfile)
- {
- fontColorHL = $color3;
- fillColorHL = AdjustColorValue($color1, 10);
- };
- if (!isObject(GuiTextRightProfile)) new GuiControlProfile (GuiTextRightProfile : GuiTextProfile)
- {
- align = "right";
- };
- if (!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile : GuiDefaultProfile)
- {
- fillColor = $color3;
- fillColorHL = AdjustColorValue($color3, -10);
- fillColorSL = $color4;
- fillColorNA = SetColorAlpha($color3, 100);
- fontColor = $color3;
- fontColorHL = AdjustColorValue($color5, -10);
- fontColorSL = $color5;
- fontColorNA = SetColorAlpha($color3, 100);
- align = "left";
- tab = true;
- borderDefault = "GuiBrightBorderProfile";
- borderRight = "GuiDarkBorderProfile";
- borderBottom = "GuiDarkBorderProfile";
- };
- if (!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile : GuiDefaultProfile)
- {
- fillColor = "232 240 248 255";
- fillColorHL = "242 250 255 255";
- fillColorNA = "127 127 127 52";
- fillColorTextSL = "251 170 0 255";
- fontColor = "27 59 95 255";
- fontColorHL = "27 59 95 255";
- fontColorNA = "0 0 0 52";
- fontColorSL = "0 0 0 255";
- textOffset = "5 2";
- autoSizeWidth = false;
- autoSizeHeight = false;
- tab = false;
- canKeyFocus = true;
- returnTab = true;
- };
- if(!isObject(GuiScrollTrackProfile)) new GuiControlProfile (GuiScrollTrackProfile : GuiDefaultProfile)
- {
- 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(GuiScrollDarkBorderProfile)) new GuiBorderProfile (GuiScrollDarkBorderProfile : GuiScrollBrightBorderProfile)
- {
- 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(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
- {
- fillColor = $color2;
- borderDefault = GuiDefaultBorderProfile;
- };
- if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile : GuiScrollProfile)
- {
- fillColor = "255 255 255 0";
- };
- if (!isObject(GuiDarkButtonBorderProfile)) new GuiBorderProfile (GuiDarkButtonBorderProfile : GuiDarkBorderProfile)
- {
- padding = 4;
- paddingHL = 4;
- paddingSL = 4;
- paddingNA = 4;
- border = 3;
- borderHL = 3;
- borderSL = 3;
- borderNA = 3;
- };
- if (!isObject(GuiBrightButtonBorderProfile)) new GuiBorderProfile (GuiBrightButtonBorderProfile : GuiBrightBorderProfile)
- {
- padding = 4;
- paddingHL = 4;
- paddingSL = 4;
- paddingNA = 4;
- border = 3;
- borderHL = 3;
- borderSL = 3;
- borderNA = 3;
- };
- if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile : GuiDefaultProfile)
- {
- fillColor = $color3;
- fillColorHL = AdjustColorValue($color3, 10);
- fillColorSL = AdjustColorValue($color3, 15);
- fillColorNA = SetColorAlpha($color3, 80);
- fontColor = $color1;
- fontColorHL = $color4;
- fontColorSL = $color1;
- fontColorNA = SetColorAlpha($color1, 100);
- align = center;
- vAlign = middle;
- borderLeft = GuiBrightButtonBorderProfile;
- borderRight = GuiDarkButtonBorderProfile;
- borderTop = GuiBrightButtonBorderProfile;
- borderBottom = GuiDarkButtonBorderProfile;
- canKeyFocus = true;
- tab = true;
- };
- if (!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile : GuiDefaultProfile)
- {
- fillColor = $color3;
- fillColorHL = AdjustColorValue($color3, -10);
- fillColorSL = $color4;
- fillColorNA = SetColorAlpha($color3, 100);
- fontColor = $color3;
- fontColorHL = AdjustColorValue($color5, -10);
- fontColorSL = $color5;
- fontColorNA = SetColorAlpha($color3, 100);
- align = "left";
- tab = true;
- borderLeft = GuiBrightButtonBorderProfile;
- borderRight = GuiDarkButtonBorderProfile;
- borderTop = GuiBrightButtonBorderProfile;
- borderBottom = GuiDarkButtonBorderProfile;
- canKeyFocus = true;
- tab = true;
- };
- if (!isObject(GuiHeaderProfile)) new GuiControlProfile (GuiHeaderProfile : GuiSolidProfile)
- {
- fillColor = $color2;
- fontColor = $color3;
- fontSize = $platformFontSize + 2;
- align = "left";
- borderDefault = "GuiBrightBorderProfile";
- borderRight = "GuiDarkBorderProfile";
- borderBottom = "GuiDarkBorderProfile";
- };
- if (!isObject(GuiLabelProfile)) new GuiControlProfile (GuiLabelProfile : GuiDefaultProfile)
- {
- fontColor = "255 255 255 255";
- fontSize = $platformFontSize;
- align = "left";
- };
- if(!isObject(GuiDragAndDropProfile)) new GuiControlProfile (GuiDragAndDropProfile : GuiDefaultProfile)
- {
- fillColor = SetColorAlpha($color4, 50);
- fontColor = $color5;
- };
- if (!isObject(GuiProgressBorderProfile)) new GuiBorderProfile (GuiProgressBorderProfile : GuiDefaultBorderProfile)
- {
- padding = 2;
- paddingHL = 0;
- paddingSL = 0;
- border = 2;
- borderHL = 2;
- borderSL = 2;
- margin = 0;
- marginHL = 3;
- marginSL = 3;
- borderColor = AdjustColorValue($color1, -10);
- borderColorHL = "255 255 255 50";
- borderColorSL = "255 255 255 50";
- };
- if (!isObject(GuiProgressDarkBorderProfile)) new GuiBorderProfile (GuiProgressDarkBorderProfile : GuiProgressBorderProfile)
- {
- borderColorHL = "0 0 0 50";
- borderColorSL = "0 0 0 50";
- };
- if(!isObject(GuiProgressProfile)) new GuiControlProfile (GuiProgressProfile : GuiDefaultProfile)
- {
- fillColor = $color1;
- fillColorHL = $color4;
- fillColorSL = AdjustColorValue($color4, 10);
- fontColorHL = $color3;
- fontColorSL = $color5;
- borderDefault = GuiProgressBorderProfile;
- borderBottom = GuiProgressDarkBorderProfile;
- borderRight = GuiProgressDarkBorderProfile;
- };
- if (!isObject(GuiDropDownDarkBorderProfile)) new GuiBorderProfile (GuiDropDownDarkBorderProfile : GuiDarkBorderProfile)
- {
- padding = 4;
- paddingHL = 4;
- paddingSL = 4;
- paddingNA = 4;
- };
- if (!isObject(GuiDropDownBrightBorderProfile)) new GuiBorderProfile (GuiDropDownBrightBorderProfile : GuiBrightBorderProfile)
- {
- padding = 4;
- paddingHL = 4;
- paddingSL = 4;
- paddingNA = 4;
- };
- if(!isObject(GuiDropDownProfile)) new GuiControlProfile (GuiDropDownProfile : GuiDefaultProfile)
- {
- // fill color
- fillColor = AdjustColorValue($color3, -15);
- fillColorHL = AdjustColorValue($color3, -8);
- fillColorSL = $color4;
- fillColorNA = SetColorAlpha($color3, 100);
- fontColor = $color1;
- fontColorHL = $color1;
- fontColorSL = $color3;
- fontColorNA = SetColorAlpha($color1, 100);
- align = "left";
- tab = true;
- canKeyFocus = true;
- borderDefault = GuiDropDownBrightBorderProfile;
- borderRight = GuiDropDownDarkBorderProfile;
- borderBottom = GuiDropDownDarkBorderProfile;
- category = "dropDown";
- };
- if (!isObject(GuiMenuBarBorderProfile)) new GuiBorderProfile (GuiMenuBarBorderProfile : GuiDefaultBorderProfile)
- {
- padding = 2;
- };
- if(!isObject(GuiMenuBarProfile)) new GuiControlProfile (GuiMenuBarProfile : GuiDefaultProfile)
- {
- fillColor = AdjustColorValue($color1, -7);
- canKeyFocus = true;
- borderDefault = GuiMenuBarBorderProfile;
- category = "defaultMenuBar";
- };
- if (!isObject(GuiMenuBorderProfile)) new GuiBorderProfile (GuiMenuBorderProfile : GuiDefaultBorderProfile)
- {
- margin = 2;
- marginHL = 0;
- marginSL = 0;
- marginNA = 2;
- border = 0;
- borderHL = 2;
- borderSL = 2;
- borderNA = 0;
- borderColorHL = "255 255 255 30";
- borderColorSL = $color4;
- };
- if (!isObject(GuiMenuBottomBorderProfile)) new GuiBorderProfile (GuiMenuBottomBorderProfile : GuiMenuBorderProfile)
- {
- paddingSL = 2;
- marginSL = 0;
- borderSL = 0;
- };
- if (!isObject(GuiMenuSideBorderProfile)) new GuiBorderProfile (GuiMenuSideBorderProfile : GuiDefaultBorderProfile)
- {
- border = 0;
- borderHL = 2;
- borderSL = 2;
- borderNA = 0;
- padding = 10;
- paddingHL = 8;
- paddingSL = 8;
- paddingNA = 10;
- borderColorHL = "255 255 255 30";
- borderColorSL = $color4;
- };
- if(!isObject(GuiMenuProfile)) new GuiControlProfile (GuiMenuProfile : GuiDefaultProfile)
- {
- fillColor = "0 0 0 0";
- fillColorHL = "255 255 255 10";
- fillColorSL = AdjustColorValue($color4, -15);
- fillColorNA = "0 0 0 0";
- borderDefault = GuiMenuBorderProfile;
- borderLeft = GuiMenuSideBorderProfile;
- borderRight = GuiMenuSideBorderProfile;
- borderBottom = GuiMenuBottomBorderProfile;
- category = "defaultMenuBar";
- fontColor = $color3;
- fontColorHL = AdjustColorValue($color3, 10);
- fontColorSL = $color3;
- fontColorNA = SetColorAlpha($color3, 100);
- };
- if (!isObject(GuiMenuContentVertBorderProfile)) new GuiBorderProfile (GuiMenuContentVertBorderProfile : GuiDefaultBorderProfile)
- {
- border = 2;
- padding = 4;
- borderColor = $color4;
- };
- if (!isObject(GuiMenuContentSideBorderProfile)) new GuiBorderProfile (GuiMenuContentSideBorderProfile : GuiDefaultBorderProfile)
- {
- border = 2;
- padding = 0;
- borderColor = $color4;
- };
- if(!isObject(GuiMenuContentProfile)) new GuiControlProfile (GuiMenuContentProfile : GuiDefaultBorderProfile)
- {
- fillColor = AdjustColorValue($color1, -5);
- borderDefault = GuiMenuContentSideBorderProfile;
- borderTop = GuiMenuContentVertBorderProfile;
- borderBottom = GuiMenuContentVertBorderProfile;
- };
- if (!isObject(GuiMenuItemBorderTopProfile)) new GuiBorderProfile (GuiMenuItemBorderTopProfile : GuiDefaultBorderProfile)
- {
- padding = 6;
- paddingHL = 6;
- paddingSL = 0;
- paddingNA = 6;
- marginSL = 4;
- borderSL = 1;
- borderColorSL = "0 0 0 50";
- };
- if (!isObject(GuiMenuItemBorderBottomProfile)) new GuiBorderProfile (GuiMenuItemBorderBottomProfile : GuiMenuItemBorderTopProfile)
- {
- borderColorSL = "255 255 255 50";
- };
- if (!isObject(GuiMenuItemBorderSideProfile)) new GuiBorderProfile (GuiMenuItemBorderSideProfile : GuiMenuItemBorderTopProfile)
- {
- marginSL = 0;
- borderSL = 0;
- paddingSL = 6;
- };
- if(!isObject(GuiMenuItemProfile)) new GuiControlProfile (GuiMenuItemProfile : GuiDefaultProfile)
- {
- fillColor = AdjustColorValue($color1, -5);
- fillColorHL = AdjustColorValue($color4, -15);
- fillColorNA = $color1;
- align = left;
- fontColor = $color3;
- fontColorHL = AdjustColorValue($color3, 10);
- fontColorNA = SetColorAlpha($color3, 150);
- borderDefault = GuiMenuItemBorderSideProfile;
- borderTop = GuiMenuItemBorderTopProfile;
- borderBottom = GuiMenuItemBorderBottomProfile;
- };
|