profiles.tscript 13 KB

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