guiMaterialPreviewWindow.ed.gui 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl() {
  3. canSaveDynamicFields = "0";
  4. internalName = "MatEdPreviewWindowContainer";
  5. Enabled = "1";
  6. isContainer = "1";
  7. Profile = "ToolsGuiDefaultProfile";
  8. HorizSizing = "width";
  9. VertSizing = "height";
  10. Position = "0 0";
  11. Extent = "800 600";
  12. MinExtent = "8 2";
  13. canSave = "1";
  14. Visible = "1";
  15. hovertime = "1000";
  16. new GuiWindowCollapseCtrl(MaterialEditorPreviewWindow) {
  17. canSaveDynamicFields = "0";
  18. internalName = "MatEdPreviewWindow";
  19. Enabled = "1";
  20. isContainer = "1";
  21. Profile = "ToolsGuiWindowProfile";
  22. HorizSizing = "windowRelative";
  23. VertSizing = "windowRelative";
  24. Position = getWord($pref::Video::mode, 0) - 360
  25. SPC getWord(EditorGuiToolbar.extent, 1) + 6;
  26. Extent = "360 300";
  27. MinExtent = "300 150";
  28. canSave = "1";
  29. Visible = "1";
  30. hovertime = "1000";
  31. Margin = "4 4 4 4";
  32. Padding = "0 0 0 0";
  33. AnchorTop = "1";
  34. AnchorBottom = "0";
  35. AnchorLeft = "1";
  36. AnchorRight = "0";
  37. resizeWidth = "1";
  38. resizeHeight = "1";
  39. canMove = "1";
  40. canClose = "0";
  41. canMinimize = "0";
  42. canMaximize = "0";
  43. closeCommand = "MaterialEditorPreviewWindow.setVisible(false);";
  44. minSize = "50 50";
  45. EdgeSnap = "1";
  46. text = ":: Material Editor - Preview";
  47. /*new GuiContainer(MaterialEditorPreviewPane) {
  48. canSaveDynamicFields = "0";
  49. Enabled = "1";
  50. isContainer = "1"; //1
  51. Profile = "ToolsGuiDefaultProfile";
  52. HorizSizing = "right";
  53. VertSizing = "bottom";
  54. Position = "4 23";
  55. Extent = "200 221";
  56. MinExtent = "8 2";
  57. canSave = "1";
  58. Visible = "1";
  59. tooltipprofile = "ToolsGuiToolTipProfile";
  60. hovertime = "1000";
  61. Docking = "Client";
  62. Margin = "0 0 0 0";
  63. Padding = "0 0 0 0";
  64. AnchorTop = "1";
  65. AnchorBottom = "0";
  66. AnchorLeft = "1";
  67. AnchorRight = "0";*/
  68. new GuiContainer(matEd_previewPanel) {
  69. canSaveDynamicFields = "0";
  70. Enabled = "1";
  71. isContainer = "1";
  72. Profile = "ToolsGuiDefaultProfile";
  73. HorizSizing = "width";
  74. VertSizing = "height";
  75. position = "4 45";
  76. Extent = "300 300";
  77. MinExtent = "8 2";
  78. canSave = "1";
  79. Visible = "1";
  80. hovertime = "1000";
  81. Docking = "Client";
  82. Margin = "24 1 3 3 ";
  83. new GuiSwatchButtonCtrl(matEd_previewBackground) {
  84. canSaveDynamicFields = "0";
  85. Enabled = "1";
  86. isContainer = "0";
  87. Profile = "GuiInspectorSwatchButtonProfile";
  88. HorizSizing = "width";
  89. VertSizing = "height";
  90. position = "-1 -1";
  91. Extent = "302 302";
  92. MinExtent = "8 2";
  93. canSave = "1";
  94. Visible = "1";
  95. hovertime = "1000";
  96. color = "0 0 0 .8";
  97. //bitmap = "tools/materialEditor/gui/gridTiny2.PNG";
  98. //wrap = "1";
  99. };
  100. new GuiContainer(){ // this is blocking the mouse imput to the swatch imput behind it
  101. HorizSizing = "width";
  102. VertSizing = "height";
  103. Position = "-1 -1";
  104. Extent = "302 302";
  105. };
  106. new GuiMaterialPreview(matEd_previewObjectView) {
  107. canSaveDynamicFields = "0";
  108. Enabled = "1";
  109. isContainer = "0";
  110. Profile = "ToolsGuiDefaultProfile";
  111. HorizSizing = "width";
  112. VertSizing = "height";
  113. position = "1 1";
  114. Extent = "299 299";
  115. MinExtent = "8 2";
  116. canSave = "1";
  117. Visible = "1";
  118. hovertime = "1000";
  119. Margin = "0 0 0 0";
  120. Padding = "0 0 0 0";
  121. AnchorTop = "1";
  122. AnchorBottom = "0";
  123. AnchorLeft = "1";
  124. AnchorRight = "0";
  125. cameraZRot = "0";
  126. forceFOV = "0";
  127. };
  128. //};
  129. };
  130. new GuiPopUpMenuCtrl(matEd_quickPreview_Popup) {
  131. canSaveDynamicFields = "0";
  132. Enabled = "1";
  133. isContainer = "0";
  134. Profile = "ToolsGuiPopUpMenuProfile";
  135. HorizSizing = "right";
  136. VertSizing = "bottom";
  137. position = "4 24";
  138. Extent = "67 18";
  139. MinExtent = "8 2";
  140. canSave = "1";
  141. Visible = "1";
  142. Command = "MaterialEditorGui.updatePreviewObject();";
  143. ToolTip = "Changes the Preview Mesh";
  144. hovertime = "1000";
  145. Margin = "0 0 0 0";
  146. Padding = "0 0 0 0";
  147. AnchorTop = "1";
  148. AnchorBottom = "0";
  149. AnchorLeft = "1";
  150. AnchorRight = "0";
  151. text = "Sphere";
  152. maxLength = "1024";
  153. maxPopupHeight = "200";
  154. sbUsesNAColor = "0";
  155. reverseTextList = "0";
  156. bitmapBounds = "16 16";
  157. };
  158. new GuiSwatchButtonCtrl(MaterialPreviewBackgroundPicker) { // Background Color
  159. canSaveDynamicFields = "0";
  160. Enabled = "1";
  161. isContainer = "0";
  162. Profile = "GuiInspectorSwatchButtonProfile";
  163. HorizSizing = "left";
  164. VertSizing = "top";
  165. position = "330 270";
  166. Extent = "20 20";
  167. MinExtent = "8 2";
  168. canSave = "1";
  169. Visible = "1";
  170. Command = "getColorF($thisControl.color, \"MaterialEditorGui.updatePreviewBackground\");";
  171. color = "0 0 0 .7";
  172. hovertime = "1000";
  173. groupNum = "-1";
  174. buttonType = "PushButton";
  175. useMouseEvents = "0";
  176. ToolTip ="Change Background Color (preview)";
  177. tooltipprofile = "ToolsGuiToolTipProfile";
  178. };
  179. // Ambient light color picker
  180. new GuiSwatchButtonCtrl(matEd_ambientLightColorPicker) {
  181. canSaveDynamicFields = "0";
  182. Enabled = "1";
  183. color = "1 1 1 1";
  184. isContainer = "0";
  185. Profile = "GuiInspectorSwatchButtonProfile";
  186. HorizSizing = "right";
  187. VertSizing = "bottom";
  188. position = "81 28";
  189. Extent = "14 14";
  190. MinExtent = "8 2";
  191. canSave = "1";
  192. Visible = "1";
  193. Command = "getColorF($ThisControl.color, \"MaterialEditorGui.updateAmbientColor\");";
  194. hovertime = "1000";
  195. groupNum = "-1";
  196. ToolTip ="Change Ambient Light Color";
  197. tooltipprofile = "ToolsGuiToolTipProfile";
  198. buttonType = "PushButton";
  199. useMouseEvents = "0";
  200. };
  201. // Light color picker
  202. new GuiSwatchButtonCtrl(matEd_lightColorPicker) {
  203. canSaveDynamicFields = "0";
  204. Enabled = "1";
  205. color = "1 1 1 1";
  206. isContainer = "0";
  207. Profile = "GuiInspectorSwatchButtonProfile";
  208. HorizSizing = "right";
  209. VertSizing = "bottom";
  210. position = "75 23";
  211. Extent = "14 14";
  212. MinExtent = "8 2";
  213. canSave = "1";
  214. Visible = "1";
  215. Command = "getColorF($ThisControl.color, \"MaterialEditorGui.updateLightColor\");";
  216. hovertime = "1000";
  217. groupNum = "-1";
  218. ToolTip ="Change Normal Light Color";
  219. tooltipprofile = "ToolsGuiToolTipProfile";
  220. buttonType = "PushButton";
  221. useMouseEvents = "0";
  222. };
  223. new GuiCheckboxCtrl(){
  224. position = "245 25";
  225. Extent = "98 18";
  226. HorizSizing = "left";
  227. profile = "ToolsGuiCheckBoxProfile";
  228. Variable = "MaterialEditorGui.livePreview";
  229. Command = "MaterialEditorGui.updateLivePreview($ThisControl.getValue());";
  230. text = "Preview in World";
  231. };
  232. // window / panel buttons
  233. new GuiBitmapButtonCtrl(MaterialEditorGui_UnDockBtn) {
  234. canSaveDynamicFields = "0";
  235. internalName = "";
  236. Enabled = "1";
  237. isContainer = "0";
  238. Profile = "ToolsGuiButtonProfile";
  239. HorizSizing = "left";
  240. VertSizing = "bottom";
  241. Position = "330 1";
  242. Extent = "18 18";
  243. MinExtent = "8 8";
  244. canSave = "1";
  245. Visible = "0";
  246. Command = "MaterialEditorGui.releaseSidePanel();";
  247. tooltipprofile = "ToolsGuiToolTipProfile";
  248. ToolTip = "Detach Sidepanel";
  249. hovertime = "1000";
  250. bitmapAsset = "ToolsModule:panel_undock_n_image";
  251. text = "";
  252. groupNum = "-1";
  253. buttonType = "PushButton";
  254. useMouseEvents = "0";
  255. };
  256. new GuiBitmapButtonCtrl(MaterialEditorGui_DockBtn) {
  257. canSaveDynamicFields = "0";
  258. internalName = "";
  259. Enabled = "1";
  260. isContainer = "0";
  261. Profile = "ToolsGuiButtonProfile";
  262. HorizSizing = "left";
  263. VertSizing = "bottom";
  264. Position = "330 1";
  265. Extent = "18 18";
  266. MinExtent = "8 8";
  267. canSave = "1";
  268. Visible = "0";
  269. Command = "MaterialEditorGui.dockSidePanel();";
  270. tooltipprofile = "ToolsGuiToolTipProfile";
  271. ToolTip = "Dock Sidepanel";
  272. hovertime = "1000";
  273. bitmapAsset = "ToolsModule:panel_dock_n_image";
  274. text = "";
  275. groupNum = "-1";
  276. buttonType = "PushButton";
  277. useMouseEvents = "0";
  278. };
  279. new GuiBitmapButtonCtrl(MaterialEditorGui_HideBtn) {
  280. canSaveDynamicFields = "0";
  281. internalName = "";
  282. Enabled = "1";
  283. isContainer = "0";
  284. Profile = "ToolsGuiButtonProfile";
  285. HorizSizing = "left";
  286. VertSizing = "bottom";
  287. Position = "312 1";
  288. Extent = "18 18";
  289. MinExtent = "8 8";
  290. canSave = "1";
  291. Visible = "1";
  292. Command = "MaterialEditorGui.hideSidePanel();";
  293. tooltipprofile = "ToolsGuiToolTipProfile";
  294. ToolTip = "Hide Sidepanel";
  295. hovertime = "1000";
  296. bitmapAsset = "ToolsModule:panel_hide_n_image";
  297. text = "";
  298. groupNum = "-1";
  299. buttonType = "PushButton";
  300. useMouseEvents = "0";
  301. };
  302. new GuiBitmapButtonCtrl(MaterialEditorGui_ShowBtn) {
  303. canSaveDynamicFields = "0";
  304. internalName = "";
  305. Enabled = "1";
  306. isContainer = "0";
  307. Profile = "ToolsGuiButtonProfile";
  308. HorizSizing = "right";
  309. VertSizing = "bottom";
  310. Position = "4 1";
  311. Extent = "18 18";
  312. MinExtent = "8 8";
  313. canSave = "1";
  314. Visible = "1";
  315. Command = "MaterialEditorGui.showSidePanel();";
  316. tooltipprofile = "ToolsGuiToolTipProfile";
  317. ToolTip = "Show Sidepanel";
  318. hovertime = "1000";
  319. bitmapAsset = "ToolsModule:panel_show_n_image";
  320. text = "";
  321. groupNum = "-1";
  322. buttonType = "PushButton";
  323. useMouseEvents = "0";
  324. };
  325. };
  326. new GuiWindowCtrl(matEd_addCubemapWindow) {
  327. canSaveDynamicFields = "0";
  328. isContainer = "1";
  329. Profile = "ToolsGuiWindowProfile";
  330. HorizSizing = "center";
  331. VertSizing = "center";
  332. position = "362 333";
  333. Extent = "300 99";
  334. MinExtent = "48 92";
  335. canSave = "1";
  336. Visible = "0";
  337. tooltipprofile = "ToolsGuiToolTipProfile";
  338. hovertime = "1000";
  339. Margin = "0 0 0 0";
  340. Padding = "0 0 0 0";
  341. AnchorTop = "1";
  342. AnchorBottom = "0";
  343. AnchorLeft = "1";
  344. AnchorRight = "0";
  345. resizeWidth = "1";
  346. resizeHeight = "1";
  347. canMove = "1";
  348. canClose = "0";
  349. canMinimize = "0";
  350. canMaximize = "0";
  351. minSize = "50 50";
  352. EdgeSnap = "1";
  353. text = "Create Cubemap";
  354. new GuiTextEditCtrl() {
  355. canSaveDynamicFields = "0";
  356. internalName = "cubemapName";
  357. isContainer = "0";
  358. Profile = "ToolsGuiTextEditProfile";
  359. HorizSizing = "right";
  360. VertSizing = "bottom";
  361. position = "96 35";
  362. Extent = "196 18";
  363. MinExtent = "8 2";
  364. canSave = "1";
  365. Visible = "1";
  366. tooltipprofile = "ToolsGuiToolTipProfile";
  367. hovertime = "1000";
  368. Margin = "0 0 0 0";
  369. Padding = "0 0 0 0";
  370. AnchorTop = "1";
  371. AnchorBottom = "0";
  372. AnchorLeft = "1";
  373. AnchorRight = "0";
  374. maxLength = "1024";
  375. historySize = "0";
  376. password = "0";
  377. tabComplete = "0";
  378. sinkAllKeyEvents = "0";
  379. AltCommand = "";
  380. passwordMask = "*";
  381. };
  382. new GuiTextCtrl() {
  383. canSaveDynamicFields = "0";
  384. isContainer = "0";
  385. Profile = "ToolsGuiTextProfile";
  386. HorizSizing = "right";
  387. VertSizing = "bottom";
  388. position = "12 36";
  389. Extent = "77 16";
  390. MinExtent = "8 2";
  391. canSave = "1";
  392. Visible = "1";
  393. tooltipprofile = "ToolsGuiToolTipProfile";
  394. hovertime = "1000";
  395. Margin = "0 0 0 0";
  396. Padding = "0 0 0 0";
  397. AnchorTop = "1";
  398. AnchorBottom = "0";
  399. AnchorLeft = "1";
  400. AnchorRight = "0";
  401. maxLength = "1024";
  402. text = "Cubemap Name";
  403. };
  404. new GuiButtonCtrl() {
  405. canSaveDynamicFields = "0";
  406. isContainer = "0";
  407. Profile = "ToolsGuiButtonProfile";
  408. HorizSizing = "right";
  409. VertSizing = "bottom";
  410. position = "96 68";
  411. Extent = "126 22";
  412. MinExtent = "8 2";
  413. canSave = "1";
  414. Visible = "1";
  415. tooltipprofile = "ToolsGuiToolTipProfile";
  416. hovertime = "1000";
  417. groupNum = "-1";
  418. buttonType = "PushButton";
  419. useMouseEvents = "0";
  420. text = "Create";
  421. Command = "MaterialEditorGui.addCubemap( matEd_addCubemapWindow-->cubemapName.getText() );matEd_addCubemapWindow.setVisible(0);";
  422. };
  423. new GuiButtonCtrl() {
  424. canSaveDynamicFields = "0";
  425. isContainer = "0";
  426. Profile = "ToolsGuiButtonProfile";
  427. HorizSizing = "right";
  428. VertSizing = "bottom";
  429. position = "228 68";
  430. Extent = "64 22";
  431. MinExtent = "8 2";
  432. canSave = "1";
  433. Visible = "1";
  434. tooltipprofile = "ToolsGuiToolTipProfile";
  435. hovertime = "1000";
  436. groupNum = "-1";
  437. buttonType = "PushButton";
  438. useMouseEvents = "0";
  439. text = "Cancel";
  440. Command = "matEd_addCubemapWindow.setVisible(0);";
  441. };
  442. };
  443. };
  444. //--- OBJECT WRITE END ---