guiMaterialPreviewWindow.ed.gui 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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. Extent = "210 251 ";
  25. MinExtent = "210 150";
  26. Position = getWord($pref::Video::mode, 0) - 209
  27. SPC getWord(EditorGuiToolbar.extent, 1)-1;
  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 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 = "202 202";
  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 = "204 204";
  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 = "204 204";
  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 = "199 199";
  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 = "189 229";
  166. Extent = "14 14";
  167. MinExtent = "8 2";
  168. canSave = "1";
  169. Visible = "1";
  170. Command = "getColorF($thisControl.color, \"MaterialEditorGui.updatePreviewBackground\");";
  171. color = "0 0 0 .8";
  172. hovertime = "1000";
  173. groupNum = "-1";
  174. buttonType = "PushButton";
  175. useMouseEvents = "0";
  176. };
  177. // Ambient light color picker
  178. new GuiSwatchButtonCtrl(matEd_ambientLightColorPicker) {
  179. canSaveDynamicFields = "0";
  180. Enabled = "1";
  181. color = "1 1 1 1";
  182. isContainer = "0";
  183. Profile = "GuiInspectorSwatchButtonProfile";
  184. HorizSizing = "right";
  185. VertSizing = "bottom";
  186. position = "81 28";
  187. Extent = "14 14";
  188. MinExtent = "8 2";
  189. canSave = "1";
  190. Visible = "1";
  191. Command = "getColorF($ThisControl.color, \"MaterialEditorGui.updateAmbientColor\");";
  192. hovertime = "1000";
  193. groupNum = "-1";
  194. ToolTip ="Change Ambient Light Color";
  195. buttonType = "PushButton";
  196. useMouseEvents = "0";
  197. };
  198. // Light color picker
  199. new GuiSwatchButtonCtrl(matEd_lightColorPicker) {
  200. canSaveDynamicFields = "0";
  201. Enabled = "1";
  202. color = "1 1 1 1";
  203. isContainer = "0";
  204. Profile = "GuiInspectorSwatchButtonProfile";
  205. HorizSizing = "right";
  206. VertSizing = "bottom";
  207. position = "75 23";
  208. Extent = "14 14";
  209. MinExtent = "8 2";
  210. canSave = "1";
  211. Visible = "1";
  212. Command = "getColorF($ThisControl.color, \"MaterialEditorGui.updateLightColor\");";
  213. hovertime = "1000";
  214. groupNum = "-1";
  215. ToolTip ="Change Normal Light Color";
  216. buttonType = "PushButton";
  217. useMouseEvents = "0";
  218. };
  219. new GuiCheckboxCtrl(){
  220. position = "108 25";
  221. Extent = "98 18";
  222. HorizSizing = "left";
  223. profile = "ToolsGuiCheckBoxProfile";
  224. Variable = "MaterialEditorGui.livePreview";
  225. Command = "MaterialEditorGui.updateLivePreview($ThisControl.getValue());";
  226. text ="Preview in World";
  227. };
  228. };
  229. new GuiWindowCtrl(matEd_addCubemapWindow) {
  230. canSaveDynamicFields = "0";
  231. isContainer = "1";
  232. Profile = "ToolsGuiWindowProfile";
  233. HorizSizing = "center";
  234. VertSizing = "center";
  235. position = "362 333";
  236. Extent = "300 99";
  237. MinExtent = "48 92";
  238. canSave = "1";
  239. Visible = "0";
  240. tooltipprofile = "ToolsGuiToolTipProfile";
  241. hovertime = "1000";
  242. Margin = "0 0 0 0";
  243. Padding = "0 0 0 0";
  244. AnchorTop = "1";
  245. AnchorBottom = "0";
  246. AnchorLeft = "1";
  247. AnchorRight = "0";
  248. resizeWidth = "1";
  249. resizeHeight = "1";
  250. canMove = "1";
  251. canClose = "0";
  252. canMinimize = "0";
  253. canMaximize = "0";
  254. minSize = "50 50";
  255. EdgeSnap = "1";
  256. text = "Create Cubemap";
  257. new GuiTextEditCtrl() {
  258. canSaveDynamicFields = "0";
  259. internalName = "cubemapName";
  260. isContainer = "0";
  261. Profile = "ToolsGuiTextEditProfile";
  262. HorizSizing = "right";
  263. VertSizing = "bottom";
  264. position = "96 35";
  265. Extent = "196 18";
  266. MinExtent = "8 2";
  267. canSave = "1";
  268. Visible = "1";
  269. tooltipprofile = "ToolsGuiToolTipProfile";
  270. hovertime = "1000";
  271. Margin = "0 0 0 0";
  272. Padding = "0 0 0 0";
  273. AnchorTop = "1";
  274. AnchorBottom = "0";
  275. AnchorLeft = "1";
  276. AnchorRight = "0";
  277. maxLength = "1024";
  278. historySize = "0";
  279. password = "0";
  280. tabComplete = "0";
  281. sinkAllKeyEvents = "0";
  282. AltCommand = "";
  283. passwordMask = "*";
  284. };
  285. new GuiTextCtrl() {
  286. canSaveDynamicFields = "0";
  287. isContainer = "0";
  288. Profile = "ToolsGuiTextProfile";
  289. HorizSizing = "right";
  290. VertSizing = "bottom";
  291. position = "12 36";
  292. Extent = "77 16";
  293. MinExtent = "8 2";
  294. canSave = "1";
  295. Visible = "1";
  296. tooltipprofile = "ToolsGuiToolTipProfile";
  297. hovertime = "1000";
  298. Margin = "0 0 0 0";
  299. Padding = "0 0 0 0";
  300. AnchorTop = "1";
  301. AnchorBottom = "0";
  302. AnchorLeft = "1";
  303. AnchorRight = "0";
  304. maxLength = "1024";
  305. text = "Cubemap Name";
  306. };
  307. new GuiButtonCtrl() {
  308. canSaveDynamicFields = "0";
  309. isContainer = "0";
  310. Profile = "ToolsGuiButtonProfile";
  311. HorizSizing = "right";
  312. VertSizing = "bottom";
  313. position = "96 68";
  314. Extent = "126 22";
  315. MinExtent = "8 2";
  316. canSave = "1";
  317. Visible = "1";
  318. tooltipprofile = "ToolsGuiToolTipProfile";
  319. hovertime = "1000";
  320. groupNum = "-1";
  321. buttonType = "PushButton";
  322. useMouseEvents = "0";
  323. text = "Create";
  324. Command = "MaterialEditorGui.addCubemap( matEd_addCubemapWindow-->cubemapName.getText() );matEd_addCubemapWindow.setVisible(0);";
  325. };
  326. new GuiButtonCtrl() {
  327. canSaveDynamicFields = "0";
  328. isContainer = "0";
  329. Profile = "ToolsGuiButtonProfile";
  330. HorizSizing = "right";
  331. VertSizing = "bottom";
  332. position = "228 68";
  333. Extent = "64 22";
  334. MinExtent = "8 2";
  335. canSave = "1";
  336. Visible = "1";
  337. tooltipprofile = "ToolsGuiToolTipProfile";
  338. hovertime = "1000";
  339. groupNum = "-1";
  340. buttonType = "PushButton";
  341. useMouseEvents = "0";
  342. text = "Cancel";
  343. Command = "matEd_addCubemapWindow.setVisible(0);";
  344. };
  345. };
  346. };
  347. //--- OBJECT WRITE END ---