profiles.ed.tscript 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 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. function execEditorProfilesCS()
  23. {
  24. exec("./profiles.ed." @ $TorqueScriptFileExtension);
  25. }
  26. $Gui::clipboardFile = expandFilename("./clipboard.gui");
  27. $Gui::fontTypeRegular = "Arial";
  28. $Gui::fontTypeLight = "Arial Light";
  29. $Gui::fontTypeMedium = "Arial Medium";
  30. $Gui::fontTypeBold = "Arial Bold";
  31. $Gui::fontTypeItalic = "Arial Italic";
  32. $Gui::fontTypeMono = "Arial";
  33. $GUI::fontSize[12] = 12;
  34. $GUI::fontSize[14] = 14;
  35. $GUI::fontSize[16] = 16;
  36. $GUI::fontSize[18] = 17;
  37. $GUI::fontSize[24] = 24;
  38. $GUI::fontSize[36] = 36;
  39. if( !isObject( ToolsGuiDefaultProfile ) )
  40. new GuiControlProfile (ToolsGuiDefaultProfile)
  41. {
  42. tab = false;
  43. canKeyFocus = false;
  44. hasBitmapArray = false;
  45. mouseOverSelected = false;
  46. // fill color
  47. opaque = false;
  48. fillColor = EditorSettings.value("Theme/tabsColor");
  49. fillColorHL = EditorSettings.value("Theme/tabsHLColor");
  50. fillColorSEL = EditorSettings.value("Theme/tabsSELColor");
  51. fillColorNA = EditorSettings.value("Theme/tabsSELColor");
  52. // border color
  53. border = 0;
  54. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  55. borderColorHL = EditorSettings.value("Theme/dividerMidColor");
  56. borderColorNA = EditorSettings.value("Theme/dividerLightColor");
  57. // font
  58. fontType = $Gui::fontTypeRegular;
  59. fontSize = $GUI::fontSize[16];
  60. fontCharset = ANSI;
  61. fontColor = EditorSettings.value("Theme/fieldTextColor");
  62. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  63. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  64. fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor");
  65. // bitmap information
  66. bitmapAsset = "";
  67. bitmapBase = "";
  68. textOffset = "0 0";
  69. // used by guiTextControl
  70. modal = true;
  71. justify = "left";
  72. autoSizeWidth = false;
  73. autoSizeHeight = false;
  74. returnTab = false;
  75. numbersOnly = false;
  76. cursorColor = "215 215 215 255";
  77. // sounds
  78. //soundButtonDown = "";
  79. //soundButtonOver = "";
  80. };
  81. if( !isObject( ToolsGuiSolidDefaultProfile ) )
  82. new GuiControlProfile (ToolsGuiSolidDefaultProfile : ToolsGuiDefaultProfile)
  83. {
  84. opaque = true;
  85. border = true;
  86. category = "Tools";
  87. };
  88. if( !isObject( ToolsGuiDefaultNonModalProfile ) )
  89. new GuiControlProfile (ToolsGuiDefaultNonModalProfile : ToolsGuiDefaultProfile)
  90. {
  91. opaque = false;
  92. modal = false;
  93. category = "Tools";
  94. };
  95. if( !isObject( ToolsGuiTransparentProfile ) )
  96. new GuiControlProfile (ToolsGuiTransparentProfile)
  97. {
  98. opaque = false;
  99. border = false;
  100. category = "Tools";
  101. };
  102. if( !isObject( ToolsGuiGroupBorderProfile ) )
  103. new GuiControlProfile( ToolsGuiGroupBorderProfile )
  104. {
  105. border = false;
  106. opaque = false;
  107. hasBitmapArray = true;
  108. bitmapAsset = "ToolsModule:group_border_image";
  109. category = "Tools";
  110. };
  111. if( !isObject( ToolsGuiTabBorderProfile ) )
  112. new GuiControlProfile( ToolsGuiTabBorderProfile )
  113. {
  114. border = false;
  115. opaque = false;
  116. hasBitmapArray = true;
  117. bitmapAsset = "ToolsModule:tab_border_image";
  118. category = "Tools";
  119. };
  120. if( !isObject( ToolsGuiDefaultIconBtnProfile ) )
  121. new GuiControlProfile (ToolsGuiDefaultIconBtnProfile : ToolsGuiDefaultProfile)
  122. {
  123. fontSize = $GUI::fontSize[16];
  124. };
  125. if( !isObject( ToolsGuiToolTipProfile ) )
  126. new GuiControlProfile (ToolsGuiToolTipProfile)
  127. {
  128. // fill color
  129. fillColor = EditorSettings.value("Theme/tooltipBGColor");
  130. // border color
  131. borderColor = EditorSettings.value("Theme/tooltipDivColor");
  132. // font
  133. fontType = $Gui::fontTypeRegular;
  134. fontSize = $GUI::fontSize[18];
  135. fontColor = EditorSettings.value("Theme/tooltipTextColor");
  136. category = "Tools";
  137. };
  138. if( !isObject( ToolsGuiModelessDialogProfile ) )
  139. new GuiControlProfile( ToolsGuiModelessDialogProfile )
  140. {
  141. modal = false;
  142. category = "Tools";
  143. };
  144. if( !isObject( ToolsGuiFrameSetProfile ) )
  145. new GuiControlProfile (ToolsGuiFrameSetProfile)
  146. {
  147. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  148. borderColor = "64 64 64";
  149. border = 1;
  150. opaque = true;
  151. border = true;
  152. category = "Tools";
  153. };
  154. if( !isObject( ToolsGuiWindowProfile ) )
  155. new GuiControlProfile (ToolsGuiWindowProfile)
  156. {
  157. opaque = false;
  158. border = 1;
  159. fillColor = EditorSettings.value("Theme/tabsColor");
  160. fillColorHL = EditorSettings.value("Theme/tabsHLColor");
  161. fillColorSEL = EditorSettings.value("Theme/tabsSELColor");
  162. fillColorNA = EditorSettings.value("Theme/tabsColor");
  163. fontColor = EditorSettings.value("Theme/headerTextColor");
  164. fontColorHL = EditorSettings.value("Theme/headerTextColor");
  165. bevelColorHL = "255 255 255";
  166. bevelColorLL = "0 0 0";
  167. text = "untitled";
  168. bitmapAsset = "ToolsModule:window_image";
  169. textOffset = "10 0";
  170. hasBitmapArray = true;
  171. justify = "left";
  172. category = "Tools";
  173. fontType = $Gui::fontTypeBold;
  174. fontSize = $GUI::fontSize[16];
  175. };
  176. if( !isObject( ToolsGuiPaneProfile ) )
  177. new GuiControlProfile (ToolsGuiPaneProfile)
  178. {
  179. opaque = false;
  180. border = 1;
  181. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  182. fillColorHL = EditorSettings.value("Theme/windowBackgroundColor");
  183. fillColorSEL = EditorSettings.value("Theme/windowBackgroundColor");
  184. fillColorNA = EditorSettings.value("Theme/windowBackgroundColor");
  185. borderColor = EditorSettings.value("Theme/windowBackgroundColor");
  186. category = "Tools";
  187. fontType = $Gui::fontTypeMedium;
  188. fontSize = $GUI::fontSize[16];
  189. };
  190. if( !isObject( ToolsGuiToolbarWindowProfile ) )
  191. new GuiControlProfile(ToolsGuiToolbarWindowProfile : ToolsGuiWindowProfile)
  192. {
  193. bitmapAsset = "ToolsModule:toolbar_window_image";
  194. text = "";
  195. category = "Tools";
  196. };
  197. if( !isObject( ToolsGuiWindowCollapseProfile ) )
  198. new GuiControlProfile (ToolsGuiWindowCollapseProfile : ToolsGuiWindowProfile)
  199. {
  200. category = "Tools";
  201. };
  202. if( !isObject( ToolsGuiTextProfile ) )
  203. new GuiControlProfile (ToolsGuiTextProfile)
  204. {
  205. fontType = $Gui::fontTypeRegular;
  206. fontSize = $GUI::fontSize[16];
  207. opaque = true;
  208. justify = "left";
  209. fontColor = EditorSettings.value("Theme/headerTextColor");
  210. category = "Tools";
  211. };
  212. if( !isObject( ToolsGuiTextBoldProfile ) )
  213. new GuiControlProfile (ToolsGuiTextBoldProfile : ToolsGuiTextProfile)
  214. {
  215. fontType = $Gui::fontTypeBold;
  216. };
  217. if( !isObject( ToolsGuiXDimensionText ) )
  218. new GuiControlProfile (ToolsGuiXDimensionText : ToolsGuiTextBoldProfile)
  219. {
  220. fillColor = "255 129 123 120";
  221. };
  222. if( !isObject( ToolsGuiYDimensionText ) )
  223. new GuiControlProfile (ToolsGuiYDimensionText : ToolsGuiTextBoldProfile)
  224. {
  225. fillColor = "129 255 123 120";
  226. };
  227. if( !isObject( ToolsGuiZDimensionText ) )
  228. new GuiControlProfile (ToolsGuiZDimensionText : ToolsGuiTextBoldProfile)
  229. {
  230. fillColor = "123 129 255 120";
  231. };
  232. if( !isObject( ToolsGuiTextBoldCenterProfile ) )
  233. new GuiControlProfile (ToolsGuiTextBoldCenterProfile : ToolsGuiTextProfile)
  234. {
  235. fontColor = EditorSettings.value("Theme/headerTextColor");
  236. fontType = $Gui::fontTypeBold;
  237. justify = "center";
  238. category = "Tools";
  239. };
  240. if( !isObject( ToolsGuiTextRightProfile ) )
  241. new GuiControlProfile (ToolsGuiTextRightProfile : ToolsGuiTextProfile)
  242. {
  243. justify = "right";
  244. category = "Tools";
  245. };
  246. if( !isObject( ToolsGuiTextBoldRightProfile ) )
  247. new GuiControlProfile (ToolsGuiTextBoldRightProfile : ToolsGuiTextRightProfile)
  248. {
  249. fontType = $Gui::fontTypeBold;
  250. };
  251. if( !isObject( ToolsGuiTextCenterProfile ) )
  252. new GuiControlProfile (ToolsGuiTextCenterProfile : ToolsGuiTextProfile)
  253. {
  254. justify = "center";
  255. category = "Tools";
  256. };
  257. if( !isObject( ToolsGuiInspectorTitleTextProfile ) )
  258. new GuiControlProfile (ToolsGuiInspectorTitleTextProfile)
  259. {
  260. fontType = $Gui::fontTypeBold;
  261. fontColor = EditorSettings.value("Theme/headerTextColor");
  262. category = "Tools";
  263. };
  264. if( !isObject( ToolsGuiAutoSizeTextProfile ) )
  265. new GuiControlProfile (ToolsGuiAutoSizeTextProfile)
  266. {
  267. fontType = $Gui::fontTypeRegular;
  268. fontSize = $GUI::fontSize[16];
  269. fontColor = "215 215 215";
  270. autoSizeWidth = true;
  271. autoSizeHeight = true;
  272. category = "Tools";
  273. };
  274. if( !isObject( ToolsGuiMLTextProfile ) )
  275. new GuiControlProfile( ToolsGuiMLTextProfile )
  276. {
  277. fontType = $Gui::fontTypeRegular;
  278. fontSize = $GUI::fontSize[16];
  279. fontColor = EditorSettings.value("Theme/fieldTextColor");
  280. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  281. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  282. fontColorLink = EditorSettings.value("Theme/fieldTextColor");
  283. fontColorLinkHL = EditorSettings.value("Theme/fieldTextHLColor");
  284. autoSizeWidth = true;
  285. autoSizeHeight = true;
  286. border = false;
  287. category = "Tools";
  288. };
  289. if( !isObject( ToolsGuiTextArrayProfile ) )
  290. new GuiControlProfile( ToolsGuiTextArrayProfile : ToolsGuiTextProfile )
  291. {
  292. fontColor = EditorSettings.value("Theme/fieldTextColor");
  293. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  294. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  295. fillColor = EditorSettings.value("Theme/fieldBGColor");
  296. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  297. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  298. border = false;
  299. category = "Tools";
  300. };
  301. if( !isObject( ToolsGuiTextListProfile ) )
  302. new GuiControlProfile( ToolsGuiTextListProfile : ToolsGuiTextProfile )
  303. {
  304. fontColor = EditorSettings.value("Theme/fieldTextColor");
  305. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  306. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  307. fillColor = EditorSettings.value("Theme/fieldBGColor");
  308. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  309. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  310. tab = true;
  311. canKeyFocus = true;
  312. category = "Tools";
  313. };
  314. if( !isObject( ToolsGuiTextEditProfile ) )
  315. new GuiControlProfile( ToolsGuiTextEditProfile )
  316. {
  317. opaque = true;
  318. bitmapAsset = "ToolsModule:textEditFrame_image";
  319. hasBitmapArray = true;
  320. border = -2; // fix to display textEdit img
  321. //borderWidth = "1"; // fix to display textEdit img
  322. borderColor = " 38 38 38 255";
  323. fillColor = EditorSettings.value("Theme/fieldBGColor");
  324. fillColorHL = "75 75 75 255";
  325. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  326. fontType = $Gui::fontTypeRegular;
  327. fontSize = $GUI::fontSize[16];
  328. fontColor = EditorSettings.value("Theme/fieldTextColor");
  329. fontColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  330. //fontColorSEL = EditorSettings.value("Theme/dividerMidColor");
  331. fontColorHL = EditorSettings.value("Theme/fieldTextSELColor");
  332. fontColorNA = EditorSettings.value("Theme/fieldTextNAColor");
  333. textOffset = "4 2";
  334. autoSizeWidth = false;
  335. autoSizeHeight = true;
  336. justify = "left";
  337. tab = true;
  338. canKeyFocus = true;
  339. category = "Tools";
  340. };
  341. if( !isObject( ToolsGuiNumericTextEditProfile ) )
  342. new GuiControlProfile( ToolsGuiNumericTextEditProfile : ToolsGuiTextEditProfile )
  343. {
  344. numbersOnly = true;
  345. category = "Tools";
  346. };
  347. if( !isObject( ToolsGuiNumericDropSliderTextProfile ) )
  348. new GuiControlProfile( ToolsGuiNumericDropSliderTextProfile : ToolsGuiTextEditProfile )
  349. {
  350. bitmapAsset = "ToolsModule:textEditSliderBox_image";
  351. category = "Tools";
  352. };
  353. if( !isObject( ToolsGuiRLProgressBitmapProfile ) )
  354. new GuiControlProfile( ToolsGuiRLProgressBitmapProfile )
  355. {
  356. border = false;
  357. hasBitmapArray = true;
  358. bitmapAsset = "ToolsModule:rl_loadingbar_image";
  359. category = "Tools";
  360. };
  361. if( !isObject( ToolsGuiProgressTextProfile ) )
  362. new GuiControlProfile( ToolsGuiProgressTextProfile )
  363. {
  364. fontSize = $GUI::fontSize[18];
  365. fontType = $Gui::fontTypeRegular;
  366. fontColor = "215 215 215";
  367. justify = "center";
  368. category = "Tools";
  369. };
  370. if( !isObject( ToolsGuiButtonProfile ) )
  371. new GuiControlProfile( ToolsGuiButtonProfile )
  372. {
  373. opaque = true;
  374. border = true;
  375. fillColor = EditorSettings.value("Theme/tabsColor");
  376. fillColorHL = EditorSettings.value("Theme/tabsHLColor");
  377. fillColorSEL = EditorSettings.value("Theme/tabsSELColor");
  378. fillColorNA = EditorSettings.value("Theme/tabsSELColor");
  379. fontColor = EditorSettings.value("Theme/fieldTextColor");
  380. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  381. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  382. fixedExtent = false;
  383. justify = "center";
  384. canKeyFocus = false;
  385. hasBitmapArray = false;
  386. category = "Tools";
  387. fontSize = $GUI::fontSize[16];
  388. fontType = $Gui::fontTypeRegular;
  389. };
  390. if( !isObject( ToolsGuiButtonGreenProfile ) )
  391. new GuiControlProfile( ToolsGuiButtonGreenProfile : ToolsGuiButtonProfile )
  392. {
  393. fillColor = "88 212 88";
  394. fillColorHL = "128 212 128";
  395. fontColor = "0 0 0";
  396. fontColorHL = "22 22 22";
  397. fontType = $Gui::fontTypeBold;
  398. };
  399. if( !isObject( ToolsGuiButtonRedProfile ) )
  400. new GuiControlProfile( ToolsGuiButtonRedProfile : ToolsGuiButtonProfile )
  401. {
  402. fillColor = "194 64 64";
  403. fillColorHL = "201 101 101";
  404. fontColor = "220 220 220";
  405. fontColorHL = "255 255 255";
  406. fontType = $Gui::fontTypeBold;
  407. };
  408. if( !isObject( ToolsGuiButtonHLRedProfile ) )
  409. new GuiControlProfile( ToolsGuiButtonHLRedProfile : ToolsGuiButtonProfile )
  410. {
  411. fillColorHL = "194 64 64";
  412. fontColorHL = "255 255 255";
  413. };
  414. if( !isObject( ToolsGuiButtonHLYellowProfile ) )
  415. new GuiControlProfile( ToolsGuiButtonHLYellowProfile : ToolsGuiButtonProfile )
  416. {
  417. fillColorHL = "240 192 64";
  418. fontColorHL = "0 0 0";
  419. };
  420. if( !isObject( ToolsGuiButtonActiveProfile ) )
  421. new GuiControlProfile( ToolsGuiButtonActiveProfile : ToolsGuiButtonProfile )
  422. {
  423. fillColor = "22 22 22";
  424. };
  425. if( !isObject( ToolsGuiButtonLTextProfile ) )
  426. new GuiControlProfile( ToolsGuiButtonLTextProfile : ToolsGuiButtonProfile )
  427. {
  428. fontSize = $GUI::fontSize[18];
  429. fontType = $Gui::fontTypeBold;
  430. };
  431. if( !isObject( ToolsGuiButtonSTextProfile ) )
  432. new GuiControlProfile( ToolsGuiButtonSTextProfile : ToolsGuiButtonProfile )
  433. {
  434. fontSize = $GUI::fontSize[14];
  435. };
  436. if( !isObject( ToolsGuiThumbHighlightButtonProfile ) )
  437. new GuiControlProfile( ToolsGuiThumbHighlightButtonProfile : ToolsGuiButtonProfile )
  438. {
  439. bitmapAsset = "ToolsModule:thumbHightlightButton_image";
  440. category = "Tools";
  441. };
  442. if( !isObject( ToolsGuiIconButtonProfile ) )
  443. new GuiControlProfile( ToolsGuiIconButtonProfile )
  444. {
  445. opaque = true;
  446. border = true;
  447. fontColor = EditorSettings.value("Theme/fieldTextColor");
  448. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  449. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  450. fixedExtent = false;
  451. justify = "center";
  452. canKeyFocus = false;
  453. bitmapAsset = "ToolsModule:iconbutton_image";
  454. hasBitmapArray = true;
  455. category = "Tools";
  456. };
  457. if( !isObject( ToolsGuiIconButtonSmallProfile ) )
  458. new GuiControlProfile( ToolsGuiIconButtonSmallProfile : ToolsGuiIconButtonProfile )
  459. {
  460. bitmapAsset = "ToolsModule:iconbuttonsmall_image";
  461. category = "Tools";
  462. fontSize = $GUI::fontSize[16];
  463. fontType = $Gui::fontTypeRegular;
  464. };
  465. if( !isObject( ToolsGuiIconButtonLargeProfile ) )
  466. new GuiControlProfile( ToolsGuiIconButtonLargeProfile : ToolsGuiIconButtonProfile )
  467. {
  468. bitmapAsset = "ToolsModule:iconbuttonlarge_image";
  469. category = "Tools";
  470. fontSize = $GUI::fontSize[18];
  471. fontType = $Gui::fontTypeMedium;
  472. };
  473. if( !isObject( ToolsGuiEditorTabPage ) )
  474. new GuiControlProfile(ToolsGuiEditorTabPage)
  475. {
  476. fontType = $Gui::fontTypeRegular;
  477. fontSize = $GUI::fontSize[16];
  478. opaque = true;
  479. border = false;
  480. fillColor = EditorSettings.value("Theme/tabsColor");
  481. fontColor = EditorSettings.value("Theme/fieldTextColor");
  482. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  483. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  484. fixedExtent = false;
  485. justify = "left";
  486. canKeyFocus = false;
  487. bitmapAsset = "ToolsModule:tab_image";
  488. hasBitmapArray = true;
  489. category = "Tools";
  490. };
  491. if( !isObject( ToolsGuiEditorTabButton ) )
  492. new GuiControlProfile(ToolsGuiEditorTabButton)
  493. {
  494. fontType = $Gui::fontTypeMedium;
  495. fontSize = $GUI::fontSize[16];
  496. opaque = true;
  497. border = false;
  498. fillColor = EditorSettings.value("Theme/tabsColor");
  499. fontColor = EditorSettings.value("Theme/fieldTextColor");
  500. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  501. fontColorNA = EditorSettings.value("Theme/fieldTextHLColor");
  502. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  503. fixedExtent = false;
  504. justify = "center";
  505. canKeyFocus = false;
  506. bitmapAsset = "ToolsModule:buttontab_image";
  507. hasBitmapArray = true;
  508. category = "Tools";
  509. };
  510. if( !isObject( ToolsGuiCheckBoxProfile ) )
  511. new GuiControlProfile( ToolsGuiCheckBoxProfile )
  512. {
  513. fontType = $Gui::fontTypeRegular;
  514. fontSize = $GUI::fontSize[16];
  515. opaque = false;
  516. fillColor = EditorSettings.value("Theme/fieldBGColor");
  517. border = false;
  518. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  519. fontColor = EditorSettings.value("Theme/fieldTextColor");
  520. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  521. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  522. fixedExtent = true;
  523. justify = "left";
  524. bitmapAsset = "ToolsModule:checkbox_image";
  525. hasBitmapArray = true;
  526. category = "Tools";
  527. };
  528. if( !isObject( ToolsGuiCheckBoxErrorProfile ) )
  529. new GuiControlProfile( ToolsGuiCheckBoxErrorProfile : ToolsGuiCheckBoxProfile)
  530. {
  531. fontColor = "240 64 64";
  532. };
  533. if( !isObject( ToolsGuiCheckBoxWarnProfile ) )
  534. new GuiControlProfile( ToolsGuiCheckBoxWarnProfile : ToolsGuiCheckBoxProfile)
  535. {
  536. fontColor = "240 192 64";
  537. };
  538. if( !isObject( ToolsGuiCheckBoxMsgProfile ) )
  539. new GuiControlProfile( ToolsGuiCheckBoxMsgProfile : ToolsGuiCheckBoxProfile)
  540. {
  541. fontColor = "240 240 240";
  542. };
  543. if( !isObject( ToolsGuiCheckBoxListProfile ) )
  544. new GuiControlProfile( ToolsGuiCheckBoxListProfile : ToolsGuiCheckBoxProfile)
  545. {
  546. bitmapAsset = "ToolsModule:checkbox_list_image";
  547. category = "Tools";
  548. };
  549. if( !isObject( ToolsGuiCheckBoxListFlipedProfile ) )
  550. new GuiControlProfile( ToolsGuiCheckBoxListFlipedProfile : ToolsGuiCheckBoxProfile)
  551. {
  552. bitmapAsset = "ToolsModule:checkbox_list_fliped_image";
  553. category = "Tools";
  554. };
  555. if( !isObject( ToolsGuiInspectorCheckBoxTitleProfile ) )
  556. new GuiControlProfile( ToolsGuiInspectorCheckBoxTitleProfile : ToolsGuiCheckBoxProfile ){
  557. fontColor = EditorSettings.value("Theme/fieldTextColor");
  558. category = "Tools";
  559. fontType = $Gui::fontTypeBold;
  560. };
  561. if( !isObject( ToolsGuiRadioProfile ) )
  562. new GuiControlProfile( ToolsGuiRadioProfile )
  563. {
  564. fontType = $Gui::fontTypeRegular;
  565. fontSize = $GUI::fontSize[16];
  566. fillColor = EditorSettings.value("Theme/fieldBGColor");
  567. fontColor = EditorSettings.value("Theme/fieldTextColor");
  568. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  569. fixedExtent = true;
  570. bitmapAsset = "ToolsModule:radioButton_image";
  571. hasBitmapArray = true;
  572. category = "Tools";
  573. };
  574. // Red
  575. if( !isObject( ToolsGuiRadioRedProfile ) )
  576. new GuiControlProfile( ToolsGuiRadioRedProfile )
  577. {
  578. fontType = $Gui::fontTypeRegular;
  579. fontSize = $GUI::fontSize[16];
  580. fillColor = EditorSettings.value("Theme/fieldBGColor");
  581. fontColor = EditorSettings.value("Theme/fieldTextColor");
  582. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  583. fixedExtent = true;
  584. bitmapAsset = "ToolsModule:radioButton_red_image";
  585. hasBitmapArray = true;
  586. category = "Tools";
  587. };
  588. // Green
  589. if( !isObject( ToolsGuiRadioGreenProfile ) )
  590. new GuiControlProfile( ToolsGuiRadioGreenProfile )
  591. {
  592. fontType = $Gui::fontTypeRegular;
  593. fontSize = $GUI::fontSize[16];
  594. fillColor = EditorSettings.value("Theme/fieldBGColor");
  595. fontColor = EditorSettings.value("Theme/fieldTextColor");
  596. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  597. fixedExtent = true;
  598. bitmapAsset = "ToolsModule:radioButton_green_image";
  599. hasBitmapArray = true;
  600. category = "Tools";
  601. };
  602. // Blue
  603. if( !isObject( ToolsGuiRadioBlueProfile ) )
  604. new GuiControlProfile( ToolsGuiRadioBlueProfile )
  605. {
  606. fontType = $Gui::fontTypeRegular;
  607. fontSize = $GUI::fontSize[16];
  608. fillColor = EditorSettings.value("Theme/fieldBGColor");
  609. fontColor = EditorSettings.value("Theme/fieldTextColor");
  610. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  611. fixedExtent = true;
  612. bitmapAsset = "ToolsModule:radioButton_blue_image";
  613. hasBitmapArray = true;
  614. category = "Tools";
  615. };
  616. if( !isObject( ToolsGuiScrollProfile ) )
  617. new GuiControlProfile( ToolsGuiScrollProfile )
  618. {
  619. opaque = true;
  620. fillColor = EditorSettings.value("Theme/tabsColor");
  621. fontColor = EditorSettings.value("Theme/fieldTextColor");
  622. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  623. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  624. border = true;
  625. bitmapAsset = "ToolsModule:scrollBar_image";
  626. hasBitmapArray = true;
  627. category = "Tools";
  628. };
  629. if( !isObject( ToolsGuiOverlayProfile ) )
  630. new GuiControlProfile( ToolsGuiOverlayProfile )
  631. {
  632. opaque = false;
  633. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  634. fontColor = EditorSettings.value("Theme/fieldTextColor");
  635. fontColorHL = EditorSettings.value("Theme/fieldTextGLColor");
  636. category = "Tools";
  637. };
  638. if( !isObject( ToolsGuiSliderProfile ) )
  639. new GuiControlProfile( ToolsGuiSliderProfile )
  640. {
  641. bitmapAsset = "ToolsModule:slider_image";
  642. category = "Tools";
  643. };
  644. if( !isObject( ToolsGuiSliderBoxProfile ) )
  645. new GuiControlProfile( ToolsGuiSliderBoxProfile )
  646. {
  647. bitmapAsset = "ToolsModule:slider_w_box_image";
  648. category = "Tools";
  649. };
  650. if( !isObject( ToolsGuiPopupMenuItemBorder ) )
  651. new GuiControlProfile( ToolsGuiPopupMenuItemBorder : ToolsGuiButtonProfile )
  652. {
  653. opaque = true;
  654. border = true;
  655. fontColor = EditorSettings.value("Theme/fieldTextColor");
  656. fontColorHL = EditorSettings.value("Theme/fieldTextGLColor");
  657. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  658. fixedExtent = false;
  659. justify = "center";
  660. canKeyFocus = false;
  661. bitmapAsset = "ToolsModule:button_image";
  662. category = "Tools";
  663. };
  664. if( !isObject( ToolsGuiPopUpMenuDefault ) )
  665. new GuiControlProfile( ToolsGuiPopUpMenuDefault : ToolsGuiDefaultProfile )
  666. {
  667. fontType = $Gui::fontTypeRegular;
  668. fontSize = $GUI::fontSize[16];
  669. opaque = true;
  670. mouseOverSelected = true;
  671. textOffset = "3 3";
  672. border = 0;
  673. borderThickness = 0;
  674. fixedExtent = true;
  675. bitmapAsset = "ToolsModule:scrollBar_image";
  676. hasBitmapArray = true;
  677. profileForChildren = ToolsGuiPopupMenuItemBorder;
  678. fillColor = EditorSettings.value("Theme/fieldBGColor");//"255 255 255";//100
  679. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");//"91 101 116";
  680. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");//"91 101 116";
  681. // font color is black
  682. fontColor = EditorSettings.value("Theme/fieldTextColor");//"215 215 215";
  683. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");//"215 215 215";
  684. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");//"215 215 215";
  685. fontColorNA = EditorSettings.value("Theme/fieldTextColor");//"215 215 215";
  686. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  687. category = "Tools";
  688. };
  689. if( !isObject( ToolsGuiPopUpMenuProfile ) )
  690. new GuiControlProfile( ToolsGuiPopUpMenuProfile : ToolsGuiPopUpMenuDefault )
  691. {
  692. textOffset = "6 3";
  693. bitmapAsset = "ToolsModule:dropDown_image";
  694. hasBitmapArray = true;
  695. border = 1;
  696. profileForChildren = ToolsGuiPopUpMenuDefault;
  697. category = "Tools";
  698. };
  699. if( !isObject( ToolsGuiPopUpMenuTabProfile ) )
  700. new GuiControlProfile( ToolsGuiPopUpMenuTabProfile : ToolsGuiPopUpMenuDefault )
  701. {
  702. bitmapAsset = "ToolsModule:dropDown_tab_image";
  703. textOffset = "6 3";
  704. canKeyFocus = true;
  705. hasBitmapArray = true;
  706. border = 1;
  707. profileForChildren = ToolsGuiPopUpMenuDefault;
  708. category = "Tools";
  709. };
  710. if( !isObject( ToolsGuiPopUpMenuEditProfile ) )
  711. new GuiControlProfile( ToolsGuiPopUpMenuEditProfile : ToolsGuiPopUpMenuDefault )
  712. {
  713. textOffset = "6 3";
  714. canKeyFocus = true;
  715. bitmapAsset = "ToolsModule:dropDown_image";
  716. hasBitmapArray = true;
  717. border = 1;
  718. profileForChildren = ToolsGuiPopUpMenuDefault;
  719. category = "Tools";
  720. };
  721. if( !isObject( ToolsGuiListBoxProfile ) )
  722. new GuiControlProfile( ToolsGuiListBoxProfile )
  723. {
  724. fillColorHL = EditorSettings.value("Theme/windowBackgroundColor");
  725. fillColorNA = EditorSettings.value("Theme/windowBackgroundColor");
  726. fontColor = EditorSettings.value("Theme/fieldTextColor");
  727. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  728. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  729. fontType = $Gui::fontTypeRegular;
  730. fontSize = $GUI::fontSize[18];
  731. tab = true;
  732. canKeyFocus = true;
  733. category = "Tools";
  734. };
  735. if( !isObject( ToolsGuiTabBookProfile ) )
  736. new GuiControlProfile( ToolsGuiTabBookProfile )
  737. {
  738. fillColorHL = EditorSettings.value("Theme/windowBackgroundColor");
  739. fillColorNA = EditorSettings.value("Theme/windowBackgroundColor");
  740. fontColor = EditorSettings.value("Theme/headerTextColor");
  741. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  742. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  743. fontType = $Gui::fontTypeRegular;
  744. fontSize = $GUI::fontSize[16];
  745. justify = "center";
  746. bitmapAsset = "ToolsModule:tab_image";
  747. tabWidth = 65;
  748. tabHeight = 25;
  749. tabPosition = "Top";
  750. tabRotation = "Horizontal";
  751. textOffset = "10 1";
  752. tab = true;
  753. cankeyfocus = true;
  754. category = "Tools";
  755. };
  756. if( !isObject( ToolsGuiTabBookNoBitmapProfile ) )
  757. new GuiControlProfile( ToolsGuiTabBookNoBitmapProfile : ToolsGuiTabBookProfile )
  758. {
  759. bitmapAsset = "";
  760. category = "Tools";
  761. };
  762. if( !isObject( ToolsGuiTabPageProfile ) )
  763. new GuiControlProfile( ToolsGuiTabPageProfile : ToolsGuiDefaultProfile )
  764. {
  765. fontType = $Gui::fontTypeBold;
  766. fontSize = $GUI::fontSize[16];
  767. justify = "center";
  768. bitmapAsset = "ToolsModule:tab_image";
  769. opaque = false;
  770. fillColor = "240 239 238";
  771. category = "Tools";
  772. };
  773. if( !isObject( ToolsGuiTreeViewProfile ) )
  774. new GuiControlProfile( ToolsGuiTreeViewProfile )
  775. {
  776. bitmapAsset = "ToolsModule:treeView_image";
  777. autoSizeHeight = true;
  778. canKeyFocus = true;
  779. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  780. fillColorHL = "116 116 116";
  781. fillColorSEL = "91 101 116";
  782. fillColorNA = "40 40 40";
  783. fontColor = "215 215 215";
  784. fontColorHL = "240 240 240";
  785. fontColorSEL= "240 240 240";
  786. fontColorNA = "150 150 150";
  787. borderColor = "34 34 34";
  788. borderColorHL = "34 34 34";
  789. fontType = $Gui::fontTypeRegular;
  790. fontSize = $GUI::fontSize[16];
  791. opaque = false;
  792. border = false;
  793. category = "Tools";
  794. fontColors[9] = "0 128 128"; //for active/selection of elements
  795. };
  796. if( !isObject( ToolsGuiTextPadProfile ) )
  797. new GuiControlProfile( ToolsGuiTextPadProfile )
  798. {
  799. fontType = $Gui::fontTypeMono;
  800. fontSize = $GUI::fontSize[16];
  801. tab = true;
  802. canKeyFocus = true;
  803. // Deviate from the Default
  804. opaque=true;
  805. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  806. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  807. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  808. fontColor = EditorSettings.value("Theme/fieldTextColor");
  809. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  810. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  811. cursorColor = EditorSettings.value("Theme/fieldTextSELColor");
  812. border = 0;
  813. category = "Tools";
  814. };
  815. if( !isObject( ToolsGuiFormProfile ) )
  816. new GuiControlProfile( ToolsGuiFormProfile : ToolsGuiTextProfile )
  817. {
  818. opaque = false;
  819. border = 5;
  820. justify = "center";
  821. profileForChildren = ToolsGuiButtonProfile;
  822. opaque = false;
  823. hasBitmapArray = true;
  824. bitmapAsset = "ToolsModule:button_image";
  825. category = "Tools";
  826. };
  827. // ----------------------------------------------------------------------------
  828. singleton GuiControlProfile( GuiBackFillProfile )
  829. {
  830. opaque = true;
  831. fillColor = "0 94 94";
  832. border = true;
  833. borderColor = "255 128 128";
  834. fontType = $Gui::fontTypeRegular;
  835. fontSize = $GUI::fontSize[16];
  836. fontColor = "215 215 215";
  837. fontColorHL = "50 50 50";
  838. fixedExtent = true;
  839. justify = "center";
  840. category = "Editor";
  841. };
  842. singleton GuiControlProfile( GuiDarkFillProfile )
  843. {
  844. opaque = true;
  845. fillColor = "25 25 25";
  846. border = false;
  847. category = "Editor";
  848. };
  849. singleton GuiControlProfile(GuiShaderEditorProfile : ToolsGuiDefaultProfile)
  850. {
  851. opaque = true;
  852. canKeyFocus = true;
  853. border = true;
  854. borderColor = "128 128 128 128";
  855. borderColorHL = "128 128 0";
  856. borderColorSEL = "128 0 128 128";
  857. };
  858. singleton GuiControlProfile( GuiControlListPopupProfile )
  859. {
  860. opaque = true;
  861. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  862. fillColorHL = "91 101 116";
  863. border = false;
  864. //borderColor = "0 0 0";
  865. fontColor = "215 215 215";
  866. fontColorHL = "240 240 240";
  867. fontColorNA = "50 50 50";
  868. textOffset = "0 2";
  869. autoSizeWidth = false;
  870. autoSizeHeight = true;
  871. tab = true;
  872. canKeyFocus = true;
  873. bitmapAsset = "ToolsModule:scrollBar_image";
  874. hasBitmapArray = true;
  875. category = "Editor";
  876. };
  877. singleton GuiControlProfile( GuiSceneGraphEditProfile )
  878. {
  879. canKeyFocus = true;
  880. tab = true;
  881. category = "Editor";
  882. };
  883. singleton GuiControlProfile( GuiInspectorButtonProfile : ToolsGuiButtonProfile )
  884. {
  885. //border = 1;
  886. justify = "Center";
  887. category = "Editor";
  888. };
  889. singleton GuiControlProfile( GuiInspectorSwatchButtonProfile )
  890. {
  891. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  892. borderColorNA = EditorSettings.value("Theme/dividerMidColor");
  893. fillColorNA = EditorSettings.value("Theme/fieldBGColor");
  894. borderColorHL = EditorSettings.value("Theme/dividerLightColor");
  895. category = "Editor";
  896. };
  897. singleton GuiControlProfile( GuiInspectorTextEditProfile )
  898. {
  899. // Transparent Background
  900. opaque = true;
  901. fillColor = EditorSettings.value("Theme/fieldBGColor");
  902. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  903. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  904. fillColorNA = EditorSettings.value("Theme/fieldBGSELColor");
  905. // No Border (Rendered by field control)
  906. border = false;
  907. tab = true;
  908. canKeyFocus = true;
  909. // font
  910. fontType = $Gui::fontTypeRegular;
  911. fontSize = $GUI::fontSize[16];
  912. fontColor = EditorSettings.value("Theme/fieldTextColor");
  913. fontColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  914. fontColorHL = EditorSettings.value("Theme/fieldTextSELColor");
  915. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  916. category = "Editor";
  917. };
  918. singleton GuiControlProfile( GuiDropdownTextEditProfile : ToolsGuiTextEditProfile )
  919. {
  920. bitmapAsset = "ToolsModule:dropdown_textEdit_image";
  921. category = "Editor";
  922. };
  923. singleton GuiControlProfile( GuiInspectorTextEditRightProfile : GuiInspectorTextEditProfile )
  924. {
  925. justify = "right";
  926. category = "Editor";
  927. };
  928. //Scene Tree GUI Inspector Dropdown menus
  929. singleton GuiControlProfile( GuiInspectorGroupProfile )
  930. {
  931. fontType = $Gui::fontTypeRegular;
  932. fontColor = EditorSettings.value("Theme/fieldTextColor");
  933. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  934. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  935. justify = "left";
  936. opaque = false;
  937. border = false;
  938. bitmapAsset = "ToolsModule:rollout_image";
  939. textOffset = "20 0";
  940. category = "Editor";
  941. };
  942. singleton GuiControlProfile( GuiInspectorFieldProfile)
  943. {
  944. // fill color
  945. opaque = true;
  946. fillColor = EditorSettings.value("Theme/fieldBGColor");
  947. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  948. fillColorSEL = EditorSettings.value("Theme/fieldBGSELColor");
  949. fillColorNA = EditorSettings.value("Theme/fieldBGSELColor");
  950. // border color
  951. border = false;
  952. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  953. borderColorHL = EditorSettings.value("Theme/dividerMidColor");
  954. borderColorNA = EditorSettings.value("Theme/dividerLightColor");
  955. //bevelColorHL = "255 255 255";
  956. //bevelColorLL = "0 0 0";
  957. // font
  958. fontType = $Gui::fontTypeRegular;
  959. fontSize = $GUI::fontSize[16];
  960. fontColor = EditorSettings.value("Theme/fieldTextColor");
  961. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  962. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  963. textOffset = "15 0";
  964. tab = true;
  965. canKeyFocus = true;
  966. category = "Editor";
  967. };
  968. /*
  969. singleton GuiControlProfile( GuiInspectorMultiFieldProfile : GuiInspectorFieldProfile )
  970. {
  971. opaque = true;
  972. fillColor = "50 50 230 30";
  973. };
  974. */
  975. singleton GuiControlProfile( GuiInspectorMultiFieldDifferentProfile : GuiInspectorFieldProfile )
  976. {
  977. border = true;
  978. borderColor = EditorSettings.value("Theme/dividerMidColor");
  979. };
  980. singleton GuiControlProfile( GuiInspectorDynamicFieldProfile : GuiInspectorFieldProfile )
  981. {
  982. // Transparent Background
  983. opaque = true;
  984. fillColor = EditorSettings.value("Theme/fieldBGColor");
  985. fillColorHL = EditorSettings.value("Theme/fieldBGHLColor");
  986. // No Border (Rendered by field control)
  987. border = false;
  988. tab = true;
  989. canKeyFocus = true;
  990. // font
  991. fontType = $Gui::fontTypeRegular;
  992. fontSize = $GUI::fontSize[16];
  993. fontColor = EditorSettings.value("Theme/headerTextColor");
  994. fontColorSEL = EditorSettings.value("Theme/fieldTextHLColor");
  995. fontColorHL = EditorSettings.value("Theme/fieldTextSELColor");
  996. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  997. category = "Editor";
  998. };
  999. singleton GuiControlProfile( GuiRolloutProfile )
  1000. {
  1001. border = 0;
  1002. borderColor = EditorSettings.value("Theme/dividerLightColor");
  1003. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1004. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1005. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  1006. hasBitmapArray = true;
  1007. bitmapAsset = "ToolsModule:rollout_image";
  1008. textoffset = "17 0";
  1009. category = "Editor";
  1010. };
  1011. singleton GuiControlProfile( GuiInspectorRolloutProfile0 )
  1012. {
  1013. // font
  1014. fontType = $Gui::fontTypeRegular;
  1015. fontSize = $GUI::fontSize[16];
  1016. fontColor = "220 220 220";
  1017. fontColorHL = "0 0 0";
  1018. fontColorNA = "160 160 160";
  1019. justify = "left";
  1020. opaque = false;
  1021. border = false;
  1022. borderColor = "190 190 190";
  1023. borderColorHL = "156 156 156";
  1024. borderColorNA = "255 64 64";
  1025. bitmapAsset = "ToolsModule:rollout_plusminus_header_image";
  1026. textOffset = "20 0";
  1027. category = "Editor";
  1028. };
  1029. singleton GuiControlProfile( GuiInspectorRolloutProfile1 )
  1030. {
  1031. // font
  1032. fontType = $Gui::fontTypeRegular;
  1033. fontSize = $GUI::fontSize[16];
  1034. fontColor = "200 200 200";
  1035. fontColorHL = "0 0 0";
  1036. fontColorNA = "160 160 160";
  1037. justify = "left";
  1038. opaque = false;
  1039. border = false;
  1040. borderColor = "190 190 190";
  1041. borderColorHL = "156 156 156";
  1042. borderColorNA = "255 64 64";
  1043. bitmapAsset = "ToolsModule:rollout_plusminus_header_darker_image";
  1044. textOffset = "30 0";
  1045. category = "Editor";
  1046. };
  1047. singleton GuiControlProfile( GuiInspectorStackProfile )
  1048. {
  1049. opaque = false;
  1050. border = false;
  1051. category = "Editor";
  1052. fillColor = EditorSettings.value("Theme/tabsColor");
  1053. fillColorHL = EditorSettings.value("Theme/tabsHLColor");
  1054. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1055. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1056. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  1057. };
  1058. singleton GuiControlProfile( GuiInspectorProfile : GuiInspectorFieldProfile )
  1059. {
  1060. opaque = true;
  1061. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  1062. border = 0;
  1063. cankeyfocus = true;
  1064. tab = true;
  1065. category = "Editor";
  1066. };
  1067. singleton GuiControlProfile( GuiInspectorInfoProfile : GuiInspectorFieldProfile )
  1068. {
  1069. opaque = true;
  1070. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  1071. border = 0;
  1072. cankeyfocus = true;
  1073. tab = true;
  1074. category = "Editor";
  1075. };
  1076. singleton GuiControlProfile( GuiInspectorBackgroundProfile : GuiInspectorFieldProfile )
  1077. {
  1078. border = 0;
  1079. cankeyfocus=true;
  1080. tab = true;
  1081. category = "Editor";
  1082. };
  1083. singleton GuiControlProfile( GuiInspectorTypeFileNameProfile )
  1084. {
  1085. // Transparent Background
  1086. opaque = false;
  1087. // No Border (Rendered by field control)
  1088. border = 0;
  1089. tab = true;
  1090. canKeyFocus = true;
  1091. // font
  1092. fontType = $Gui::fontTypeRegular;
  1093. fontSize = $GUI::fontSize[16];
  1094. // Center text
  1095. justify = "center";
  1096. fontColor = "240 240 240";
  1097. fontColorHL = "240 240 240";
  1098. fontColorNA = "215 215 215";
  1099. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  1100. fillColorHL = "91 101 116";
  1101. fillColorNA = "244 244 244";
  1102. borderColor = "190 190 190";
  1103. borderColorHL = "156 156 156";
  1104. borderColorNA = "64 64 64";
  1105. category = "Editor";
  1106. };
  1107. singleton GuiControlProfile( GuiInspectorColumnCtrlProfile : GuiInspectorFieldProfile )
  1108. {
  1109. opaque = true;
  1110. fillColor = "210 210 210";
  1111. border = 0;
  1112. category = "Editor";
  1113. };
  1114. singleton GuiControlProfile( InspectorTypeEnumProfile : GuiInspectorFieldProfile )
  1115. {
  1116. mouseOverSelected = true;
  1117. bitmapAsset = "ToolsModule:scrollBar_image";
  1118. hasBitmapArray = true;
  1119. opaque=true;
  1120. border=true;
  1121. textOffset = "4 0";
  1122. category = "Editor";
  1123. };
  1124. singleton GuiControlProfile( InspectorTypeCheckboxProfile : GuiInspectorFieldProfile )
  1125. {
  1126. bitmapAsset = "ToolsModule:checkBox_image";
  1127. hasBitmapArray = true;
  1128. opaque=false;
  1129. border=false;
  1130. textOffset = "4 0";
  1131. category = "Editor";
  1132. };
  1133. singleton GuiControlProfile( GuiToolboxButtonProfile : ToolsGuiButtonProfile )
  1134. {
  1135. justify = "center";
  1136. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1137. border = 0;
  1138. textOffset = "0 0";
  1139. category = "Editor";
  1140. };
  1141. singleton GuiControlProfile( GuiDirectoryTreeProfile : ToolsGuiTreeViewProfile )
  1142. {
  1143. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1144. fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor");
  1145. fillColorHL = EditorSettings.value("Theme/fieldBGColor");
  1146. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  1147. fontType = $Gui::fontTypeRegular;
  1148. fontSize = $GUI::fontSize[16];
  1149. category = "Editor";
  1150. };
  1151. singleton GuiControlProfile( GuiDirectoryFileListProfile )
  1152. {
  1153. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1154. fontColorSEL= EditorSettings.value("Theme/fieldTextSELColor");
  1155. fillColorHL = EditorSettings.value("Theme/fieldBGColor");
  1156. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  1157. fontType = $Gui::fontTypeRegular;
  1158. fontSize = $GUI::fontSize[16];
  1159. category = "Editor";
  1160. };
  1161. singleton GuiControlProfile( GuiDragAndDropProfile )
  1162. {
  1163. category = "Editor";
  1164. };
  1165. singleton GuiControlProfile( GuiInspectorFieldInfoPaneProfile )
  1166. {
  1167. opaque = false;
  1168. fillcolor = GuiInspectorBackgroundProfile.fillColor;
  1169. borderColor = ToolsGuiDefaultProfile.borderColor;
  1170. border = 1;
  1171. category = "Editor";
  1172. };
  1173. singleton GuiControlProfile( GuiInspectorFieldInfoMLTextProfile : ToolsGuiMLTextProfile )
  1174. {
  1175. opaque = false;
  1176. border = 0;
  1177. textOffset = "5 0";
  1178. category = "Editor";
  1179. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1180. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1181. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  1182. };
  1183. singleton GuiControlProfile( GuiEditorScrollProfile )
  1184. {
  1185. opaque = true;
  1186. fillcolor = EditorSettings.value("Theme/windowBackgroundColor");
  1187. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  1188. border = 1;
  1189. bitmapAsset = "ToolsModule:scrollBar_image";
  1190. hasBitmapArray = true;
  1191. category = "Editor";
  1192. };
  1193. singleton GuiControlProfile( GuiCreatorIconButtonProfile )
  1194. {
  1195. opaque = true;
  1196. fillColor = EditorSettings.value("Theme/tabsColor");
  1197. fillColorHL = EditorSettings.value("Theme/tabsHLColor");
  1198. fillColorSEL = EditorSettings.value("Theme/tabsSELColor");
  1199. fillColorNA = EditorSettings.value("Theme/tabsSELColor");
  1200. //tab = true;
  1201. //canKeyFocus = true;
  1202. fontType = $Gui::fontTypeBold;
  1203. fontSize = $GUI::fontSize[18];
  1204. fontColor = EditorSettings.value("Theme/fieldTextColor");
  1205. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1206. fontColorNA = EditorSettings.value("Theme/fieldTextSELColor");
  1207. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  1208. border = 1;
  1209. borderColor = EditorSettings.value("Theme/dividerMidColor");
  1210. borderColorHL = EditorSettings.value("Theme/dividerLightColor");
  1211. borderColorNA = EditorSettings.value("Theme/dividerDarkColor");
  1212. //bevelColorHL = "255 255 255";
  1213. //bevelColorLL = "0 0 0";
  1214. category = "Editor";
  1215. };
  1216. singleton GuiControlProfile( ToolsGuiMenuBarProfile )
  1217. {
  1218. fillColor = EditorSettings.value("Theme/headerColor");
  1219. fillcolorHL = EditorSettings.value("Theme/tabsSELColor");
  1220. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  1221. borderColorHL = EditorSettings.value("Theme/dividerMidColor");
  1222. fontColor = EditorSettings.value("Theme/headerTextColor");
  1223. fontColorSEL = EditorSettings.value("Theme/fieldTextSELColor");
  1224. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1225. fontColorNA = EditorSettings.value("Theme/fieldTextNAColor");
  1226. border = 1;
  1227. borderThickness = 1;
  1228. opaque = true;
  1229. mouseOverSelected = true;
  1230. category = "Editor";
  1231. bitmapAsset = "ToolsModule:checkbox_menubar_image";
  1232. fontSize = $GUI::fontSize[18];
  1233. fontType = $Gui::fontTypeRegular;
  1234. };
  1235. singleton GuiControlProfile( ToolsMenubarProfile : ToolsGuiDefaultProfile )
  1236. {
  1237. bitmap = "./menubar";
  1238. category = "Editor";
  1239. opaque = true;
  1240. border = false;
  1241. fillColor = EditorSettings.value("Theme/headerColor");
  1242. fontColor = EditorSettings.value("Theme/headerTextColor");
  1243. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1244. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  1245. };
  1246. singleton GuiControlProfile (menubarProfile)
  1247. {
  1248. opaque = false;
  1249. border = -2;
  1250. category = "Editor";
  1251. bitmap = "./menubar";
  1252. category = "Editor";
  1253. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  1254. fontColor = EditorSettings.value("Theme/headerTextColor");
  1255. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1256. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  1257. fontSize = 15;
  1258. };
  1259. singleton GuiControlProfile (editorMenubarProfile)
  1260. {
  1261. border = -2;
  1262. category = "Editor";
  1263. bitmap = "./editor-menubar";
  1264. category = "Editor";
  1265. };
  1266. singleton GuiControlProfile (editorMenu_wBorderProfile)
  1267. {
  1268. border = -2;
  1269. category = "Editor";
  1270. bitmap = "./menu-fullborder";
  1271. category = "Editor";
  1272. };
  1273. singleton GuiControlProfile (inspectorStyleRolloutProfile)
  1274. {
  1275. border = -2;
  1276. category = "Editor";
  1277. bitmap = "./inspector-style-rollout";
  1278. category = "Editor";
  1279. };
  1280. singleton GuiControlProfile (inspectorStyleRolloutListProfile)
  1281. {
  1282. border = -2;
  1283. category = "Editor";
  1284. bitmap = "./inspector-style-rollout-list";
  1285. category = "Editor";
  1286. };
  1287. singleton GuiControlProfile (inspectorStyleRolloutDarkProfile)
  1288. {
  1289. border = -2;
  1290. category = "Editor";
  1291. bitmap = "./inspector-style-rollout-dark";
  1292. fillColor = EditorSettings.value("Theme/windowBackgroundColor");
  1293. fontColor = EditorSettings.value("Theme/headerTextColor");
  1294. fontColorHL = EditorSettings.value("Theme/fieldTextHLColor");
  1295. borderColor = EditorSettings.value("Theme/dividerDarkColor");
  1296. };
  1297. singleton GuiControlProfile (inspectorStyleRolloutInnerProfile)
  1298. {
  1299. border = -2;
  1300. category = "Editor";
  1301. bitmap = "./inspector-style-rollout_inner";
  1302. category = "Editor";
  1303. };
  1304. singleton GuiControlProfile (inspectorStyleRolloutNoHeaderProfile)
  1305. {
  1306. border = -2;
  1307. category = "Editor";
  1308. bitmap = "./inspector-style-rollout-noheader";
  1309. category = "Editor";
  1310. };
  1311. singleton GuiControlProfile (IconDropdownProfile)
  1312. {
  1313. border = -2;
  1314. opaque = true;
  1315. border = true;
  1316. category = "Editor";
  1317. //bitmap = "./icon-dropdownbar";
  1318. fillColor = EditorSettings.value("Theme/headerColor");
  1319. };
  1320. //
  1321. singleton GuiControlProfile (GuiSimpleBorderProfile)
  1322. {
  1323. opaque = false;
  1324. border = 1;
  1325. category = "Editor";
  1326. };
  1327. singleton GuiControlProfile (GuiDisabledTextEditProfile)
  1328. {
  1329. opaque = false;
  1330. border = 0;
  1331. bitmapAsset = "ToolsModule:textEdit_image";
  1332. borderColor = "255 255 255 200";
  1333. fontColor = "0 0 0";
  1334. fontColorHL = "255 255 255";
  1335. fontColorNA = "128 128 128";
  1336. textOffset = "4 2";
  1337. autoSizeWidth = false;
  1338. autoSizeHeight = false;
  1339. tab = false;
  1340. canKeyFocus = false;
  1341. category = "Editor";
  1342. };
  1343. // -----------------------------------------------------------------------------
  1344. if(!isObject(ToolsGuiConsoleProfile))
  1345. new GuiControlProfile(ToolsGuiConsoleProfile)
  1346. {
  1347. border = 0;
  1348. borderColor = EditorSettings.value("Theme/tabsColor");
  1349. fontType = $Gui::fontTypeMono;
  1350. fontSize = $GUI::fontSize[12];
  1351. fillColor = "24 24 24";
  1352. fontColor = "240 240 240";
  1353. fontColorHL = "240 192 64";
  1354. fontColorNA = "240 64 64";
  1355. fontColors[6] = "100 100 100";
  1356. fontColors[7] = "100 100 0";
  1357. fontColors[8] = "0 0 100";
  1358. fontColors[9] = "0 100 0";
  1359. category = "Tools";
  1360. };
  1361. if(!isObject(ToolsGuiConsoleTinyProfile))
  1362. new GuiControlProfile(ToolsGuiConsoleTinyProfile : ToolsGuiConsoleProfile)
  1363. {
  1364. fontSize = $GUI::fontSize[9];
  1365. };
  1366. if(!isObject(ToolsGuiConsoleSmallProfile))
  1367. new GuiControlProfile(ToolsGuiConsoleSmallProfile : ToolsGuiConsoleProfile)
  1368. {
  1369. fontSize = $GUI::fontSize[10];
  1370. };
  1371. if(!isObject(ToolsGuiConsoleMediumProfile))
  1372. new GuiControlProfile(ToolsGuiConsoleMediumProfile : ToolsGuiConsoleProfile)
  1373. {
  1374. fontSize = $GUI::fontSize[14];
  1375. };
  1376. if(!isObject(ToolsGuiConsoleLargeProfile))
  1377. new GuiControlProfile(ToolsGuiConsoleLargeProfile : ToolsGuiConsoleProfile)
  1378. {
  1379. fontSize = $GUI::fontSize[16];
  1380. };
  1381. if(!isObject(ToolsGuiConsoleXLProfile))
  1382. new GuiControlProfile(ToolsGuiConsoleXLProfile : ToolsGuiConsoleProfile)
  1383. {
  1384. fontSize = $GUI::fontSize[18];
  1385. };
  1386. if(!isObject(ToolsGuiConsoleTextProfile))
  1387. new GuiControlProfile(ToolsGuiConsoleTextProfile)
  1388. {
  1389. fontColor = "0 0 0";
  1390. autoSizeWidth = true;
  1391. autoSizeHeight = true;
  1392. textOffset = "2 2";
  1393. opaque = true;
  1394. fillColor = "255 255 255";
  1395. border = true;
  1396. borderThickness = 1;
  1397. borderColor = "0 0 0";
  1398. category = "Tools";
  1399. };
  1400. if(!isObject(ToolsConsoleScrollProfile))
  1401. new GuiControlProfile(ToolsConsoleScrollProfile : ToolsGuiScrollProfile)
  1402. {
  1403. opaque = true;
  1404. fillColor = "30 30 30";
  1405. border = 1;
  1406. borderThickness = 1;
  1407. borderColor = "0 0 0";
  1408. category = "Tools";
  1409. };
  1410. if(!isObject(ToolsConsoleTextEditProfile))
  1411. new GuiControlProfile(ToolsConsoleTextEditProfile : ToolsGuiTextEditProfile)
  1412. {
  1413. fontType = $Gui::fontTypeMono;
  1414. fontSize = $GUI::fontSize[12];
  1415. cursorColor = "255 255 255";
  1416. category = "Tools";
  1417. };
  1418. // -----------------------------------------------------------------------------