profiles.cs 13 KB

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