profiles.tscript 13 KB

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