guiProfiles.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2013 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. if ($platform $= "windows")
  23. $platformFontType = "share tech mono";
  24. else if ($platform $= "Android")
  25. $platformFontType = "Droid";
  26. else
  27. $platformFontType = "monaco";
  28. if ($platform $= "ios")
  29. $platformFontSize = 18;
  30. else if ($platform $= "Android")
  31. $platformFontSize = 14;
  32. else
  33. $platformFontSize = 12;
  34. $color[1] = "43 43 43 255";
  35. $color[2] = "81 92 102 255";
  36. $color[3] = "224 224 224 255";
  37. $color[4] = "54 135 196 255";
  38. $color[5] = "245 210 50 255";
  39. $color[6] = "196 54 71 255";
  40. function AdjustColorValue(%color, %percent)
  41. {
  42. %red = getWord(%color, 0);
  43. %green = getWord(%color, 1);
  44. %blue = getWord(%color, 2);
  45. %alpha = getWord(%color, 3);
  46. %largest = mGetMax(%red, mGetMax(%blue, %green));
  47. %currentValue = %largest / 255;
  48. %fullRed = %red / %currentValue;
  49. %fullGreen = %green / %currentValue;
  50. %fullBlue = %blue / %currentValue;
  51. %newValue = %currentValue += (%percent/100);
  52. %newValue = mClamp(%newValue, 0, 100);
  53. %newColor = mRound(mClamp((%fullRed * %newValue), 0, 255)) SPC
  54. mRound(mClamp((%fullGreen * %newValue), 0, 255)) SPC
  55. mRound(mClamp((%fullBlue * %newValue), 0, 255)) SPC %alpha;
  56. return %newColor;
  57. }
  58. function SetColorAlpha(%color, %newAlpha)
  59. {
  60. %red = getWord(%color, 0);
  61. %green = getWord(%color, 1);
  62. %blue = getWord(%color, 2);
  63. return %red SPC %green SPC %blue SPC mRound(mClamp(%newAlpha, 0, 255));
  64. }
  65. //-----------------------------------------------------------------------------
  66. new GuiCursor(DefaultCursor)
  67. {
  68. hotSpot = "1 1";
  69. renderOffset = "0 0";
  70. bitmapName = "^AppCore/gui/images/cursors/defaultCursor";
  71. };
  72. new GuiCursor(LeftRightCursor)
  73. {
  74. hotSpot = "0.5 0";
  75. renderOffset = "0.5 0";
  76. bitmapName = "^AppCore/gui/images/cursors/leftRight";
  77. };
  78. new GuiCursor(UpDownCursor)
  79. {
  80. hotSpot = "1 1";
  81. renderOffset = "0 1";
  82. bitmapName = "^AppCore/gui/images/cursors/upDown";
  83. };
  84. new GuiCursor(NWSECursor)
  85. {
  86. hotSpot = "1 1";
  87. renderOffset = "0.5 0.5";
  88. bitmapName = "^AppCore/gui/images/cursors/NWSE";
  89. };
  90. new GuiCursor(NESWCursor)
  91. {
  92. hotSpot = "1 1";
  93. renderOffset = "0.5 0.5";
  94. bitmapName = "^AppCore/gui/images/cursors/NESW";
  95. };
  96. new GuiCursor(MoveCursor)
  97. {
  98. hotSpot = "1 1";
  99. renderOffset = "0.5 0.5";
  100. bitmapName = "^AppCore/gui/images/cursors/move";
  101. };
  102. new GuiCursor(EditCursor)
  103. {
  104. hotSpot = "0 0";
  105. renderOffset = "0.5 0.5";
  106. bitmapName = "^AppCore/gui/images/cursors/ibeam";
  107. };
  108. //The Torque gods will be displeased if you change the default gui profile! Consider making a new child profile instead.
  109. if (!isObject(GuiDefaultBorderProfile)) new GuiBorderProfile (GuiDefaultBorderProfile)
  110. {
  111. // Default margin
  112. margin = 0;
  113. marginHL = 0;
  114. marginSL = 0;
  115. marginNA = 0;
  116. //Default Border
  117. border = 0;
  118. borderHL = 0;
  119. borderSL = 0;
  120. borderNA = 0;
  121. //Default border color
  122. borderColor = $color1;
  123. borderColorHL = AdjustColorValue($color1, 10);
  124. borderColorSL = AdjustColorValue($color1, 10);
  125. borderColorNA = SetColorAlpha($color1, 100);
  126. //Default Padding
  127. padding = 0;
  128. paddingHL = 0;
  129. paddingSL = 0;
  130. paddingNA = 0;
  131. //Default underfill
  132. underfill = true;
  133. };
  134. if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
  135. {
  136. // fill color
  137. fillColor = "0 0 0 0";
  138. // font
  139. fontType = $platformFontType;
  140. fontDirectory = expandPath( "^AppCore/fonts" );
  141. fontSize = $platformFontSize;
  142. fontColor = "255 255 255 255";
  143. align = center;
  144. vAlign = middle;
  145. cursorColor = "0 0 0 255";
  146. borderDefault = GuiDefaultBorderProfile;
  147. category = "default";
  148. };
  149. if (!isObject(GuiBrightBorderProfile)) new GuiBorderProfile (GuiBrightBorderProfile : GuiDefaultBorderProfile)
  150. {
  151. border = 2;
  152. borderHL = 2;
  153. borderSL = 2;
  154. borderNA = 2;
  155. borderColor = "255 255 255 50";
  156. borderColorHL = "255 255 255 50";
  157. borderColorSL = "255 255 255 50";
  158. borderColorNA = "255 255 255 50";
  159. underfill = true;
  160. };
  161. if (!isObject(GuiDarkBorderProfile)) new GuiBorderProfile (GuiDarkBorderProfile : GuiBrightBorderProfile)
  162. {
  163. borderColor = "0 0 0 50";
  164. borderColorHL = "0 0 0 50";
  165. borderColorSL = "0 0 0 50";
  166. borderColorNA = "0 0 0 50";
  167. };
  168. if(!isObject(GuiPanelProfile)) new GuiControlProfile (GuiPanelProfile : GuiDefaultProfile)
  169. {
  170. fillColor = $color1;
  171. fillColorHL = AdjustColorValue($color1, 10);
  172. fillColorSL = AdjustColorValue($color1, 15);
  173. fillColorNA = SetColorAlpha($color1, 100);
  174. borderDefault = GuiBrightBorderProfile;
  175. category = "defaultPanel";
  176. };
  177. if (!isObject(GuiListBoxBorderProfile)) new GuiBorderProfile (GuiListBoxBorderProfile : GuiDefaultBorderProfile)
  178. {
  179. margin = 1;
  180. marginHL = 1;
  181. marginSL = 1;
  182. marginNA = 1;
  183. padding = 4;
  184. paddingHL = 4;
  185. paddingSL = 4;
  186. paddingNA = 4;
  187. };
  188. if(!isObject(GuiListBoxProfile)) new GuiControlProfile (GuiListBoxProfile : GuiDefaultProfile)
  189. {
  190. // fill color
  191. fillColor = $color1;
  192. fillColorHL = AdjustColorValue($color1, 10);
  193. fillColorSL = $color4;
  194. fillColorNA = SetColorAlpha($color1, 100);
  195. align = left;
  196. tab = false;
  197. canKeyFocus = true;
  198. category = "defaultListBox";
  199. fontColor = $color3;
  200. fontColorHL = AdjustColorValue($color3, 20);
  201. fontColorSL = AdjustColorValue($color3, 20);
  202. fontColorNA = AdjustColorValue($color3, -30);
  203. borderDefault = GuiListBoxBorderProfile;
  204. };
  205. if(!isObject(GuiWindowBorderProfile)) new GuiBorderProfile (GuiWindowBorderProfile : GuiDefaultBorderProfile)
  206. {
  207. padding = 10;
  208. paddingHL = 10;
  209. paddingSL = 10;
  210. paddingNA = 4;
  211. };
  212. if(!isObject(GuiWindowProfile)) new GuiControlProfile (GuiWindowProfile : GuiDefaultProfile)
  213. {
  214. fillColor = AdjustColorValue($color1, 10);
  215. fillColorHL = AdjustColorValue($color1, 12);
  216. fillColorSL = $color4;
  217. fillColorNA = $color1;
  218. category = "defaultWindow";
  219. align = "Left";
  220. fontColorSL = $color5;
  221. borderLeft = GuiWindowBorderProfile;
  222. };
  223. if(!isObject(GuiWindowContentBorderProfile)) new GuiBorderProfile (GuiWindowContentBorderProfile : GuiDefaultBorderProfile)
  224. {
  225. borderColor = AdjustColorValue($color1, 10);
  226. borderColorSL = AdjustColorValue($color4, -10);
  227. border = 3;
  228. borderSL = 3;
  229. };
  230. if(!isObject(GuiWindowContentProfile)) new GuiControlProfile (GuiWindowContentProfile : GuiDefaultProfile)
  231. {
  232. fillColor = AdjustColorValue($color1, -10);
  233. fillColorSL = AdjustColorValue($color1, -10);
  234. borderDefault = GuiWindowContentBorderProfile;
  235. borderTop = GuiDefaultBorderProfile;
  236. };
  237. if(!isObject(GuiWindowButtonBorderProfile)) new GuiBorderProfile (GuiWindowButtonBorderProfile : GuiDefaultBorderProfile)
  238. {
  239. margin = 1;
  240. marginHL = 1;
  241. marginSL = 1;
  242. marginNA = 1;
  243. padding = 3;
  244. paddingHL = 3;
  245. paddingSL = 3;
  246. paddingNA = 3;
  247. };
  248. if(!isObject(GuiWindowCloseButtonProfile)) new GuiControlProfile (GuiWindowCloseButtonProfile : GuiDefaultProfile)
  249. {
  250. fillColor = SetColorAlpha($color1, 150);
  251. fillColorHL = SetColorAlpha($color6, 150);
  252. fillColorSL = AdjustColorValue($color6, 10);
  253. fillColorNA = $color1;
  254. fontColor = SetColorAlpha($color3, 150);
  255. fontColorHL = SetColorAlpha($color3, 170);
  256. fontColorSL = $color5;
  257. fontColorNA = SetColorAlpha($color3, 150);
  258. borderDefault = GuiWindowButtonBorderProfile;
  259. };
  260. if(!isObject(GuiWindowMinButtonProfile)) new GuiControlProfile (GuiWindowMinButtonProfile : GuiWindowCloseButtonProfile)
  261. {
  262. fillColorHL = SetColorAlpha($color4, 150);
  263. fillColorSL = AdjustColorValue($color4, 10);
  264. };
  265. if(!isObject(GuiWindowMaxButtonProfile)) new GuiControlProfile (GuiWindowMaxButtonProfile : GuiWindowMinButtonProfile);
  266. if(!isObject(GuiTransparentProfile)) new GuiControlProfile (GuiTransparentProfile : GuiDefaultProfile);
  267. if(!isObject(GuiGridProfile)) new GuiControlProfile (GuiGridProfile : GuiDefaultProfile);
  268. if(!isObject(GuiChainProfile)) new GuiControlProfile (GuiChainProfile : GuiDefaultProfile);
  269. if(!isObject(GuiTabBookProfile)) new GuiControlProfile (GuiTabBookProfile : GuiDefaultProfile)
  270. {
  271. fillColor = SetColorAlpha($color1, 100);
  272. category = "defaultTabBook";
  273. };
  274. if(!isObject(GuiTabProfile)) new GuiControlProfile (GuiTabProfile : GuiDefaultProfile)
  275. {
  276. fontColor = "255 255 255 255";
  277. fontColorHL = "232 240 248 255";
  278. fontColorSL= "255 255 255 255";
  279. fontColorNA = "0 0 0 255";
  280. fillColor = $color1;
  281. fillColorHL = AdjustColorValue($color1, 10);
  282. fillColorSL = AdjustColorValue($color1, 15);
  283. fillColorNA = SetColorAlpha($color1, 100);
  284. borderDefault = GuiBrightBorderProfile;
  285. align = Center;
  286. category = "defaultTab";
  287. };
  288. if(!isObject(GuiTabPageProfile)) new GuiControlProfile (GuiTabPageProfile : GuiDefaultProfile)
  289. {
  290. fillColor = $color1;
  291. fillColorHL = AdjustColorValue($color1, 10);
  292. fillColorSL = AdjustColorValue($color1, 15);
  293. fillColorNA = SetColorAlpha($color1, 100);
  294. category = "defaultTabPage";
  295. };
  296. if(!isObject(GuiSpriteProfile)) new GuiControlProfile (GuiSpriteProfile : GuiDefaultProfile);
  297. if (!isObject(GuiTreeViewProfile)) new GuiControlProfile (GuiTreeViewProfile : GuiDefaultProfile)
  298. {
  299. fontColor = "255 255 255 255";
  300. fontColorHL = "232 240 248 255";
  301. fontColorSL= "255 255 255 255";
  302. fontColorNA = "0 0 0 255";
  303. fillColor = $color1;
  304. fillColorHL = AdjustColorValue($color1, 10);
  305. fillColorSL = AdjustColorValue($color1, 15);
  306. fillColorNA = SetColorAlpha($color1, 100);
  307. bitmap = "./images/treeView";
  308. canKeyFocus = true;
  309. autoSizeHeight = true;
  310. };
  311. if (!isObject(GuiSolidBorderProfile)) new GuiBorderProfile (GuiSolidBorderProfile : GuiDefaultBorderProfile)
  312. {
  313. border = 1;
  314. padding = 10;
  315. paddingHL = 10;
  316. paddingSL = 10;
  317. paddingNA = 10;
  318. };
  319. if(!isObject(GuiSolidProfile)) new GuiControlProfile (GuiSolidProfile : GuiDefaultProfile)
  320. {
  321. // fill color
  322. fillColor = $color1;
  323. fillColorHL = AdjustColorValue($color1, 10);
  324. fillColorSL = AdjustColorValue($color1, 15);
  325. fillColorNA = SetColorAlpha($color1, 100);
  326. borderDefault = GuiSolidBorderProfile;
  327. };
  328. if (!isObject(GuiToolTipProfile)) new GuiControlProfile (GuiToolTipProfile : GuiSolidProfile)
  329. {
  330. fillColor = SetColorAlpha($color1, 220);
  331. fontColor = $color5;
  332. borderDefault = GuiBrightBorderProfile;
  333. };
  334. if (!isObject(GuiTextProfile)) new GuiControlProfile (GuiTextProfile : GuiDefaultProfile)
  335. {
  336. fontColor = $color3;
  337. align = "left";
  338. autoSizeWidth = false;
  339. autoSizeHeight = false;
  340. returnTab = false;
  341. numbersOnly = false;
  342. cursorColor = "0 0 0 255";
  343. };
  344. if(!isObject(GuiTextArrayProfile)) new GuiControlProfile (GuiTextArrayProfile : GuiTextProfile)
  345. {
  346. fontColorHL = $color3;
  347. fillColorHL = AdjustColorValue($color1, 10);
  348. };
  349. if (!isObject(GuiTextRightProfile)) new GuiControlProfile (GuiTextRightProfile : GuiTextProfile)
  350. {
  351. align = "right";
  352. };
  353. if (!isObject(GuiCheckBoxProfile)) new GuiControlProfile (GuiCheckBoxProfile : GuiDefaultProfile)
  354. {
  355. fillColor = $color3;
  356. fillColorHL = AdjustColorValue($color3, -10);
  357. fillColorSL = $color4;
  358. fillColorNA = SetColorAlpha($color3, 100);
  359. fontColor = $color3;
  360. fontColorHL = AdjustColorValue($color5, -10);
  361. fontColorSL = $color5;
  362. fontColorNA = SetColorAlpha($color3, 100);
  363. align = "left";
  364. tab = true;
  365. borderDefault = "GuiBrightBorderProfile";
  366. borderRight = "GuiDarkBorderProfile";
  367. borderBottom = "GuiDarkBorderProfile";
  368. };
  369. if (!isObject(GuiTextEditProfile)) new GuiControlProfile (GuiTextEditProfile : GuiDefaultProfile)
  370. {
  371. fillColor = "232 240 248 255";
  372. fillColorHL = "242 250 255 255";
  373. fillColorNA = "127 127 127 52";
  374. fillColorTextSL = "251 170 0 255";
  375. fontColor = "27 59 95 255";
  376. fontColorHL = "27 59 95 255";
  377. fontColorNA = "0 0 0 52";
  378. fontColorSL = "0 0 0 255";
  379. textOffset = "5 2";
  380. autoSizeWidth = false;
  381. autoSizeHeight = false;
  382. tab = false;
  383. canKeyFocus = true;
  384. returnTab = true;
  385. };
  386. if(!isObject(GuiScrollTrackProfile)) new GuiControlProfile (GuiScrollTrackProfile : GuiDefaultProfile)
  387. {
  388. fillColor = $color1;
  389. fillColorHL = $color1;
  390. fillColorSL = $color1;
  391. fillColorNA = $color1;
  392. };
  393. if (!isObject(GuiScrollBrightBorderProfile)) new GuiBorderProfile (GuiScrollBrightBorderProfile : GuiBrightBorderProfile)
  394. {
  395. padding = 3;
  396. paddingHL = 2;
  397. paddingSL = 2;
  398. paddingNA = 3;
  399. border = 1;
  400. borderHL = 2;
  401. borderSL = 2;
  402. borderNA = 1;
  403. };
  404. if (!isObject(GuiScrollDarkBorderProfile)) new GuiBorderProfile (GuiScrollDarkBorderProfile : GuiScrollBrightBorderProfile)
  405. {
  406. borderColor = "0 0 0 20";
  407. borderColorHL = "0 0 0 20";
  408. borderColorSL = "0 0 0 20";
  409. borderColorNA = "0 0 0 20";
  410. };
  411. if(!isObject(GuiScrollThumbProfile)) new GuiControlProfile (GuiScrollThumbProfile : GuiDefaultProfile)
  412. {
  413. fillColor = $color3;
  414. fillColorHL = AdjustColorValue($color3, 10);
  415. fillColorSL = $color4;
  416. fillColorNA = SetColorAlpha($color3, 100);
  417. borderDefault = GuiScrollBrightBorderProfile;
  418. borderRight = GuiScrollDarkBorderProfile;
  419. borderBottom = GuiScrollDarkBorderProfile;
  420. };
  421. if(!isObject(GuiScrollArrowProfile)) new GuiControlProfile (GuiScrollArrowProfile : GuiScrollThumbProfile)
  422. {
  423. fontColor = "0 0 0 100";
  424. fontColorHL = "0 0 0 150";
  425. fontColorSL = $color5;
  426. fontColorNA = "0 0 0 50";
  427. borderDefault = GuiScrollBrightBorderProfile;
  428. borderRight = GuiScrollDarkBorderProfile;
  429. borderBottom = GuiScrollDarkBorderProfile;
  430. };
  431. if(!isObject(GuiScrollProfile)) new GuiControlProfile (GuiScrollProfile)
  432. {
  433. fillColor = $color2;
  434. borderDefault = GuiDefaultBorderProfile;
  435. };
  436. if(!isObject(GuiTransparentScrollProfile)) new GuiControlProfile (GuiTransparentScrollProfile : GuiScrollProfile)
  437. {
  438. fillColor = "255 255 255 0";
  439. };
  440. if (!isObject(GuiDarkButtonBorderProfile)) new GuiBorderProfile (GuiDarkButtonBorderProfile : GuiDarkBorderProfile)
  441. {
  442. padding = 4;
  443. paddingHL = 4;
  444. paddingSL = 4;
  445. paddingNA = 4;
  446. border = 3;
  447. borderHL = 3;
  448. borderSL = 3;
  449. borderNA = 3;
  450. };
  451. if (!isObject(GuiBrightButtonBorderProfile)) new GuiBorderProfile (GuiBrightButtonBorderProfile : GuiBrightBorderProfile)
  452. {
  453. padding = 4;
  454. paddingHL = 4;
  455. paddingSL = 4;
  456. paddingNA = 4;
  457. border = 3;
  458. borderHL = 3;
  459. borderSL = 3;
  460. borderNA = 3;
  461. };
  462. if (!isObject(GuiButtonProfile)) new GuiControlProfile (GuiButtonProfile : GuiDefaultProfile)
  463. {
  464. fillColor = $color3;
  465. fillColorHL = AdjustColorValue($color3, 10);
  466. fillColorSL = AdjustColorValue($color3, 15);
  467. fillColorNA = SetColorAlpha($color3, 80);
  468. fontColor = $color1;
  469. fontColorHL = $color4;
  470. fontColorSL = $color1;
  471. fontColorNA = SetColorAlpha($color1, 100);
  472. align = center;
  473. vAlign = middle;
  474. borderLeft = GuiBrightButtonBorderProfile;
  475. borderRight = GuiDarkButtonBorderProfile;
  476. borderTop = GuiBrightButtonBorderProfile;
  477. borderBottom = GuiDarkButtonBorderProfile;
  478. canKeyFocus = true;
  479. tab = true;
  480. };
  481. if (!isObject(GuiRadioProfile)) new GuiControlProfile (GuiRadioProfile : GuiDefaultProfile)
  482. {
  483. fillColor = $color3;
  484. fillColorHL = AdjustColorValue($color3, -10);
  485. fillColorSL = $color4;
  486. fillColorNA = SetColorAlpha($color3, 100);
  487. fontColor = $color3;
  488. fontColorHL = AdjustColorValue($color5, -10);
  489. fontColorSL = $color5;
  490. fontColorNA = SetColorAlpha($color3, 100);
  491. align = "left";
  492. tab = true;
  493. borderLeft = GuiBrightButtonBorderProfile;
  494. borderRight = GuiDarkButtonBorderProfile;
  495. borderTop = GuiBrightButtonBorderProfile;
  496. borderBottom = GuiDarkButtonBorderProfile;
  497. canKeyFocus = true;
  498. tab = true;
  499. };
  500. if (!isObject(GuiHeaderProfile)) new GuiControlProfile (GuiHeaderProfile : GuiSolidProfile)
  501. {
  502. fillColor = $color2;
  503. fontColor = $color3;
  504. fontSize = $platformFontSize + 2;
  505. align = "left";
  506. borderDefault = "GuiBrightBorderProfile";
  507. borderRight = "GuiDarkBorderProfile";
  508. borderBottom = "GuiDarkBorderProfile";
  509. };
  510. if (!isObject(GuiLabelProfile)) new GuiControlProfile (GuiLabelProfile : GuiDefaultProfile)
  511. {
  512. fontColor = "255 255 255 255";
  513. fontSize = $platformFontSize;
  514. align = "left";
  515. };
  516. if(!isObject(GuiDragAndDropProfile)) new GuiControlProfile (GuiDragAndDropProfile : GuiDefaultProfile)
  517. {
  518. fillColor = SetColorAlpha($color4, 50);
  519. fontColor = $color5;
  520. };
  521. if (!isObject(GuiProgressBorderProfile)) new GuiBorderProfile (GuiProgressBorderProfile : GuiDefaultBorderProfile)
  522. {
  523. padding = 2;
  524. paddingHL = 0;
  525. paddingSL = 0;
  526. border = 2;
  527. borderHL = 2;
  528. borderSL = 2;
  529. margin = 0;
  530. marginHL = 3;
  531. marginSL = 3;
  532. borderColor = AdjustColorValue($color1, -10);
  533. borderColorHL = "255 255 255 50";
  534. borderColorSL = "255 255 255 50";
  535. };
  536. if (!isObject(GuiProgressDarkBorderProfile)) new GuiBorderProfile (GuiProgressDarkBorderProfile : GuiProgressBorderProfile)
  537. {
  538. borderColorHL = "0 0 0 50";
  539. borderColorSL = "0 0 0 50";
  540. };
  541. if(!isObject(GuiProgressProfile)) new GuiControlProfile (GuiProgressProfile : GuiDefaultProfile)
  542. {
  543. fillColor = $color1;
  544. fillColorHL = $color4;
  545. fillColorSL = AdjustColorValue($color4, 10);
  546. fontColorHL = $color3;
  547. fontColorSL = $color5;
  548. borderDefault = GuiProgressBorderProfile;
  549. borderBottom = GuiProgressDarkBorderProfile;
  550. borderRight = GuiProgressDarkBorderProfile;
  551. };
  552. if (!isObject(GuiDropDownDarkBorderProfile)) new GuiBorderProfile (GuiDropDownDarkBorderProfile : GuiDarkBorderProfile)
  553. {
  554. padding = 4;
  555. paddingHL = 4;
  556. paddingSL = 4;
  557. paddingNA = 4;
  558. };
  559. if (!isObject(GuiDropDownBrightBorderProfile)) new GuiBorderProfile (GuiDropDownBrightBorderProfile : GuiBrightBorderProfile)
  560. {
  561. padding = 4;
  562. paddingHL = 4;
  563. paddingSL = 4;
  564. paddingNA = 4;
  565. };
  566. if(!isObject(GuiDropDownProfile)) new GuiControlProfile (GuiDropDownProfile : GuiDefaultProfile)
  567. {
  568. // fill color
  569. fillColor = AdjustColorValue($color3, -15);
  570. fillColorHL = AdjustColorValue($color3, -8);
  571. fillColorSL = $color4;
  572. fillColorNA = SetColorAlpha($color3, 100);
  573. fontColor = $color1;
  574. fontColorHL = $color1;
  575. fontColorSL = $color3;
  576. fontColorNA = SetColorAlpha($color1, 100);
  577. align = "left";
  578. tab = true;
  579. canKeyFocus = true;
  580. borderDefault = GuiDropDownBrightBorderProfile;
  581. borderRight = GuiDropDownDarkBorderProfile;
  582. borderBottom = GuiDropDownDarkBorderProfile;
  583. category = "dropDown";
  584. };
  585. if (!isObject(GuiMenuBarBorderProfile)) new GuiBorderProfile (GuiMenuBarBorderProfile : GuiDefaultBorderProfile)
  586. {
  587. padding = 2;
  588. };
  589. if(!isObject(GuiMenuBarProfile)) new GuiControlProfile (GuiMenuBarProfile : GuiDefaultProfile)
  590. {
  591. fillColor = AdjustColorValue($color1, -7);
  592. canKeyFocus = true;
  593. borderDefault = GuiMenuBarBorderProfile;
  594. category = "defaultMenuBar";
  595. };
  596. if (!isObject(GuiMenuBorderProfile)) new GuiBorderProfile (GuiMenuBorderProfile : GuiDefaultBorderProfile)
  597. {
  598. margin = 2;
  599. marginHL = 0;
  600. marginSL = 0;
  601. marginNA = 2;
  602. border = 0;
  603. borderHL = 2;
  604. borderSL = 2;
  605. borderNA = 0;
  606. borderColorHL = "255 255 255 30";
  607. borderColorSL = $color4;
  608. };
  609. if (!isObject(GuiMenuBottomBorderProfile)) new GuiBorderProfile (GuiMenuBottomBorderProfile : GuiMenuBorderProfile)
  610. {
  611. paddingSL = 2;
  612. marginSL = 0;
  613. borderSL = 0;
  614. };
  615. if (!isObject(GuiMenuSideBorderProfile)) new GuiBorderProfile (GuiMenuSideBorderProfile : GuiDefaultBorderProfile)
  616. {
  617. border = 0;
  618. borderHL = 2;
  619. borderSL = 2;
  620. borderNA = 0;
  621. padding = 10;
  622. paddingHL = 8;
  623. paddingSL = 8;
  624. paddingNA = 10;
  625. borderColorHL = "255 255 255 30";
  626. borderColorSL = $color4;
  627. };
  628. if(!isObject(GuiMenuProfile)) new GuiControlProfile (GuiMenuProfile : GuiDefaultProfile)
  629. {
  630. fillColor = "0 0 0 0";
  631. fillColorHL = "255 255 255 10";
  632. fillColorSL = AdjustColorValue($color4, -15);
  633. fillColorNA = "0 0 0 0";
  634. borderDefault = GuiMenuBorderProfile;
  635. borderLeft = GuiMenuSideBorderProfile;
  636. borderRight = GuiMenuSideBorderProfile;
  637. borderBottom = GuiMenuBottomBorderProfile;
  638. category = "defaultMenuBar";
  639. fontColor = $color3;
  640. fontColorHL = AdjustColorValue($color3, 10);
  641. fontColorSL = $color3;
  642. fontColorNA = SetColorAlpha($color3, 100);
  643. };
  644. if (!isObject(GuiMenuContentVertBorderProfile)) new GuiBorderProfile (GuiMenuContentVertBorderProfile : GuiDefaultBorderProfile)
  645. {
  646. border = 2;
  647. padding = 4;
  648. borderColor = $color4;
  649. };
  650. if (!isObject(GuiMenuContentSideBorderProfile)) new GuiBorderProfile (GuiMenuContentSideBorderProfile : GuiDefaultBorderProfile)
  651. {
  652. border = 2;
  653. padding = 0;
  654. borderColor = $color4;
  655. };
  656. if(!isObject(GuiMenuContentProfile)) new GuiControlProfile (GuiMenuContentProfile : GuiDefaultBorderProfile)
  657. {
  658. fillColor = AdjustColorValue($color1, -5);
  659. borderDefault = GuiMenuContentSideBorderProfile;
  660. borderTop = GuiMenuContentVertBorderProfile;
  661. borderBottom = GuiMenuContentVertBorderProfile;
  662. };
  663. if (!isObject(GuiMenuItemBorderTopProfile)) new GuiBorderProfile (GuiMenuItemBorderTopProfile : GuiDefaultBorderProfile)
  664. {
  665. padding = 6;
  666. paddingHL = 6;
  667. paddingSL = 0;
  668. paddingNA = 6;
  669. marginSL = 4;
  670. borderSL = 1;
  671. borderColorSL = "0 0 0 50";
  672. };
  673. if (!isObject(GuiMenuItemBorderBottomProfile)) new GuiBorderProfile (GuiMenuItemBorderBottomProfile : GuiMenuItemBorderTopProfile)
  674. {
  675. borderColorSL = "255 255 255 50";
  676. };
  677. if (!isObject(GuiMenuItemBorderSideProfile)) new GuiBorderProfile (GuiMenuItemBorderSideProfile : GuiMenuItemBorderTopProfile)
  678. {
  679. marginSL = 0;
  680. borderSL = 0;
  681. paddingSL = 6;
  682. };
  683. if(!isObject(GuiMenuItemProfile)) new GuiControlProfile (GuiMenuItemProfile : GuiDefaultProfile)
  684. {
  685. fillColor = AdjustColorValue($color1, -5);
  686. fillColorHL = AdjustColorValue($color4, -15);
  687. fillColorNA = $color1;
  688. align = left;
  689. fontColor = $color3;
  690. fontColorHL = AdjustColorValue($color3, 10);
  691. fontColorNA = SetColorAlpha($color3, 150);
  692. borderDefault = GuiMenuItemBorderSideProfile;
  693. borderTop = GuiMenuItemBorderTopProfile;
  694. borderBottom = GuiMenuItemBorderBottomProfile;
  695. };