guiMaterialPreviewWindow.ed.gui 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  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_cubemapEditor) {
  230. canSaveDynamicFields = "0";
  231. Enabled = "1";
  232. isContainer = "1";
  233. Profile = "ToolsGuiWindowProfile";
  234. HorizSizing = "center";
  235. VertSizing = "center";
  236. position = "200 257";
  237. Extent = "478 248";
  238. MinExtent = "478 248";
  239. canSave = "1";
  240. Visible = "0";
  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 = "0";
  249. resizeHeight = "0";
  250. canMove = "1";
  251. canClose = "1";
  252. canMinimize = "0";
  253. canMaximize = "0";
  254. minSize = "50 50";
  255. EdgeSnap = "1";
  256. closeCommand = "MaterialEditorGui.hideCubemapEditor(true);";
  257. text = "Cubemap Editor";
  258. new GuiTextCtrl(){
  259. Profile = "ToolsGuiTextProfile";
  260. position = "307 40";
  261. Extent = "30 16";
  262. text = "Name";
  263. };
  264. new GuiTextEditCtrl(matEd_cubemapEd_activeCubemapNameTxt) {
  265. canSaveDynamicFields = "0";
  266. Enabled = "1";
  267. isContainer = "0";
  268. Profile = "ToolsGuiTextEditProfile";
  269. HorizSizing = "right";
  270. VertSizing = "bottom";
  271. position = "338 40";
  272. Extent = "131 18";
  273. MinExtent = "8 2";
  274. canSave = "1";
  275. Visible = "1";
  276. hovertime = "1000";
  277. Margin = "0 0 0 0";
  278. Padding = "0 0 0 0";
  279. AnchorTop = "1";
  280. AnchorBottom = "0";
  281. AnchorLeft = "1";
  282. AnchorRight = "0";
  283. text = "myCubemap 1";
  284. maxLength = "1024";
  285. AltCommand = "MaterialEditorGui.editCubemapName($ThisControl.getText());";
  286. };
  287. new GuiButtonCtrl(){
  288. Profile = "ToolsGuiButtonProfile";
  289. position = "339 216";
  290. Extent = "74 24";
  291. text = "Select";
  292. command = "MaterialEditorGui.selectCubemap();"; // needs hookup use selected cubemap
  293. };
  294. new GuiButtonCtrl(){
  295. Profile = "ToolsGuiButtonProfile";
  296. position = "417 216";
  297. Extent = "52 24";
  298. text = "Cancel";
  299. command = "MaterialEditorGui.hideCubemapEditor(true);"; // needs hookup Cancel
  300. };
  301. new GuiScrollCtrl(matEd_cubemapEd_availableCubemapScroller) {
  302. canSaveDynamicFields = "0";
  303. Enabled = "1";
  304. isContainer = "1";
  305. Profile = "ToolsGuiScrollProfile";
  306. HorizSizing = "right";
  307. VertSizing = "bottom";
  308. position = "5 40";
  309. Extent = "154 203";
  310. MinExtent = "8 2";
  311. canSave = "1";
  312. Visible = "1";
  313. hovertime = "1000";
  314. willFirstRespond = "1";
  315. hScrollBar = "alwaysOff";
  316. vScrollBar = "dynamic";
  317. lockHorizScroll = "true";
  318. lockVertScroll = "false";
  319. constantThumbHeight = "0";
  320. childMargin = "0 0";
  321. new GuiListBoxCtrl(matEd_cubemapEd_availableCubemapList) {
  322. canSaveDynamicFields = "0";
  323. Enabled = "1";
  324. isContainer = "0";
  325. Profile = "ToolsGuiListBoxProfile";
  326. HorizSizing = "right";
  327. VertSizing = "bottom";
  328. position = "2 2";
  329. Extent = "128 2";
  330. MinExtent = "8 2";
  331. canSave = "1";
  332. Visible = "1";
  333. hovertime = "1000";
  334. AllowMultipleSelections = "0";
  335. fitParentWidth = "1";
  336. };
  337. };
  338. new GuiTextCtrl(){
  339. Profile = "ToolsGuiTextProfile";
  340. position = "6 22";
  341. Extent = "67 16";
  342. text = "Cubemaps";
  343. };
  344. // ------------------------------ Right X Positive ------------------------------------
  345. new GuiBitmapCtrl(matEd_cubemapEd_XPos) {
  346. canSaveDynamicFields = "0";
  347. Enabled = "1";
  348. isContainer = "0";
  349. Profile = "ToolsGuiDefaultProfile";
  350. HorizSizing = "right";
  351. VertSizing = "bottom";
  352. position = "299 106";
  353. Extent = "64 64";
  354. MinExtent = "8 2";
  355. canSave = "1";
  356. Visible = "1";
  357. hovertime = "1000";
  358. bitmap = "tools/materialEditor/gui/unknownImage";
  359. wrap = "0";
  360. };
  361. new GuiTextCtrl(matEd_cubeMapEd_xPosTxt) {
  362. position = "304 110";
  363. Extent = "57 10";
  364. text = "+ X Right";
  365. };
  366. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateXPOSImg) {
  367. canSaveDynamicFields = "0";
  368. Enabled = "1";
  369. isContainer = "0";
  370. Profile = "ToolsGuiDefaultProfile";
  371. HorizSizing = "right";
  372. VertSizing = "bottom";
  373. position = "299 106";
  374. Extent = "64 64";
  375. MinExtent = "8 2";
  376. canSave = "1";
  377. Visible = "1";
  378. Command = "MaterialEditorGui.editCubemapImage(\"0\", $ThisControl.bitmap );";
  379. tooltipprofile = "ToolsGuiDefaultProfile";
  380. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  381. hovertime = "1000";
  382. groupNum = "-1";
  383. buttonType = "PushButton";
  384. useMouseEvents = "0";
  385. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  386. };
  387. // ------------------------------ X Negitive ------------------------------------
  388. new GuiBitmapCtrl(matEd_cubemapEd_XNeg) {
  389. canSaveDynamicFields = "0";
  390. Enabled = "1";
  391. isContainer = "0";
  392. Profile = "ToolsGuiDefaultProfile";
  393. HorizSizing = "right";
  394. VertSizing = "bottom";
  395. position = "167 106";
  396. Extent = "64 64";
  397. MinExtent = "8 2";
  398. canSave = "1";
  399. Visible = "1";
  400. hovertime = "1000";
  401. bitmap = "tools/materialEditor/gui/unknownImage";
  402. wrap = "0";
  403. };
  404. new GuiTextCtrl(matEd_cubeMapEd_xNegTxt) {
  405. position = "171 110";
  406. Extent = "57 10";
  407. text = "- X Left";
  408. };
  409. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateXNEGImg) {
  410. canSaveDynamicFields = "0";
  411. Enabled = "1";
  412. isContainer = "0";
  413. Profile = "ToolsGuiDefaultProfile";
  414. HorizSizing = "right";
  415. VertSizing = "bottom";
  416. position = "167 106";
  417. Extent = "64 64";
  418. MinExtent = "8 2";
  419. canSave = "1";
  420. Visible = "1";
  421. Command = "MaterialEditorGui.editCubemapImage(\"1\", $ThisControl.bitmap );";
  422. tooltipprofile = "ToolsGuiDefaultProfile";
  423. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  424. hovertime = "1000";
  425. groupNum = "-1";
  426. buttonType = "PushButton";
  427. useMouseEvents = "0";
  428. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  429. };
  430. // ------------------------------ Y Positive ------------------------------------
  431. new GuiBitmapCtrl(matEd_cubemapEd_YPos) {
  432. canSaveDynamicFields = "0";
  433. Enabled = "1";
  434. isContainer = "0";
  435. Profile = "ToolsGuiDefaultProfile";
  436. HorizSizing = "right";
  437. VertSizing = "bottom";
  438. position = "233 172";
  439. Extent = "64 64";
  440. MinExtent = "8 2";
  441. canSave = "1";
  442. Visible = "1";
  443. hovertime = "1000";
  444. bitmap = "tools/materialEditor/gui/unknownImage";
  445. wrap = "0";
  446. };
  447. new GuiTextCtrl(matEd_cubeMapEd_yPosTxt) {
  448. position = "237 175";
  449. Extent = "57 10";
  450. text = "+ Y Front";
  451. };
  452. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateYPOSImg) {
  453. canSaveDynamicFields = "0";
  454. Enabled = "1";
  455. isContainer = "0";
  456. Profile = "ToolsGuiDefaultProfile";
  457. HorizSizing = "right";
  458. VertSizing = "bottom";
  459. position = "233 172";
  460. Extent = "64 64";
  461. MinExtent = "8 2";
  462. canSave = "1";
  463. Visible = "1";
  464. Command = "MaterialEditorGui.editCubemapImage(\"3\", $ThisControl.bitmap );";
  465. tooltipprofile = "ToolsGuiDefaultProfile";
  466. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  467. hovertime = "1000";
  468. groupNum = "-1";
  469. buttonType = "PushButton";
  470. useMouseEvents = "0";
  471. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  472. };
  473. // ------------------------------ Y Negitive ------------------------------------
  474. new GuiBitmapCtrl(matEd_cubemapEd_YNeG) {
  475. canSaveDynamicFields = "0";
  476. Enabled = "1";
  477. isContainer = "0";
  478. Profile = "ToolsGuiDefaultProfile";
  479. HorizSizing = "right";
  480. VertSizing = "bottom";
  481. position = "233 40";
  482. Extent = "64 64";
  483. MinExtent = "8 2";
  484. canSave = "1";
  485. Visible = "1";
  486. hovertime = "1000";
  487. bitmap = "tools/materialEditor/gui/unknownImage";
  488. wrap = "0";
  489. };
  490. new GuiTextCtrl(matEd_cubeMapEd_yNegTxt) {
  491. position = "237 44";
  492. Extent = "57 10";
  493. text = "- Y Back";
  494. };
  495. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateYNegImg) {
  496. canSaveDynamicFields = "0";
  497. Enabled = "1";
  498. isContainer = "0";
  499. Profile = "ToolsGuiDefaultProfile";
  500. HorizSizing = "right";
  501. VertSizing = "bottom";
  502. position = "233 40";
  503. Extent = "64 64";
  504. MinExtent = "8 2";
  505. canSave = "1";
  506. Visible = "1";
  507. Command = "MaterialEditorGui.editCubemapImage(\"2\", $ThisControl.bitmap );";
  508. tooltipprofile = "ToolsGuiDefaultProfile";
  509. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  510. hovertime = "1000";
  511. groupNum = "-1";
  512. buttonType = "PushButton";
  513. useMouseEvents = "0";
  514. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  515. };
  516. // ------------------------------ Z Positive ------------------------------------
  517. new GuiBitmapCtrl(matEd_cubemapEd_ZPos) {
  518. canSaveDynamicFields = "0";
  519. Enabled = "1";
  520. isContainer = "0";
  521. Profile = "ToolsGuiDefaultProfile";
  522. HorizSizing = "right";
  523. VertSizing = "bottom";
  524. position = "233 106";
  525. Extent = "64 64";
  526. MinExtent = "8 2";
  527. canSave = "1";
  528. Visible = "1";
  529. hovertime = "1000";
  530. bitmap = "tools/materialEditor/gui/unknownImage";
  531. wrap = "0";
  532. };
  533. new GuiTextCtrl(matEd_cubeMapEd_zPosTxt) {
  534. position = "237 110";
  535. Extent = "57 10";
  536. text = "+ Z Top";
  537. };
  538. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateZPosImg) {
  539. canSaveDynamicFields = "0";
  540. Enabled = "1";
  541. isContainer = "0";
  542. Profile = "ToolsGuiDefaultProfile";
  543. HorizSizing = "right";
  544. VertSizing = "bottom";
  545. position = "233 106";
  546. Extent = "64 64";
  547. MinExtent = "8 2";
  548. canSave = "1";
  549. Visible = "1";
  550. Command = "MaterialEditorGui.editCubemapImage(\"4\", $ThisControl.bitmap );";
  551. tooltipprofile = "ToolsGuiDefaultProfile";
  552. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  553. hovertime = "1000";
  554. groupNum = "-1";
  555. buttonType = "PushButton";
  556. useMouseEvents = "0";
  557. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  558. };
  559. // ------------------------------ Z Negitive ------------------------------------
  560. new GuiBitmapCtrl(matEd_cubemapEd_ZNeg) {
  561. canSaveDynamicFields = "0";
  562. Enabled = "1";
  563. isContainer = "0";
  564. Profile = "ToolsGuiDefaultProfile";
  565. HorizSizing = "right";
  566. VertSizing = "bottom";
  567. position = "365 106";
  568. Extent = "64 64";
  569. MinExtent = "8 2";
  570. canSave = "1";
  571. Visible = "1";
  572. hovertime = "1000";
  573. bitmap = "tools/materialEditor/gui/unknownImage";
  574. wrap = "0";
  575. };
  576. new GuiTextCtrl(matEd_cubeMapEd_zNegTxt) {
  577. position = "369 110";
  578. Extent = "57 10";
  579. text = "- Z Bottom";
  580. };
  581. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateZNegImg) {
  582. canSaveDynamicFields = "0";
  583. Enabled = "1";
  584. isContainer = "0";
  585. Profile = "ToolsGuiDefaultProfile";
  586. HorizSizing = "right";
  587. VertSizing = "bottom";
  588. position = "365 106";
  589. Extent = "64 64";
  590. MinExtent = "8 2";
  591. canSave = "1";
  592. Visible = "1";
  593. Command = "MaterialEditorGui.editCubemapImage(\"5\", $ThisControl.bitmap );";
  594. tooltipprofile = "ToolsGuiDefaultProfile";
  595. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  596. hovertime = "1000";
  597. groupNum = "-1";
  598. buttonType = "PushButton";
  599. useMouseEvents = "0";
  600. bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
  601. };
  602. // Create New Cubemap
  603. new GuiBitmapButtonCtrl() {
  604. canSaveDynamicFields = "0";
  605. Enabled = "1";
  606. isContainer = "0";
  607. Profile = "ToolsGuiDefaultProfile";
  608. HorizSizing = "right";
  609. VertSizing = "top";
  610. position = "128 23";
  611. Extent = "17 17";
  612. MinExtent = "8 2";
  613. canSave = "1";
  614. Visible = "1";
  615. Command = "matEd_addCubemapWindow.setVisible(1);"; // -------------- Needs Hookup Create New Cubemap
  616. hovertime = "1000";
  617. tooltip = "Create New Cubemap";
  618. bitmap = "tools/gui/images/new";
  619. groupNum = "-1";
  620. buttonType = "PushButton";
  621. useMouseEvents = "0";
  622. };
  623. new GuiBitmapButtonCtrl() {
  624. canSaveDynamicFields = "0";
  625. Enabled = "1";
  626. isContainer = "0";
  627. Profile = "ToolsGuiDefaultProfile";
  628. HorizSizing = "right";
  629. VertSizing = "top";
  630. position = "143 23";
  631. Extent = "17 17";
  632. MinExtent = "8 2";
  633. canSave = "1";
  634. Visible = "1";
  635. Command = "MaterialEditorGui.showDeleteCubemapDialog();"; // -------------- Needs Hookup Delete Cubemap
  636. hovertime = "1000";
  637. tooltip = "Delete Cubemap";
  638. bitmap = "tools/gui/images/delete";
  639. groupNum = "-1";
  640. buttonType = "PushButton";
  641. useMouseEvents = "0";
  642. };
  643. new GuiBitmapButtonCtrl() {
  644. internalName = "saveCubemap";
  645. canSaveDynamicFields = "0";
  646. Enabled = "1";
  647. isContainer = "0";
  648. Profile = "ToolsGuiDefaultProfile";
  649. HorizSizing = "right";
  650. VertSizing = "top";
  651. position = "106 23";
  652. Extent = "17 17";
  653. MinExtent = "8 2";
  654. canSave = "1";
  655. Visible = "1";
  656. Command = "MaterialEditorGui.showSaveCubemapDialog();"; // -------------- Needs Hookup Save Cubemap
  657. hovertime = "1000";
  658. tooltip = "Save Cubemap";
  659. bitmap = "tools/gui/images/save-icon";
  660. groupNum = "-1";
  661. buttonType = "PushButton";
  662. useMouseEvents = "0";
  663. };
  664. };
  665. new GuiWindowCtrl(matEd_addCubemapWindow) {
  666. canSaveDynamicFields = "0";
  667. isContainer = "1";
  668. Profile = "ToolsGuiWindowProfile";
  669. HorizSizing = "center";
  670. VertSizing = "center";
  671. position = "362 333";
  672. Extent = "300 99";
  673. MinExtent = "48 92";
  674. canSave = "1";
  675. Visible = "0";
  676. tooltipprofile = "ToolsGuiToolTipProfile";
  677. hovertime = "1000";
  678. Margin = "0 0 0 0";
  679. Padding = "0 0 0 0";
  680. AnchorTop = "1";
  681. AnchorBottom = "0";
  682. AnchorLeft = "1";
  683. AnchorRight = "0";
  684. resizeWidth = "1";
  685. resizeHeight = "1";
  686. canMove = "1";
  687. canClose = "0";
  688. canMinimize = "0";
  689. canMaximize = "0";
  690. minSize = "50 50";
  691. EdgeSnap = "1";
  692. text = "Create Cubemap";
  693. new GuiTextEditCtrl() {
  694. canSaveDynamicFields = "0";
  695. internalName = "cubemapName";
  696. isContainer = "0";
  697. Profile = "ToolsGuiTextEditProfile";
  698. HorizSizing = "right";
  699. VertSizing = "bottom";
  700. position = "96 35";
  701. Extent = "196 18";
  702. MinExtent = "8 2";
  703. canSave = "1";
  704. Visible = "1";
  705. tooltipprofile = "ToolsGuiToolTipProfile";
  706. hovertime = "1000";
  707. Margin = "0 0 0 0";
  708. Padding = "0 0 0 0";
  709. AnchorTop = "1";
  710. AnchorBottom = "0";
  711. AnchorLeft = "1";
  712. AnchorRight = "0";
  713. maxLength = "1024";
  714. historySize = "0";
  715. password = "0";
  716. tabComplete = "0";
  717. sinkAllKeyEvents = "0";
  718. AltCommand = "";
  719. passwordMask = "*";
  720. };
  721. new GuiTextCtrl() {
  722. canSaveDynamicFields = "0";
  723. isContainer = "0";
  724. Profile = "ToolsGuiTextProfile";
  725. HorizSizing = "right";
  726. VertSizing = "bottom";
  727. position = "12 36";
  728. Extent = "77 16";
  729. MinExtent = "8 2";
  730. canSave = "1";
  731. Visible = "1";
  732. tooltipprofile = "ToolsGuiToolTipProfile";
  733. hovertime = "1000";
  734. Margin = "0 0 0 0";
  735. Padding = "0 0 0 0";
  736. AnchorTop = "1";
  737. AnchorBottom = "0";
  738. AnchorLeft = "1";
  739. AnchorRight = "0";
  740. maxLength = "1024";
  741. text = "Cubemap Name";
  742. };
  743. new GuiButtonCtrl() {
  744. canSaveDynamicFields = "0";
  745. isContainer = "0";
  746. Profile = "ToolsGuiButtonProfile";
  747. HorizSizing = "right";
  748. VertSizing = "bottom";
  749. position = "96 68";
  750. Extent = "126 22";
  751. MinExtent = "8 2";
  752. canSave = "1";
  753. Visible = "1";
  754. tooltipprofile = "ToolsGuiToolTipProfile";
  755. hovertime = "1000";
  756. groupNum = "-1";
  757. buttonType = "PushButton";
  758. useMouseEvents = "0";
  759. text = "Create";
  760. Command = "MaterialEditorGui.addCubemap( matEd_addCubemapWindow-->cubemapName.getText() );matEd_addCubemapWindow.setVisible(0);";
  761. };
  762. new GuiButtonCtrl() {
  763. canSaveDynamicFields = "0";
  764. isContainer = "0";
  765. Profile = "ToolsGuiButtonProfile";
  766. HorizSizing = "right";
  767. VertSizing = "bottom";
  768. position = "228 68";
  769. Extent = "64 22";
  770. MinExtent = "8 2";
  771. canSave = "1";
  772. Visible = "1";
  773. tooltipprofile = "ToolsGuiToolTipProfile";
  774. hovertime = "1000";
  775. groupNum = "-1";
  776. buttonType = "PushButton";
  777. useMouseEvents = "0";
  778. text = "Cancel";
  779. Command = "matEd_addCubemapWindow.setVisible(0);";
  780. };
  781. };
  782. };
  783. //--- OBJECT WRITE END ---