cubemapEditor.gui 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. $guiContent = new GuiControl(CubemapEditor) {
  2. canSaveDynamicFields = "0";
  3. Enabled = "1";
  4. isContainer = "1";
  5. Profile = "ToolsGuiDefaultProfile";
  6. HorizSizing = "width";
  7. VertSizing = "height";
  8. Position = "0 0";
  9. Extent = "800 600";
  10. MinExtent = "8 2";
  11. canSave = "1";
  12. Visible = "1";
  13. hovertime = "1000";
  14. new GuiWindowCtrl(CubemapEditorWindow) {
  15. canSaveDynamicFields = "0";
  16. Enabled = "1";
  17. isContainer = "1";
  18. Profile = "ToolsGuiWindowProfile";
  19. HorizSizing = "center";
  20. VertSizing = "center";
  21. position = "200 257";
  22. Extent = "478 248";
  23. MinExtent = "478 248";
  24. canSave = "1";
  25. Visible = "1";
  26. hovertime = "1000";
  27. Margin = "0 0 0 0";
  28. Padding = "0 0 0 0";
  29. AnchorTop = "1";
  30. AnchorBottom = "0";
  31. AnchorLeft = "1";
  32. AnchorRight = "0";
  33. resizeWidth = "0";
  34. resizeHeight = "0";
  35. canMove = "1";
  36. canClose = "1";
  37. canMinimize = "0";
  38. canMaximize = "0";
  39. minSize = "50 50";
  40. EdgeSnap = "1";
  41. closeCommand = "MaterialEditorGui.hideCubemapEditor(true);";
  42. text = "Cubemap Editor";
  43. new GuiTextCtrl(){
  44. Profile = "ToolsGuiTextProfile";
  45. position = "307 40";
  46. Extent = "30 16";
  47. text = "Name";
  48. };
  49. new GuiTextEditCtrl(CubemapEditor_Name) {
  50. canSaveDynamicFields = "0";
  51. Enabled = "1";
  52. isContainer = "0";
  53. Profile = "ToolsGuiTextEditProfile";
  54. HorizSizing = "right";
  55. VertSizing = "bottom";
  56. position = "338 40";
  57. Extent = "131 18";
  58. MinExtent = "8 2";
  59. canSave = "1";
  60. Visible = "1";
  61. hovertime = "1000";
  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. text = "myCubemap 1";
  69. maxLength = "1024";
  70. AltCommand = "MaterialEditorGui.editCubemapName($ThisControl.getText());";
  71. };
  72. new GuiButtonCtrl(){
  73. Profile = "ToolsGuiButtonProfile";
  74. position = "339 216";
  75. Extent = "74 24";
  76. text = "Select";
  77. command = "MaterialEditorGui.selectCubemap();"; // needs hookup use selected cubemap
  78. };
  79. new GuiButtonCtrl(){
  80. Profile = "ToolsGuiButtonProfile";
  81. position = "417 216";
  82. Extent = "52 24";
  83. text = "Cancel";
  84. command = "MaterialEditorGui.hideCubemapEditor(true);"; // needs hookup Cancel
  85. };
  86. new GuiScrollCtrl(matEd_cubemapEd_availableCubemapScroller) {
  87. canSaveDynamicFields = "0";
  88. Enabled = "1";
  89. isContainer = "1";
  90. Profile = "ToolsGuiScrollProfile";
  91. HorizSizing = "right";
  92. VertSizing = "bottom";
  93. position = "5 40";
  94. Extent = "154 203";
  95. MinExtent = "8 2";
  96. canSave = "1";
  97. Visible = "1";
  98. hovertime = "1000";
  99. willFirstRespond = "1";
  100. hScrollBar = "alwaysOff";
  101. vScrollBar = "dynamic";
  102. lockHorizScroll = "true";
  103. lockVertScroll = "false";
  104. constantThumbHeight = "0";
  105. childMargin = "0 0";
  106. new GuiListBoxCtrl(matEd_cubemapEd_availableCubemapList) {
  107. canSaveDynamicFields = "0";
  108. Enabled = "1";
  109. isContainer = "0";
  110. Profile = "ToolsGuiListBoxProfile";
  111. HorizSizing = "right";
  112. VertSizing = "bottom";
  113. position = "2 2";
  114. Extent = "128 2";
  115. MinExtent = "8 2";
  116. canSave = "1";
  117. Visible = "1";
  118. hovertime = "1000";
  119. AllowMultipleSelections = "0";
  120. fitParentWidth = "1";
  121. };
  122. };
  123. new GuiTextCtrl(){
  124. Profile = "ToolsGuiTextProfile";
  125. position = "6 22";
  126. Extent = "67 16";
  127. text = "Cubemaps";
  128. };
  129. // ------------------------------ Right X Positive ------------------------------------
  130. new GuiBitmapCtrl(matEd_cubemapEd_XPos) {
  131. canSaveDynamicFields = "0";
  132. Enabled = "1";
  133. isContainer = "0";
  134. Profile = "ToolsGuiDefaultProfile";
  135. HorizSizing = "right";
  136. VertSizing = "bottom";
  137. position = "299 106";
  138. Extent = "64 64";
  139. MinExtent = "8 2";
  140. canSave = "1";
  141. Visible = "1";
  142. hovertime = "1000";
  143. bitmapAsset = "ToolsModule:unknownImage_image";
  144. wrap = "0";
  145. };
  146. new GuiTextCtrl(matEd_cubeMapEd_xPosTxt) {
  147. position = "304 110";
  148. Extent = "57 10";
  149. text = "+ X Right";
  150. };
  151. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateXPOSImg) {
  152. canSaveDynamicFields = "0";
  153. Enabled = "1";
  154. isContainer = "0";
  155. Profile = "ToolsGuiDefaultProfile";
  156. HorizSizing = "right";
  157. VertSizing = "bottom";
  158. position = "299 106";
  159. Extent = "64 64";
  160. MinExtent = "8 2";
  161. canSave = "1";
  162. Visible = "1";
  163. Command = "MaterialEditorGui.editCubemapImage(\"0\", $ThisControl.bitmap );";
  164. tooltipprofile = "ToolsGuiDefaultProfile";
  165. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  166. hovertime = "1000";
  167. groupNum = "-1";
  168. buttonType = "PushButton";
  169. useMouseEvents = "0";
  170. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  171. };
  172. // ------------------------------ X Negitive ------------------------------------
  173. new GuiBitmapCtrl(matEd_cubemapEd_XNeg) {
  174. canSaveDynamicFields = "0";
  175. Enabled = "1";
  176. isContainer = "0";
  177. Profile = "ToolsGuiDefaultProfile";
  178. HorizSizing = "right";
  179. VertSizing = "bottom";
  180. position = "167 106";
  181. Extent = "64 64";
  182. MinExtent = "8 2";
  183. canSave = "1";
  184. Visible = "1";
  185. hovertime = "1000";
  186. bitmapAsset = "ToolsModule:unknownImage_image";
  187. wrap = "0";
  188. };
  189. new GuiTextCtrl(matEd_cubeMapEd_xNegTxt) {
  190. position = "171 110";
  191. Extent = "57 10";
  192. text = "- X Left";
  193. };
  194. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateXNEGImg) {
  195. canSaveDynamicFields = "0";
  196. Enabled = "1";
  197. isContainer = "0";
  198. Profile = "ToolsGuiDefaultProfile";
  199. HorizSizing = "right";
  200. VertSizing = "bottom";
  201. position = "167 106";
  202. Extent = "64 64";
  203. MinExtent = "8 2";
  204. canSave = "1";
  205. Visible = "1";
  206. Command = "MaterialEditorGui.editCubemapImage(\"1\", $ThisControl.bitmap );";
  207. tooltipprofile = "ToolsGuiDefaultProfile";
  208. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  209. hovertime = "1000";
  210. groupNum = "-1";
  211. buttonType = "PushButton";
  212. useMouseEvents = "0";
  213. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  214. };
  215. // ------------------------------ Y Positive ------------------------------------
  216. new GuiBitmapCtrl(matEd_cubemapEd_YPos) {
  217. canSaveDynamicFields = "0";
  218. Enabled = "1";
  219. isContainer = "0";
  220. Profile = "ToolsGuiDefaultProfile";
  221. HorizSizing = "right";
  222. VertSizing = "bottom";
  223. position = "233 172";
  224. Extent = "64 64";
  225. MinExtent = "8 2";
  226. canSave = "1";
  227. Visible = "1";
  228. hovertime = "1000";
  229. bitmapAsset = "ToolsModule:unknownImage_image";
  230. wrap = "0";
  231. };
  232. new GuiTextCtrl(matEd_cubeMapEd_yPosTxt) {
  233. position = "237 175";
  234. Extent = "57 10";
  235. text = "+ Y Front";
  236. };
  237. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateYPOSImg) {
  238. canSaveDynamicFields = "0";
  239. Enabled = "1";
  240. isContainer = "0";
  241. Profile = "ToolsGuiDefaultProfile";
  242. HorizSizing = "right";
  243. VertSizing = "bottom";
  244. position = "233 172";
  245. Extent = "64 64";
  246. MinExtent = "8 2";
  247. canSave = "1";
  248. Visible = "1";
  249. Command = "MaterialEditorGui.editCubemapImage(\"3\", $ThisControl.bitmap );";
  250. tooltipprofile = "ToolsGuiDefaultProfile";
  251. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  252. hovertime = "1000";
  253. groupNum = "-1";
  254. buttonType = "PushButton";
  255. useMouseEvents = "0";
  256. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  257. };
  258. // ------------------------------ Y Negitive ------------------------------------
  259. new GuiBitmapCtrl(matEd_cubemapEd_YNeG) {
  260. canSaveDynamicFields = "0";
  261. Enabled = "1";
  262. isContainer = "0";
  263. Profile = "ToolsGuiDefaultProfile";
  264. HorizSizing = "right";
  265. VertSizing = "bottom";
  266. position = "233 40";
  267. Extent = "64 64";
  268. MinExtent = "8 2";
  269. canSave = "1";
  270. Visible = "1";
  271. hovertime = "1000";
  272. bitmapAsset = "ToolsModule:unknownImage_image";
  273. wrap = "0";
  274. };
  275. new GuiTextCtrl(matEd_cubeMapEd_yNegTxt) {
  276. position = "237 44";
  277. Extent = "57 10";
  278. text = "- Y Back";
  279. };
  280. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateYNegImg) {
  281. canSaveDynamicFields = "0";
  282. Enabled = "1";
  283. isContainer = "0";
  284. Profile = "ToolsGuiDefaultProfile";
  285. HorizSizing = "right";
  286. VertSizing = "bottom";
  287. position = "233 40";
  288. Extent = "64 64";
  289. MinExtent = "8 2";
  290. canSave = "1";
  291. Visible = "1";
  292. Command = "MaterialEditorGui.editCubemapImage(\"2\", $ThisControl.bitmap );";
  293. tooltipprofile = "ToolsGuiDefaultProfile";
  294. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  295. hovertime = "1000";
  296. groupNum = "-1";
  297. buttonType = "PushButton";
  298. useMouseEvents = "0";
  299. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  300. };
  301. // ------------------------------ Z Positive ------------------------------------
  302. new GuiBitmapCtrl(matEd_cubemapEd_ZPos) {
  303. canSaveDynamicFields = "0";
  304. Enabled = "1";
  305. isContainer = "0";
  306. Profile = "ToolsGuiDefaultProfile";
  307. HorizSizing = "right";
  308. VertSizing = "bottom";
  309. position = "233 106";
  310. Extent = "64 64";
  311. MinExtent = "8 2";
  312. canSave = "1";
  313. Visible = "1";
  314. hovertime = "1000";
  315. bitmapAsset = "ToolsModule:unknownImage_image";
  316. wrap = "0";
  317. };
  318. new GuiTextCtrl(matEd_cubeMapEd_zPosTxt) {
  319. position = "237 110";
  320. Extent = "57 10";
  321. text = "+ Z Top";
  322. };
  323. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateZPosImg) {
  324. canSaveDynamicFields = "0";
  325. Enabled = "1";
  326. isContainer = "0";
  327. Profile = "ToolsGuiDefaultProfile";
  328. HorizSizing = "right";
  329. VertSizing = "bottom";
  330. position = "233 106";
  331. Extent = "64 64";
  332. MinExtent = "8 2";
  333. canSave = "1";
  334. Visible = "1";
  335. Command = "MaterialEditorGui.editCubemapImage(\"4\", $ThisControl.bitmap );";
  336. tooltipprofile = "ToolsGuiDefaultProfile";
  337. ToolTip = "When using Static Cubemaps, select your CubeMap by clicking here.";
  338. hovertime = "1000";
  339. groupNum = "-1";
  340. buttonType = "PushButton";
  341. useMouseEvents = "0";
  342. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  343. };
  344. // ------------------------------ Z Negitive ------------------------------------
  345. new GuiBitmapCtrl(matEd_cubemapEd_ZNeg) {
  346. canSaveDynamicFields = "0";
  347. Enabled = "1";
  348. isContainer = "0";
  349. Profile = "ToolsGuiDefaultProfile";
  350. HorizSizing = "right";
  351. VertSizing = "bottom";
  352. position = "365 106";
  353. Extent = "64 64";
  354. MinExtent = "8 2";
  355. canSave = "1";
  356. Visible = "1";
  357. hovertime = "1000";
  358. bitmapAsset = "ToolsModule:unknownImage_image";
  359. wrap = "0";
  360. };
  361. new GuiTextCtrl(matEd_cubeMapEd_zNegTxt) {
  362. position = "369 110";
  363. Extent = "57 10";
  364. text = "- Z Bottom";
  365. };
  366. new GuiBitmapButtonCtrl(matEd_cubeMapEd_updateZNegImg) {
  367. canSaveDynamicFields = "0";
  368. Enabled = "1";
  369. isContainer = "0";
  370. Profile = "ToolsGuiDefaultProfile";
  371. HorizSizing = "right";
  372. VertSizing = "bottom";
  373. position = "365 106";
  374. Extent = "64 64";
  375. MinExtent = "8 2";
  376. canSave = "1";
  377. Visible = "1";
  378. Command = "MaterialEditorGui.editCubemapImage(\"5\", $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. bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
  386. };
  387. // Create New Cubemap
  388. new GuiBitmapButtonCtrl() {
  389. canSaveDynamicFields = "0";
  390. Enabled = "1";
  391. isContainer = "0";
  392. Profile = "ToolsGuiDefaultProfile";
  393. HorizSizing = "right";
  394. VertSizing = "top";
  395. position = "128 23";
  396. Extent = "17 17";
  397. MinExtent = "8 2";
  398. canSave = "1";
  399. Visible = "1";
  400. Command = "matEd_addCubemapWindow.setVisible(1);"; // -------------- Needs Hookup Create New Cubemap
  401. hovertime = "1000";
  402. tooltip = "Create New Cubemap";
  403. bitmapAsset = "ToolsModule:new_n_image";
  404. groupNum = "-1";
  405. buttonType = "PushButton";
  406. useMouseEvents = "0";
  407. };
  408. new GuiBitmapButtonCtrl() {
  409. canSaveDynamicFields = "0";
  410. Enabled = "1";
  411. isContainer = "0";
  412. Profile = "ToolsGuiDefaultProfile";
  413. HorizSizing = "right";
  414. VertSizing = "top";
  415. position = "143 23";
  416. Extent = "17 17";
  417. MinExtent = "8 2";
  418. canSave = "1";
  419. Visible = "1";
  420. Command = "MaterialEditorGui.showDeleteCubemapDialog();"; // -------------- Needs Hookup Delete Cubemap
  421. hovertime = "1000";
  422. tooltip = "Delete Cubemap";
  423. bitmapAsset = "ToolsModule:delete_n_image";
  424. groupNum = "-1";
  425. buttonType = "PushButton";
  426. useMouseEvents = "0";
  427. };
  428. new GuiBitmapButtonCtrl() {
  429. internalName = "saveCubemap";
  430. canSaveDynamicFields = "0";
  431. Enabled = "1";
  432. isContainer = "0";
  433. Profile = "ToolsGuiDefaultProfile";
  434. HorizSizing = "right";
  435. VertSizing = "top";
  436. position = "106 23";
  437. Extent = "17 17";
  438. MinExtent = "8 2";
  439. canSave = "1";
  440. Visible = "1";
  441. Command = "MaterialEditorGui.showSaveCubemapDialog();"; // -------------- Needs Hookup Save Cubemap
  442. hovertime = "1000";
  443. tooltip = "Save Cubemap";
  444. bitmapAsset = "ToolsModule:save_icon_n_image";
  445. groupNum = "-1";
  446. buttonType = "PushButton";
  447. useMouseEvents = "0";
  448. };
  449. };
  450. };