profiles.tscript 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. $TextMediumEmphasisColor = "200 200 200";
  2. $TextMediumEmphasisColorHL = "0 0 0";
  3. $TextHighEmphasisColor = "224 224 224";
  4. $TextHighEmphasisColorHL = "0 0 0";
  5. $TextDisabledColor = "108 108 108";
  6. singleton GuiGameListMenuProfile(DefaultListMenuProfile)
  7. {
  8. fontType = "Arial Bold";
  9. fontSize = 20;
  10. fontColor = $TextMediumEmphasisColor;
  11. fontColorSEL = $TextMediumEmphasisColor;
  12. fontColorNA = $TextDisabledColor;
  13. fontColorHL = $TextMediumEmphasisColor;
  14. fillColor = "108 108 108";
  15. fillColorHL = "140 140 140";
  16. fillColorSEL = "180 180 180";
  17. HitAreaUpperLeft = "16 20";
  18. HitAreaLowerRight = "503 74";
  19. IconOffset = "40 0";
  20. TextOffset = "100 0";
  21. RowSize = "500 90";
  22. ColumnSplit = "250";
  23. RightPad = "20";
  24. bitmap = "UI:listMenuArray_image";
  25. canKeyFocus = true;
  26. };
  27. singleton GuiControlProfile(GamepadDefaultProfile)
  28. {
  29. border = 0;
  30. };
  31. singleton GuiControlProfile(GamepadButtonTextLeft)
  32. {
  33. fontType = "Arial Bold";
  34. fontSize = 20;
  35. fontColor = "255 255 255";
  36. justify = "left";
  37. };
  38. singleton GuiControlProfile(GamepadButtonTextRight : GamepadButtonTextLeft)
  39. {
  40. justify = "right";
  41. };
  42. singleton GuiControlProfile(MenuHeaderText)
  43. {
  44. fontType = "Arial Bold";
  45. fontSize = 36;
  46. fontColor = $TextHighEmphasisColor;
  47. justify = "left";
  48. modal = false;
  49. };
  50. singleton GuiControlProfile(MenuHeaderTextHighlighted : MenuHeaderText)
  51. {
  52. fontColor = $TextHighEmphasisColorHL;
  53. };
  54. singleton GuiControlProfile(MenuHeaderTextCenter)
  55. {
  56. fontType = "Arial Bold";
  57. fontSize = 32;
  58. fontColor = $TextHighEmphasisColor;
  59. justify = "center";
  60. };
  61. singleton GuiControlProfile(MenuSubHeaderText)
  62. {
  63. fontType = "Arial Bold";
  64. fontSize = 24;
  65. fontColor = $TextMediumEmphasisColor;
  66. justify = "left";
  67. modal = false;
  68. };
  69. singleton GuiControlProfile(MenuSubHeaderTextHighlighted : MenuSubHeaderText)
  70. {
  71. fontColor = $TextMediumEmphasisColorHL;
  72. };
  73. singleton GuiControlProfile(MenuSubHeaderCenteredText : MenuSubHeaderText)
  74. {
  75. justify = "center";
  76. };
  77. singleton GuiControlProfile(MenuSubHeaderCenteredTextHighlighted : MenuSubHeaderCenteredText)
  78. {
  79. fontColor = $TextMediumEmphasisColorHL;
  80. };
  81. singleton GuiControlProfile(MenuMLSubHeaderText)
  82. {
  83. fontType = "Arial Bold";
  84. fontSize = 20;
  85. fontColor = $TextMediumEmphasisColor;
  86. justify = "left";
  87. autoSizeWidth = true;
  88. autoSizeHeight = true;
  89. modal = false;
  90. };
  91. singleton GuiControlProfile(MenuMLSubHeaderTextCenter : MenuMLSubHeaderText)
  92. {
  93. justify = "center";
  94. };
  95. singleton GuiControlProfile( GuiMenuDefaultProfile )
  96. {
  97. opaque = false;
  98. fillColor = "0 0 0 0";
  99. };
  100. singleton GuiControlProfile( GuiMenuButtonProfile )
  101. {
  102. opaque = true;
  103. border = false;
  104. fontSize = 24;
  105. fontType = "Arial Bold";
  106. fontColor = "200 200 200 255";
  107. fontColorHL = "0 0 0 255";
  108. fontColorNA = "108 108 108 255";
  109. fontColorSEL = "200 200 200 255";
  110. fillColor = "0 0 0 0";
  111. fillColorHL = "255 255 255 255";
  112. fillColorNA = "40 40 40";
  113. borderColor = "87 87 87";
  114. borderColorNA = "0 0 0";
  115. borderColorHL = "194 64 64";
  116. fixedExtent = 0;
  117. justify = "center";
  118. canKeyFocus = false;
  119. //bitmapAsset = "UI:menu_button_image";
  120. hasBitmapArray = false;
  121. soundButtonDown = "UI:buttonClick";
  122. soundButtonOver = "UI:buttonHover";
  123. category = "BaseUI";
  124. fontColors[0] = "200 200 200 255";
  125. fontColors[2] = "108 108 108 255";
  126. fontColors[3] = "200 200 200 255";
  127. fontColors[5] = "Magenta";
  128. fontColorLinkHL = "Magenta";
  129. };
  130. singleton GuiControlProfile( LevelPreviewButtonProfile : GuiMenuButtonProfile )
  131. {
  132. fontSize = 22;
  133. justify = "Left";
  134. };
  135. singleton GuiControlProfile( GuiHighlightMenuButtonProfile )
  136. {
  137. opaque = true;
  138. border = false;
  139. fontSize = 18;
  140. fontType = "Arial Bold";
  141. fontColor = "240 240 240";
  142. fontColorHL = "0 0 0";
  143. fontColorNA = "125 125 125";
  144. //fontColorSEL ="0 0 0";
  145. fixedExtent = false;
  146. justify = "center";
  147. canKeyFocus = false;
  148. bitmapAsset = "UI:selector_button_highlight_only_image";
  149. hasBitmapArray = false;
  150. category = "Core";
  151. };
  152. singleton GuiControlProfile( GuiBlankMenuButtonProfile )
  153. {
  154. opaque = true;
  155. border = false;
  156. fontSize = 18;
  157. fontType = "Arial Bold";
  158. fontColor = "220 220 220";
  159. fontColorHL = "255 255 255";
  160. fontColorNA = "200 200 200";
  161. //fontColorSEL ="0 0 0";
  162. fixedExtent = false;
  163. justify = "center";
  164. canKeyFocus = false;
  165. bitmapAsset = "UI:selector_button_blank_image";
  166. hasBitmapArray = false;
  167. soundButtonDown = menuButtonPressed;
  168. soundButtonOver = menuButtonHover;
  169. category = "Core";
  170. };
  171. singleton GuiControlProfile( GuiJoinServerButtonProfile : GuiMenuButtonProfile )
  172. {
  173. justify = "left";
  174. };
  175. singleton GuiControlProfile( GuiMenuTextProfile )
  176. {
  177. opaque = true;
  178. border = false;
  179. fontSize = 18;
  180. fontType = "Arial Bold";
  181. fontColor = "240 240 240";
  182. fontColorHL = "0 0 0";
  183. fontColorNA = "125 125 125";
  184. fixedExtent = false;
  185. justify = "center";
  186. category = "BaseUI";
  187. modal = false;
  188. };
  189. singleton GuiControlProfile( GuiMenuTextProfileHighlighted : GuiMenuTextProfile )
  190. {
  191. fontColor = "0 0 0";
  192. };
  193. singleton GuiControlProfile (GuiSolidDefaultProfile)
  194. {
  195. opaque = true;
  196. border = true;
  197. category = "Core";
  198. };
  199. singleton GuiControlProfile (GuiTransparentProfile)
  200. {
  201. opaque = false;
  202. border = false;
  203. category = "Core";
  204. };
  205. singleton GuiControlProfile( GuiGroupBorderProfile )
  206. {
  207. border = false;
  208. opaque = false;
  209. hasBitmapArray = true;
  210. bitmapAsset = "UI:group_border_image";
  211. category = "Core";
  212. };
  213. singleton GuiControlProfile( GuiTabBorderProfile )
  214. {
  215. border = false;
  216. opaque = false;
  217. hasBitmapArray = true;
  218. bitmapAsset = "UI:tab_border_image";
  219. category = "Core";
  220. };
  221. singleton GuiControlProfile( GuiModelessDialogProfile )
  222. {
  223. modal = false;
  224. category = "Core";
  225. };
  226. singleton GuiControlProfile (GuiFrameSetProfile)
  227. {
  228. fillcolor = "255 255 255";
  229. borderColor = "246 245 244";
  230. border = 1;
  231. opaque = true;
  232. border = true;
  233. category = "Core";
  234. };
  235. singleton GuiControlProfile( GuiInputCtrlProfile )
  236. {
  237. tab = true;
  238. canKeyFocus = true;
  239. category = "Core";
  240. };
  241. singleton GuiControlProfile (GuiTextProfile)
  242. {
  243. justify = "left";
  244. fontColor = "20 20 20";
  245. category = "Core";
  246. };
  247. singleton GuiControlProfile (GuiTextRightProfile : GuiTextProfile)
  248. {
  249. justify = "right";
  250. category = "Core";
  251. };
  252. singleton GuiControlProfile (GuiAutoSizeTextProfile)
  253. {
  254. fontColor = "0 0 0";
  255. autoSizeWidth = true;
  256. autoSizeHeight = true;
  257. category = "Core";
  258. };
  259. singleton GuiControlProfile( GuiMediumTextProfile : GuiTextProfile )
  260. {
  261. fontSize = 24;
  262. category = "Core";
  263. };
  264. singleton GuiControlProfile( GuiBigTextProfile : GuiTextProfile )
  265. {
  266. fontSize = 36;
  267. category = "Core";
  268. };
  269. singleton GuiControlProfile( GuiMLTextProfile )
  270. {
  271. fontColor = $TextMediumEmphasisColor;
  272. fontColorHL = $TextMediumEmphasisColor;
  273. fontColorSEL = $TextMediumEmphasisColor;
  274. fontColorNA = $TextDisabledColor;
  275. fontSize = 20;
  276. fontColorLink = "100 100 100";
  277. fontColorLinkHL = $TextMediumEmphasisColor;
  278. autoSizeWidth = true;
  279. autoSizeHeight = true;
  280. border = false;
  281. modal = false;
  282. category = "BaseUI";
  283. };
  284. singleton GuiControlProfile( GuiMLTextProfileHighlighted : GuiMLTextProfile )
  285. {
  286. fontColor = $TextMediumEmphasisColorHL;
  287. };
  288. singleton GuiControlProfile( GuiMLWhiteTextProfile )
  289. {
  290. fontColor = "220 220 220";
  291. fontColorHL = $TextMediumEmphasisColor;
  292. autoSizeWidth = true;
  293. autoSizeHeight = true;
  294. border = false;
  295. category = "Core";
  296. };
  297. singleton GuiControlProfile( GuiTextArrayProfile : GuiTextProfile )
  298. {
  299. fontColor = $TextMediumEmphasisColor;
  300. fontColorHL = $TextMediumEmphasisColor;
  301. fontColorSEL = $TextMediumEmphasisColor;
  302. fontColorNA = $TextDisabledColor;
  303. fillColor = "22 22 22 255";
  304. fillColorHL = "22 22 22 255";
  305. fillColorSEL = "56 56 56 255";
  306. border = true;
  307. borderColor ="87 87 87";
  308. borderColorHL = "87 87 87";
  309. borderColorSEL = "255 255 255";
  310. category = "Core";
  311. canKeyFocus = true;
  312. };
  313. singleton GuiControlProfile( GuiMenuTextEditProfile : GuiTextEditProfile )
  314. {
  315. fontColor = $TextMediumEmphasisColor;
  316. fontColorHL = $TextMediumEmphasisColor;
  317. fontColorSEL = $TextMediumEmphasisColor;
  318. fontColorNA = $TextDisabledColor;
  319. fillColor = "22 22 22 255";
  320. fillColorHL = "22 22 22 255";
  321. border = true;
  322. borderColor ="87 87 87";
  323. borderColorHL = "87 87 87";
  324. borderColorSEL = "255 255 255";
  325. category = "Core";
  326. };
  327. // ----------------------------------------------------------------------------
  328. // TODO: Revisit Popupmenu
  329. // ----------------------------------------------------------------------------
  330. singleton GuiControlProfile( GuiPopupMenuItemBorder : GuiButtonProfile )
  331. {
  332. opaque = true;
  333. border = true;
  334. fontColor = "0 0 0";
  335. fontColorHL = "0 0 0";
  336. fontColorNA = "255 255 255";
  337. fixedExtent = false;
  338. justify = "center";
  339. canKeyFocus = false;
  340. bitmapAsset = "UI:menubutton_image";
  341. category = "Core";
  342. };
  343. singleton GuiControlProfile( GuiPopUpMenuDefault : GuiDefaultProfile )
  344. {
  345. opaque = true;
  346. mouseOverSelected = true;
  347. textOffset = "3 3";
  348. border = 0;
  349. borderThickness = 0;
  350. fixedExtent = true;
  351. hasBitmapArray = true;
  352. fillColor = EditorSettings.value("Theme/fieldBGColor");//"255 255 255";//100
  353. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");//"91 101 116";
  354. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");//"91 101 116";
  355. fontColor = EditorSettings.value("Theme/fieldTextColor");//"215 215 215";
  356. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");//"215 215 215";
  357. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");//"215 215 215";
  358. fontColorNA = EditorSettings.value("Theme/fieldTextColor");//"215 215 215";
  359. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  360. profileForChildren = GuiPopupMenuItemBorder;
  361. category = "Core";
  362. };
  363. singleton GuiControlProfile( GuiPopUpMenuProfile : GuiPopUpMenuDefault )
  364. {
  365. textOffset = "6 4";
  366. bitmapAsset = "UI:dropDown_image";
  367. hasBitmapArray = true;
  368. border = 1;
  369. profileForChildren = GuiPopUpMenuDefault;
  370. category = "Core";
  371. };
  372. singleton GuiControlProfile( GuiTabBookProfile )
  373. {
  374. fillColorHL = "100 100 100";
  375. fillColorNA = "150 150 150";
  376. fontColor = "30 30 30";
  377. fontColorHL = "0 0 0";
  378. fontColorNA = "50 50 50";
  379. fontType = "Arial";
  380. fontSize = 14;
  381. justify = "center";
  382. bitmapAsset = "UI:tab_image";
  383. tabWidth = 64;
  384. tabHeight = 24;
  385. tabPosition = "Top";
  386. tabRotation = "Horizontal";
  387. textOffset = "0 -3";
  388. tab = true;
  389. cankeyfocus = true;
  390. category = "Core";
  391. };
  392. singleton GuiControlProfile( GuiTabPageProfile : GuiDefaultProfile )
  393. {
  394. fontType = "Arial";
  395. fontSize = 10;
  396. justify = "center";
  397. bitmapAsset = "UI:tab_image";
  398. opaque = false;
  399. fillColor = "240 239 238";
  400. category = "Core";
  401. };
  402. singleton GuiControlProfile( GuiConsoleProfile )
  403. {
  404. fontType = ($platform $= "macos") ? "Monaco" : "Lucida Console";
  405. fontSize = ($platform $= "macos") ? 13 : 12;
  406. fontColor = "255 255 255";
  407. fontColorHL = "0 255 255";
  408. fontColorNA = "255 0 0";
  409. fontColors[6] = "100 100 100";
  410. fontColors[7] = "100 100 0";
  411. fontColors[8] = "0 0 100";
  412. fontColors[9] = "0 100 0";
  413. category = "Core";
  414. };
  415. singleton GuiControlProfile( GuiConsoleTextProfile )
  416. {
  417. fontColor = "0 0 0";
  418. autoSizeWidth = true;
  419. autoSizeHeight = true;
  420. textOffset = "2 2";
  421. opaque = true;
  422. fillColor = "255 255 255";
  423. border = true;
  424. borderThickness = 1;
  425. borderColor = "0 0 0";
  426. category = "Core";
  427. };
  428. $ConsoleDefaultFillColor = "0 0 0 175";
  429. singleton GuiControlProfile( ConsoleScrollProfile : GuiScrollProfile )
  430. {
  431. opaque = true;
  432. fillColor = $ConsoleDefaultFillColor;
  433. border = 1;
  434. //borderThickness = 0;
  435. borderColor = "0 0 0";
  436. category = "Core";
  437. };
  438. singleton GuiControlProfile( ConsoleTextEditProfile : GuiTextEditProfile )
  439. {
  440. fillColor = "242 241 240 255";
  441. fillColorHL = "255 255 255";
  442. category = "Core";
  443. };
  444. //-----------------------------------------------------------------------------
  445. // Center and bottom print
  446. //-----------------------------------------------------------------------------
  447. singleton GuiControlProfile ( CenterPrintProfile )
  448. {
  449. opaque = false;
  450. fillColor = "128 128 128";
  451. fontColor = "0 255 0";
  452. border = true;
  453. borderColor = "0 255 0";
  454. category = "Core";
  455. };
  456. singleton GuiControlProfile ( CenterPrintTextProfile )
  457. {
  458. opaque = false;
  459. fontType = "Arial";
  460. fontSize = 12;
  461. fontColor = "0 255 0";
  462. category = "Core";
  463. };
  464. // ----------------------------------------------------------------------------
  465. // Radio button control
  466. // ----------------------------------------------------------------------------
  467. singleton GuiControlProfile( GuiRadioProfile )
  468. {
  469. fontSize = 14;
  470. fillColor = "232 232 232";
  471. fontColor = "20 20 20";
  472. fontColorHL = "80 80 80";
  473. fixedExtent = true;
  474. bitmapAsset = "UI:radioButton_image";
  475. hasBitmapArray = true;
  476. category = "Core";
  477. };
  478. //
  479. // Scroll Profile
  480. //
  481. singleton GuiControlProfile(GuiMenuScrollProfile)
  482. {
  483. opaque = false;
  484. fillcolor = "0 0 0 0";
  485. fontColor = "200 200 200";
  486. fontColorHL = "250 250 250";
  487. border = false;
  488. bitmapAsset = "UI:scrollBar_image";
  489. hasBitmapArray = true;
  490. category = "BaseUI";
  491. };
  492. singleton GuiControlProfile(SliderBitmapGUIProfile)
  493. {
  494. bitmapAsset = "UI:optionsMenuSliderBitmapArray_image";
  495. hasBitmapArray = true;
  496. opaque = false;
  497. borderColor = "0 0 0 255";
  498. };
  499. singleton GuiControlProfile(GuiMenuBackgroundProfile)
  500. {
  501. category = "BaseUI";
  502. opaque = true;
  503. fillcolor = "34 34 34 255";
  504. };
  505. singleton GuiControlProfile(GuiMenuPanelProfile)
  506. {
  507. category = "BaseUI";
  508. opaque = true;
  509. fillcolor = "15 15 15 255";
  510. };
  511. singleton GuiControlProfile(GuiMenuBasePanelProfile)
  512. {
  513. category = "BaseUI";
  514. opaque = true;
  515. fillcolor = "40 40 40 255";
  516. };