shapeEdPropWindow.ed.gui 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474
  1. //--- OBJECT WRITE BEGIN ---
  2. %guiContent = new GuiWindowCollapseCtrl(ShapeEdPropWindow) {
  3. canSaveDynamicFields = "0";
  4. isContainer = "1";
  5. Profile = "ToolsGuiWindowProfile";
  6. HorizSizing = "windowRelative";
  7. VertSizing = "windowRelative";
  8. Position = getWord($pref::Video::mode, 0) - 209
  9. SPC getWord(EditorGuiToolbar.extent, 1) + getWord(ShapeEdSelectWindow.extent, 1) - 2;
  10. Extent = "210 484";
  11. MinExtent = "210 352";
  12. canSave = "1";
  13. Visible = "0";
  14. tooltipprofile = "ToolsGuiToolTipProfile";
  15. hovertime = "1000";
  16. Margin = "4 4 4 4";
  17. Padding = "0 0 0 0";
  18. AnchorTop = "1";
  19. AnchorBottom = "0";
  20. AnchorLeft = "1";
  21. AnchorRight = "0";
  22. resizeWidth = "1";
  23. resizeHeight = "1";
  24. canMove = "1";
  25. canClose = "0";
  26. canMinimize = "0";
  27. canMaximize = "0";
  28. minSize = "50 50";
  29. EdgeSnap = "1";
  30. text = "Properties";
  31. //---------------------------------------------------------------------
  32. // Sequence and Node editors
  33. new GuiTabBookCtrl(ShapeEdSeqNodeTabBook) {
  34. canSaveDynamicFields = "0";
  35. isContainer = "1";
  36. Profile = "ToolsGuiTabBookProfile";
  37. HorizSizing = "width";
  38. VertSizing = "height";
  39. position = "4 42";
  40. Extent = "202 437";
  41. MinExtent = "8 8";
  42. canSave = "1";
  43. Visible = "1";
  44. tooltipprofile = "ToolsGuiToolTipProfile";
  45. hovertime = "1000";
  46. Docking = "client";
  47. Margin = "3 1 3 3";
  48. Padding = "0 0 0 0";
  49. AnchorTop = "1";
  50. AnchorBottom = "0";
  51. AnchorLeft = "1";
  52. AnchorRight = "0";
  53. TabPosition = "Top";
  54. TabMargin = "6";
  55. MinTabWidth = "32";
  56. //---------------------------------------------------------------
  57. // Sequence editor
  58. new GuiTabPageCtrl(ShapeEdSequences) {
  59. canSaveDynamicFields = "0";
  60. isContainer = "1";
  61. Profile = "ToolsGuiTabPageProfile";
  62. HorizSizing = "width";
  63. VertSizing = "height";
  64. Position = "0 19";
  65. Extent = "202 418";
  66. MinExtent = "0 -500";
  67. canSave = "1";
  68. Visible = "0";
  69. tooltipprofile = "ToolsGuiToolTipProfile";
  70. hovertime = "1000";
  71. Margin = "0 0 0 0";
  72. Padding = "0 0 0 0";
  73. AnchorTop = "1";
  74. AnchorBottom = "0";
  75. AnchorLeft = "1";
  76. AnchorRight = "0";
  77. text = "Seq";
  78. maxLength = "1024";
  79. new GuiContainer() {
  80. isContainer = "1";
  81. Profile = "GuiInspectorProfile";
  82. HorizSizing = "width";
  83. VertSizing = "height";
  84. Position = "0 0";
  85. Extent = "202 418";
  86. MinExtent = "0 8";
  87. };
  88. new GuiBitmapBorderCtrl() {
  89. isContainer = "1";
  90. Profile = "ToolsGuiTabBorderProfile";
  91. HorizSizing = "width";
  92. VertSizing = "height";
  93. Position = "0 0";
  94. Extent = "202 418";
  95. MinExtent = "0 8";
  96. };
  97. // Sequence list
  98. new GuiControl() {
  99. canSaveDynamicFields = "0";
  100. isContainer = "1";
  101. Profile = "ToolsGuiDefaultProfile";
  102. HorizSizing = "width";
  103. VertSizing = "height";
  104. Position = "0 0";
  105. Extent = "202 211";
  106. MinExtent = "8 8";
  107. canSave = "1";
  108. Visible = "1";
  109. tooltipprofile = "ToolsGuiToolTipProfile";
  110. hovertime = "1000";
  111. new GuiScrollCtrl() {
  112. canSaveDynamicFields = "0";
  113. isContainer = "1";
  114. Profile = "GuiShapeEdScrollProfile";
  115. HorizSizing = "width";
  116. VertSizing = "height";
  117. Position = "0 0";
  118. Extent = "202 211";
  119. MinExtent = "8 25";
  120. canSave = "1";
  121. Visible = "1";
  122. tooltipprofile = "ToolsGuiToolTipProfile";
  123. hovertime = "1000";
  124. Margin = "0 0 0 0";
  125. Padding = "0 0 0 0";
  126. AnchorTop = "1";
  127. AnchorBottom = "0";
  128. AnchorLeft = "1";
  129. AnchorRight = "0";
  130. willFirstRespond = "1";
  131. hScrollBar = "dynamic";
  132. vScrollBar = "dynamic";
  133. lockHorizScroll = false;
  134. lockVertScroll = "false";
  135. constantThumbHeight = "0";
  136. childMargin = "0 0";
  137. mouseWheelScrollSpeed = "-1";
  138. new GuiContainer() {
  139. internalName = "sequenceListHeader";
  140. Profile = "inspectorStyleRolloutListProfile";
  141. HorizSizing = "width";
  142. VertSizing = "bottom";
  143. Position = "1 1";
  144. Extent = "200 19";
  145. MinExtent = "8 2";
  146. };
  147. new GuiTextListCtrl(ShapeEdSequenceList) {
  148. canSaveDynamicFields = "0";
  149. isContainer = "1";
  150. Profile = "GuiShapeEdTextListProfile";
  151. HorizSizing = "right";
  152. VertSizing = "bottom";
  153. Position = "0 0";
  154. Extent = "202 20";
  155. MinExtent = "8 11";
  156. canSave = "1";
  157. Visible = "1";
  158. Command = "ShapeEdPropWindow.update_onSeqSelectionChanged();";
  159. tooltipprofile = "ToolsGuiToolTipProfile";
  160. hovertime = "1000";
  161. enumerate = "0";
  162. resizeCell = "1";
  163. columns = "0 100 145 190 235";
  164. fitParentWidth = "0";
  165. clipColumnText = "1";
  166. };
  167. };
  168. };
  169. // Sequence properties
  170. new GuiControl() {
  171. canSaveDynamicFields = "0";
  172. isContainer = "1";
  173. Profile = "ToolsGuiDefaultProfile";
  174. HorizSizing = "width";
  175. VertSizing = "top";
  176. Position = "0 210";
  177. Extent = "202 209";
  178. MinExtent = "8 11";
  179. canSave = "1";
  180. Visible = "1";
  181. tooltipprofile = "ToolsGuiToolTipProfile";
  182. hovertime = "1000";
  183. new GuiContainer(){ // Sequence Properties Container
  184. Profile = "inspectorStyleRolloutDarkProfile";
  185. HorizSizing = "width";
  186. VertSizing = "bottom";
  187. position = "0 0";
  188. Extent = "202 103";
  189. isContainer = true;
  190. new GuiTextCtrl() { // Header
  191. HorizSizing = "right";
  192. VertSizing = "bottom";
  193. position = "5 1";
  194. Extent = "104 16";
  195. text = "Sequence Properties";
  196. };
  197. new GuiTextCtrl() { // Name
  198. HorizSizing = "right";
  199. VertSizing = "bottom";
  200. position = "16 22";
  201. Extent = "27 16";
  202. text = "Name";
  203. };
  204. new GuiTextEditCtrl() {
  205. internalName = "seqName";
  206. canSaveDynamicFields = "0";
  207. isContainer = "0";
  208. Profile = "ToolsGuiTextEditProfile";
  209. HorizSizing = "width";
  210. VertSizing = "bottom";
  211. Position = "46 21";
  212. Extent = "152 18";
  213. MinExtent = "8 2";
  214. canSave = "1";
  215. Visible = "1";
  216. AltCommand = "ShapeEdSequences.onEditName();";
  217. tooltipprofile = "ToolsGuiToolTipProfile";
  218. ToolTip = "Name of the selected sequence (edit to rename)";
  219. hovertime = "1000";
  220. Margin = "0 0 0 0";
  221. Padding = "0 0 0 0";
  222. AnchorTop = "1";
  223. AnchorBottom = "0";
  224. AnchorLeft = "1";
  225. AnchorRight = "0";
  226. maxLength = "256";
  227. historySize = "0";
  228. password = "0";
  229. tabComplete = "0";
  230. sinkAllKeyEvents = "0";
  231. passwordMask = "*";
  232. };
  233. // animation dropdown
  234. new GuiTextCtrl() {
  235. Profile = "ToolsGuiTextRightProfile";
  236. HorizSizing = "right";
  237. VertSizing = "bottom";
  238. Position = "-5 42";
  239. Extent = "48 18";
  240. text = "Source";
  241. tooltip = "Animation source data";
  242. };
  243. new GuiPopUpMenuCtrl(ShapeEdSeqFromMenu) {
  244. Profile = "ToolsGuiPopUpMenuProfile";
  245. HorizSizing = "width";
  246. VertSizing = "bottom";
  247. Position = "46 41";
  248. Extent = "91 18";
  249. };
  250. // Start Frame
  251. new GuiTextCtrl() {
  252. Profile = "ToolsGuiTextRightProfile";
  253. HorizSizing = "left";
  254. VertSizing = "bottom";
  255. Position = "32 62";
  256. Extent = "11 16";
  257. text = "in";
  258. };
  259. new GuiTextEditCtrl() {
  260. internalName = "startFrame";
  261. Profile = "ToolsGuiTextEditProfile";
  262. HorizSizing = "left";
  263. VertSizing = "bottom";
  264. Position = "46 61";
  265. Extent = "32 18";
  266. text = "";
  267. AltCommand = "ShapeEdSequences.onEditSeqInOut(\"in\", $ThisControl.getText());";
  268. };
  269. // End frame
  270. new GuiTextCtrl() {
  271. Profile = "ToolsGuiTextRightProfile";
  272. HorizSizing = "left";
  273. VertSizing = "bottom";
  274. Position = "85 62";
  275. Extent = "18 16";
  276. text = "out";
  277. };
  278. new GuiTextEditCtrl() {
  279. internalName = "endFrame";
  280. Profile = "ToolsGuiTextEditProfile";
  281. HorizSizing = "left";
  282. VertSizing = "bottom";
  283. Position = "105 61";
  284. Extent = "32 18";
  285. text = "";
  286. AltCommand = "ShapeEdSequences.onEditSeqInOut(\"out\", $ThisControl.getText());";
  287. };
  288. // Cyclic flag
  289. new GuiCheckBoxCtrl() {
  290. internalName = "cyclicFlag";
  291. Profile = "ToolsGuiCheckBoxProfile";
  292. HorizSizing = "left";
  293. VertSizing = "bottom";
  294. Position = "143 43";
  295. Extent = "39 13";
  296. Command = "ShapeEdSequences.onToggleCyclic();";
  297. tooltipprofile = "ToolsGuiToolTipProfile";
  298. ToolTip = "Loop Animation. Toggles the cyclic flag.";
  299. hovertime = "1000";
  300. text = "Loop";
  301. };
  302. // Priority
  303. new GuiTextCtrl() {
  304. Profile = "ToolsGuiTextRightProfile";
  305. HorizSizing = "left";
  306. VertSizing = "bottom";
  307. position = "136 62";
  308. Extent = "41 16";
  309. text = "Priority";
  310. };
  311. new GuiTextEditCtrl() {
  312. internalName = "priority";
  313. canSaveDynamicFields = "0";
  314. isContainer = "0";
  315. Profile = "ToolsGuiTextEditProfile";
  316. HorizSizing = "left";
  317. VertSizing = "bottom";
  318. Position = "179 61";
  319. Extent = "19 18";
  320. MinExtent = "8 2";
  321. canSave = "1";
  322. Visible = "1";
  323. AltCommand = "ShapeEdSequences.onEditPriority();";
  324. tooltipprofile = "ToolsGuiToolTipProfile";
  325. ToolTip = "Priority of the selected sequence";
  326. hovertime = "1000";
  327. Margin = "0 0 0 0";
  328. Padding = "0 0 0 0";
  329. AnchorTop = "1";
  330. AnchorBottom = "0";
  331. AnchorLeft = "1";
  332. AnchorRight = "0";
  333. maxLength = "5";
  334. historySize = "0";
  335. password = "0";
  336. tabComplete = "0";
  337. sinkAllKeyEvents = "0";
  338. passwordMask = "*";
  339. };
  340. // Blend animation dropdown
  341. new GuiCheckBoxCtrl() {
  342. internalName = "blendFlag";
  343. Profile = "ToolsGuiCheckBoxProfile";
  344. HorizSizing = "right";
  345. VertSizing = "bottom";
  346. Position = "2 82";
  347. Extent = "45 16";
  348. Command = "ShapeEdSequences.onEditBlend();";
  349. tooltipprofile = "ToolsGuiToolTipProfile";
  350. ToolTip = "Toggle the blend flag for the selected sequence";
  351. hovertime = "1000";
  352. text = "Blend";
  353. };
  354. new GuiPopUpMenuCtrl() {
  355. internalName = "blendSeq";
  356. Profile = "ToolsGuiPopUpMenuProfile";
  357. HorizSizing = "width";
  358. VertSizing = "bottom";
  359. Position = "46 81";
  360. Extent = "91 18";
  361. tooltip = "Blend reference sequence";
  362. Command = "ShapeEdSequences.onEditBlend();";
  363. };
  364. // Blend frame
  365. new GuiTextCtrl() {
  366. Profile = "ToolsGuiTextRightProfile";
  367. HorizSizing = "left";
  368. VertSizing = "bottom";
  369. Position = "142 81";
  370. Extent = "29 18";
  371. text = "Frame";
  372. };
  373. new GuiTextEditCtrl() {
  374. internalName = "blendFrame";
  375. Profile = "ToolsGuiTextEditProfile";
  376. HorizSizing = "left";
  377. VertSizing = "bottom";
  378. Position = "173 81";
  379. Extent = "25 18";
  380. text = "";
  381. tooltip = "Blend reference frame";
  382. AltCommand = "ShapeEdSequences.onEditBlend();";
  383. };
  384. };
  385. new GuiContainer(){ // Triggers Container
  386. Profile = "inspectorStyleRolloutDarkProfile";
  387. HorizSizing = "width";
  388. VertSizing = "bottom";
  389. position = "0 102";
  390. Extent = "202 106";
  391. isContainer = true;
  392. // Triggers
  393. new GuiTextCtrl() {
  394. HorizSizing = "right";
  395. VertSizing = "bottom";
  396. position = "5 0";
  397. Extent = "50 18";
  398. text = "Triggers";
  399. };
  400. new GuiBitmapButtonCtrl() {
  401. internalName = "addTriggerBtn";
  402. canSaveDynamicFields = "0";
  403. isContainer = "0";
  404. Profile = "ToolsGuiButtonProfile";
  405. HorizSizing = "left";
  406. VertSizing = "bottom";
  407. Position = "170 2";
  408. Extent = "15 15";
  409. MinExtent = "8 2";
  410. canSave = "1";
  411. Visible = "1";
  412. Command = "ShapeEdSequences.onAddTrigger();";
  413. tooltipprofile = "ToolsGuiToolTipProfile";
  414. ToolTip = "Add a new trigger";
  415. hovertime = "1000";
  416. groupNum = "0";
  417. buttonType = "PushButton";
  418. useMouseEvents = "0";
  419. bitmap = "tools/gui/images/new";
  420. };
  421. new GuiBitmapButtonCtrl() {
  422. internalName = "deleteTriggerBtn";
  423. canSaveDynamicFields = "0";
  424. isContainer = "0";
  425. Profile = "ToolsGuiButtonProfile";
  426. HorizSizing = "left";
  427. VertSizing = "bottom";
  428. Position = "185 2";
  429. Extent = "15 15";
  430. MinExtent = "8 2";
  431. canSave = "1";
  432. Visible = "1";
  433. Command = "ShapeEdTriggerList.onDeleteSelection();";
  434. tooltipprofile = "ToolsGuiToolTipProfile";
  435. ToolTip = "Delete the selected trigger";
  436. hovertime = "1000";
  437. groupNum = "0";
  438. buttonType = "PushButton";
  439. useMouseEvents = "0";
  440. bitmap = "tools/gui/images/delete";
  441. };
  442. // Trigger list
  443. new GuiControl() {
  444. canSaveDynamicFields = "0";
  445. isContainer = "1";
  446. Profile = "ToolsGuiScrollProfile";
  447. HorizSizing = "width";
  448. VertSizing = "height";
  449. Position = "0 17";
  450. Extent = "202 66";
  451. MinExtent = "8 8";
  452. canSave = "1";
  453. Visible = "1";
  454. tooltipprofile = "ToolsGuiToolTipProfile";
  455. hovertime = "1000";
  456. new GuiScrollCtrl() {
  457. canSaveDynamicFields = "0";
  458. isContainer = "1";
  459. Profile = "GuiShapeEdScrollProfile";
  460. HorizSizing = "width";
  461. VertSizing = "height";
  462. Position = "0 0";
  463. Extent = "202 66";
  464. MinExtent = "8 8";
  465. canSave = "1";
  466. Visible = "1";
  467. tooltipprofile = "ToolsGuiToolTipProfile";
  468. hovertime = "1000";
  469. Margin = "0 0 0 0";
  470. Padding = "0 0 0 0";
  471. AnchorTop = "0";
  472. AnchorBottom = "0";
  473. AnchorLeft = "1";
  474. AnchorRight = "0";
  475. willFirstRespond = "1";
  476. hScrollBar = "alwaysOff";
  477. vScrollBar = "dynamic";
  478. lockHorizScroll = "true";
  479. lockVertScroll = "false";
  480. constantThumbHeight = "0";
  481. childMargin = "0 0";
  482. mouseWheelScrollSpeed = "-1";
  483. new GuiContainer() {
  484. Profile = "inspectorStyleRolloutListProfile";
  485. HorizSizing = "width";
  486. VertSizing = "bottom";
  487. position = "1 1";
  488. Extent = "200 19";
  489. };
  490. new GuiTextListCtrl(ShapeEdTriggerList) {
  491. canSaveDynamicFields = "0";
  492. Profile = "GuiShapeEdTextListProfile";
  493. HorizSizing = "right";
  494. VertSizing = "bottom";
  495. Position = "1 1";
  496. Extent = "177 16";
  497. MinExtent = "8 11";
  498. canSave = "1";
  499. Visible = "1";
  500. Command = "ShapeEdPropWindow.onTriggerSelectionChanged();";
  501. tooltipprofile = "ToolsGuiToolTipProfile";
  502. hovertime = "1000";
  503. enumerate = "0";
  504. resizeCell = "1";
  505. columns = "-1 0 60 118";
  506. fitParentWidth = "1";
  507. clipColumnText = "1";
  508. };
  509. };
  510. };
  511. new GuiTextCtrl() {
  512. HorizSizing = "right";
  513. VertSizing = "bottom";
  514. Position = "5 85";
  515. Extent = "35 18";
  516. text = "Frame";
  517. };
  518. new GuiTextEditCtrl() {
  519. internalName = "triggerFrame";
  520. Profile = "ToolsGuiTextEditProfile";
  521. HorizSizing = "right";
  522. VertSizing = "bottom";
  523. Position = "36 85";
  524. Extent = "32 18";
  525. text = "";
  526. AltCommand = "ShapeEdTriggerList.onEditSelection();";
  527. };
  528. new GuiTextCtrl() {
  529. HorizSizing = "right";
  530. VertSizing = "bottom";
  531. Position = "75 85";
  532. Extent = "35 18";
  533. text = "Trigger";
  534. };
  535. new GuiTextEditCtrl() {
  536. internalName = "triggerNum";
  537. Profile = "ToolsGuiTextEditProfile";
  538. HorizSizing = "right";
  539. VertSizing = "bottom";
  540. Position = "110 85";
  541. Extent = "32 18";
  542. text = "";
  543. AltCommand = "ShapeEdTriggerList.onEditSelection();";
  544. };
  545. new GuiCheckBoxCtrl() {
  546. internalName = "triggerOnOff";
  547. Profile = "ToolsGuiCheckBoxProfile";
  548. HorizSizing = "left";
  549. VertSizing = "bottom";
  550. Position = "152 87";
  551. Extent = "47 13";
  552. text = "On/off";
  553. Command = "ShapeEdTriggerList.onEditSelection();";
  554. };
  555. };
  556. };
  557. };
  558. //---------------------------------------------------------------
  559. // Node Editor
  560. new GuiTabPageCtrl(ShapeEdNodes) {
  561. canSaveDynamicFields = "0";
  562. isContainer = "1";
  563. Profile = "ToolsGuiTabPageProfile";
  564. HorizSizing = "width";
  565. VertSizing = "height";
  566. Position = "0 19";
  567. Extent = "202 418";
  568. MinExtent = "0 -500";
  569. canSave = "1";
  570. Visible = "0";
  571. tooltipprofile = "ToolsGuiToolTipProfile";
  572. hovertime = "1000";
  573. Margin = "0 0 0 0";
  574. Padding = "0 0 0 0";
  575. AnchorTop = "1";
  576. AnchorBottom = "0";
  577. AnchorLeft = "1";
  578. AnchorRight = "0";
  579. text = "Node";
  580. maxLength = "1024";
  581. new GuiBitmapBorderCtrl() {
  582. isContainer = "1";
  583. Profile = "ToolsGuiTabBorderProfile";
  584. HorizSizing = "width";
  585. VertSizing = "height";
  586. Position = "0 0";
  587. Extent = "202 418";
  588. MinExtent = "0 8";
  589. };
  590. new GuiScrollCtrl() {
  591. canSaveDynamicFields = "0";
  592. isContainer = "1";
  593. Profile = "GuiEditorScrollProfile";
  594. HorizSizing = "width";
  595. VertSizing = "height";
  596. Position = "0 0";
  597. Extent = "202 288";
  598. MinExtent = "8 0";
  599. canSave = "1";
  600. Visible = "1";
  601. tooltipprofile = "ToolsGuiToolTipProfile";
  602. hovertime = "1000";
  603. Margin = "0 0 0 0";
  604. Padding = "0 0 0 0";
  605. AnchorTop = "0";
  606. AnchorBottom = "0";
  607. AnchorLeft = "1";
  608. AnchorRight = "0";
  609. willFirstRespond = "1";
  610. hScrollBar = "dynamic";
  611. vScrollBar = "dynamic";
  612. lockHorizScroll = false;
  613. lockVertScroll = "false";
  614. constantThumbHeight = "0";
  615. childMargin = "0 0";
  616. mouseWheelScrollSpeed = "-1";
  617. new GuiTreeViewCtrl(ShapeEdNodeTreeView) {
  618. canSaveDynamicFields = "0";
  619. isContainer = "1";
  620. Profile = "ToolsGuiTreeViewProfile";
  621. HorizSizing = "right";
  622. VertSizing = "height";
  623. Position = "1 1";
  624. Extent = "122 21";
  625. MinExtent = "8 8";
  626. canSave = "1";
  627. Visible = "1";
  628. tooltipprofile = "ToolsGuiToolTipProfile";
  629. hovertime = "1000";
  630. tabSize = "16";
  631. textOffset = "2";
  632. fullRowSelect = "0";
  633. itemHeight = "21";
  634. destroyTreeOnSleep = "1";
  635. MouseDragging = "0";
  636. MultipleSelections = "0";
  637. DeleteObjectAllowed = "1";
  638. DragToItemAllowed = "0";
  639. showRoot = "0";
  640. internalNamesOnly = "0";
  641. };
  642. };
  643. new GuiContainer(){ // Node Properties Container
  644. Profile = "inspectorStyleRolloutDarkProfile";
  645. HorizSizing = "width";
  646. VertSizing = "top";
  647. position = "0 287";
  648. Extent = "202 131";
  649. isContainer = true;
  650. new GuiTextCtrl() {
  651. HorizSizing = "right";
  652. VertSizing = "bottom";
  653. position = "5 1";
  654. Extent = "104 16";
  655. text = "Node Properties";
  656. };
  657. // Node property labels
  658. new GuiControl() {
  659. canSaveDynamicFields = "0";
  660. isContainer = "1";
  661. Profile = "ToolsGuiDefaultProfile";
  662. HorizSizing = "right";
  663. VertSizing = "top";
  664. Position = "6 18";
  665. Extent = "50 108";
  666. MinExtent = "8 2";
  667. canSave = "1";
  668. Visible = "1";
  669. tooltipprofile = "ToolsGuiToolTipProfile";
  670. hovertime = "1000";
  671. new GuiTextCtrl() {
  672. HorizSizing = "right";
  673. VertSizing = "bottom";
  674. profile = "ToolsGuiTextRightProfile";
  675. position = "9 6";
  676. Extent = "40 16";
  677. text = "Name";
  678. };
  679. new GuiTextCtrl() {
  680. HorizSizing = "right";
  681. VertSizing = "bottom";
  682. profile = "ToolsGuiTextRightProfile";
  683. position = "10 26";
  684. Extent = "40 16";
  685. text = "Parent";
  686. };
  687. new GuiTextCtrl() {
  688. HorizSizing = "right";
  689. VertSizing = "bottom";
  690. profile = "ToolsGuiTextRightProfile";
  691. position = "-5 49";
  692. Extent = "54 16";
  693. text = "Transform";
  694. };
  695. new GuiTextCtrl() {
  696. HorizSizing = "right";
  697. VertSizing = "bottom";
  698. profile = "ToolsGuiTextRightProfile";
  699. position = "11 73";
  700. Extent = "39 16";
  701. text = "Position";
  702. };
  703. new GuiTextCtrl() {
  704. HorizSizing = "right";
  705. VertSizing = "bottom";
  706. profile = "ToolsGuiTextRightProfile";
  707. position = "8 93";
  708. Extent = "42 16";
  709. text = "Rotation";
  710. };
  711. };
  712. // Node properties
  713. new GuiControl() {
  714. canSaveDynamicFields = "0";
  715. isContainer = "1";
  716. Profile = "ToolsGuiDefaultProfile";
  717. HorizSizing = "width";
  718. VertSizing = "top";
  719. Position = "49 16";
  720. Extent = "155 109";
  721. MinExtent = "8 2";
  722. canSave = "1";
  723. Visible = "1";
  724. tooltipprofile = "ToolsGuiToolTipProfile";
  725. hovertime = "1000";
  726. new GuiTextEditCtrl() {
  727. internalName = "nodeName";
  728. canSaveDynamicFields = "0";
  729. isContainer = "0";
  730. Profile = "ToolsGuiTextEditProfile";
  731. HorizSizing = "width";
  732. VertSizing = "bottom";
  733. Position = "12 5";
  734. Extent = "137 18";
  735. MinExtent = "8 2";
  736. canSave = "1";
  737. Visible = "1";
  738. AltCommand = "ShapeEdNodes.onEditName();";
  739. tooltipprofile = "ToolsGuiToolTipProfile";
  740. ToolTip = "Name of the selected node (edit to rename)";
  741. hovertime = "1000";
  742. Margin = "0 0 0 0";
  743. Padding = "0 0 0 0";
  744. AnchorTop = "1";
  745. AnchorBottom = "0";
  746. AnchorLeft = "1";
  747. AnchorRight = "0";
  748. maxLength = "1024";
  749. historySize = "0";
  750. password = "0";
  751. tabComplete = "0";
  752. sinkAllKeyEvents = "0";
  753. passwordMask = "*";
  754. };
  755. new GuiPopUpMenuCtrl(ShapeEdNodeParentMenu) {
  756. Profile = "ToolsGuiPopUpMenuProfile";
  757. HorizSizing = "width";
  758. VertSizing = "bottom";
  759. Position = "12 25";
  760. Extent = "137 18";
  761. tooltip = "Selected node's parent";
  762. };
  763. new GuiIconButtonCtrl() {
  764. internalName = "worldTransform";
  765. canSaveDynamicFields = "0";
  766. isContainer = "0";
  767. Profile = "ToolsGuiIconButtonProfile";
  768. HorizSizing = "right";
  769. VertSizing = "bottom";
  770. Position = "12 45";
  771. Extent = "65 25";
  772. MinExtent = "8 8";
  773. canSave = "1";
  774. Visible = "1";
  775. Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
  776. tooltipprofile = "ToolsGuiToolTipProfile";
  777. ToolTip = "View global node transform";
  778. hovertime = "1000";
  779. text = "World";
  780. groupNum = "0";
  781. buttonType = "RadioButton";
  782. useMouseEvents = "0";
  783. buttonMargin = "0 4";
  784. iconBitmap = "tools/gui/images/menubar/world-transform_n";
  785. textMargin = "25";
  786. };
  787. new GuiIconButtonCtrl() {
  788. internalName = "objectTransform";
  789. canSaveDynamicFields = "0";
  790. isContainer = "0";
  791. Profile = "ToolsGuiIconButtonProfile";
  792. HorizSizing = "left";
  793. VertSizing = "bottom";
  794. Position = "84 45";
  795. Extent = "65 25";
  796. MinExtent = "8 8";
  797. canSave = "1";
  798. Visible = "1";
  799. Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
  800. tooltipprofile = "ToolsGuiToolTipProfile";
  801. ToolTip = "View local node transform (relative to parent)";
  802. hovertime = "1000";
  803. text = "Object";
  804. groupNum = "0";
  805. buttonType = "RadioButton";
  806. useMouseEvents = "0";
  807. buttonMargin = "0 4";
  808. iconBitmap = "tools/gui/images/menubar/object-transform_n";
  809. textMargin = "26";
  810. };
  811. new GuiTextEditCtrl() {
  812. internalName = "nodePosition";
  813. canSaveDynamicFields = "0";
  814. isContainer = "0";
  815. Profile = "ToolsGuiTextEditProfile";
  816. HorizSizing = "width";
  817. VertSizing = "bottom";
  818. Position = "12 72";
  819. Extent = "137 18";
  820. MinExtent = "8 2";
  821. canSave = "1";
  822. Visible = "1";
  823. AltCommand = "ShapeEdNodes.onEditTransform();";
  824. tooltipprofile = "ToolsGuiToolTipProfile";
  825. ToolTip = "Node position (x y z)";
  826. hovertime = "1000";
  827. Margin = "0 0 0 0";
  828. Padding = "0 0 0 0";
  829. AnchorTop = "1";
  830. AnchorBottom = "0";
  831. AnchorLeft = "1";
  832. AnchorRight = "0";
  833. maxLength = "1024";
  834. historySize = "0";
  835. password = "0";
  836. tabComplete = "0";
  837. sinkAllKeyEvents = "0";
  838. passwordMask = "*";
  839. };
  840. new GuiTextEditCtrl() {
  841. internalName = "nodeRotation";
  842. canSaveDynamicFields = "0";
  843. isContainer = "0";
  844. Profile = "ToolsGuiTextEditProfile";
  845. HorizSizing = "width";
  846. VertSizing = "bottom";
  847. Position = "12 92";
  848. Extent = "137 18";
  849. MinExtent = "8 2";
  850. canSave = "1";
  851. Visible = "1";
  852. AltCommand = "ShapeEdNodes.onEditTransform();";
  853. tooltipprofile = "ToolsGuiToolTipProfile";
  854. ToolTip = "Node rotation (axis.x axis.y axis.z angle)";
  855. hovertime = "1000";
  856. Margin = "0 0 0 0";
  857. Padding = "0 0 0 0";
  858. AnchorTop = "1";
  859. AnchorBottom = "0";
  860. AnchorLeft = "1";
  861. AnchorRight = "0";
  862. maxLength = "1024";
  863. historySize = "0";
  864. password = "0";
  865. tabComplete = "0";
  866. sinkAllKeyEvents = "0";
  867. passwordMask = "*";
  868. };
  869. };
  870. };
  871. };
  872. //---------------------------------------------------------------
  873. // Details/Objects
  874. new GuiTabPageCtrl(ShapeEdDetails) {
  875. fitBook = "0";
  876. text = "Detail";
  877. maxLength = "1024";
  878. Margin = "0 0 0 0";
  879. Padding = "0 0 0 0";
  880. AnchorTop = "1";
  881. AnchorBottom = "0";
  882. AnchorLeft = "1";
  883. AnchorRight = "0";
  884. position = "0 19";
  885. extent = "202 418";
  886. MinExtent = "0 -500";
  887. HorizSizing = "width";
  888. VertSizing = "height";
  889. Profile = "ToolsGuiTabPageProfile";
  890. Visible = "0";
  891. tooltipprofile = "ToolsGuiToolTipProfile";
  892. hovertime = "1000";
  893. isContainer = "1";
  894. new GuiContainer() {
  895. position = "0 0";
  896. extent = "202 418";
  897. minExtent = "0 8";
  898. horizSizing = "width";
  899. vertSizing = "height";
  900. profile = "GuiInspectorProfile";
  901. isContainer = "1";
  902. };
  903. new GuiBitmapBorderCtrl() {
  904. position = "0 0";
  905. extent = "202 418";
  906. minExtent = "0 8";
  907. HorizSizing = "width";
  908. VertSizing = "height";
  909. Profile = "ToolsGuiTabBorderProfile";
  910. isContainer = "1";
  911. };
  912. // Detail/object tree
  913. new GuiControl() {
  914. Position = "0 0";
  915. extent = "202 276";
  916. MinExtent = "8 8";
  917. HorizSizing = "width";
  918. VertSizing = "height";
  919. Profile = "ToolsGuiDefaultProfile";
  920. Visible = "1";
  921. tooltipprofile = "ToolsGuiToolTipProfile";
  922. hovertime = "1000";
  923. isContainer = "1";
  924. canSave = "1";
  925. canSaveDynamicFields = "0";
  926. new GuiScrollCtrl() {
  927. willFirstRespond = "1";
  928. hScrollBar = "dynamic";
  929. vScrollBar = "dynamic";
  930. lockHorizScroll = false;
  931. lockVertScroll = "false";
  932. constantThumbHeight = "0";
  933. childMargin = "0 0";
  934. mouseWheelScrollSpeed = "-1";
  935. Margin = "0 0 0 0";
  936. Padding = "0 0 0 0";
  937. AnchorTop = "1";
  938. AnchorBottom = "0";
  939. AnchorLeft = "1";
  940. AnchorRight = "0";
  941. Position = "0 0";
  942. extent = "202 276";
  943. MinExtent = "8 25";
  944. HorizSizing = "width";
  945. VertSizing = "height";
  946. Profile = "GuiShapeEdScrollProfile";
  947. Visible = "1";
  948. tooltipprofile = "ToolsGuiToolTipProfile";
  949. hovertime = "1000";
  950. isContainer = "1";
  951. canSave = "1";
  952. canSaveDynamicFields = "0";
  953. new GuiTreeViewCtrl(ShapeEdDetailTree) {
  954. tabSize = "16";
  955. textOffset = "2";
  956. fullRowSelect = "0";
  957. itemHeight = "21";
  958. destroyTreeOnSleep = "1";
  959. MouseDragging = "0";
  960. MultipleSelections = "0";
  961. DeleteObjectAllowed = "1";
  962. DragToItemAllowed = "0";
  963. showRoot = "0";
  964. Position = "1 1";
  965. extent = "85 110";
  966. MinExtent = "8 8";
  967. HorizSizing = "right";
  968. VertSizing = "height";
  969. Profile = "ToolsGuiTreeViewProfile";
  970. Visible = "1";
  971. tooltipprofile = "ToolsGuiToolTipProfile";
  972. hovertime = "1000";
  973. isContainer = "1";
  974. canSave = "1";
  975. canSaveDynamicFields = "0";
  976. };
  977. };
  978. };
  979. // Detail/Object properties
  980. new GuiControl() {
  981. position = "0 275";
  982. extent = "202 143";
  983. MinExtent = "8 8";
  984. HorizSizing = "width";
  985. vertSizing = "top";
  986. Profile = "ToolsGuiDefaultProfile";
  987. Visible = "1";
  988. tooltipprofile = "ToolsGuiToolTipProfile";
  989. hovertime = "1000";
  990. isContainer = "1";
  991. canSave = "1";
  992. canSaveDynamicFields = "0";
  993. new GuiContainer() {
  994. position = "0 0";
  995. extent = "202 143";
  996. HorizSizing = "width";
  997. VertSizing = "bottom";
  998. Profile = "inspectorStyleRolloutDarkProfile";
  999. isContainer = "1";
  1000. new GuiTextCtrl() { // Header
  1001. text = "Detail/Object Properties";
  1002. position = "4 1";
  1003. extent = "112 16";
  1004. HorizSizing = "right";
  1005. VertSizing = "bottom";
  1006. };
  1007. new GuiTextEditCtrl() {
  1008. position = "5 23";
  1009. extent = "130 18";
  1010. MinExtent = "8 2";
  1011. HorizSizing = "right";
  1012. VertSizing = "bottom";
  1013. Profile = "ToolsGuiTextEditProfile";
  1014. Visible = "1";
  1015. AltCommand = "ShapeEdDetails.onEditName();";
  1016. tooltipprofile = "ToolsGuiToolTipProfile";
  1017. ToolTip = "Edit this value to rename the current object or detail";
  1018. hovertime = "1000";
  1019. internalName = "meshName";
  1020. canSave = "1";
  1021. canSaveDynamicFields = "0";
  1022. };
  1023. new GuiTextEditCtrl() {
  1024. position = "157 23";
  1025. extent = "40 18";
  1026. MinExtent = "8 2";
  1027. HorizSizing = "right";
  1028. VertSizing = "bottom";
  1029. Profile = "ToolsGuiTextEditProfile";
  1030. Visible = "1";
  1031. AltCommand = "ShapeEdDetails.onEditSize();";
  1032. tooltipprofile = "ToolsGuiToolTipProfile";
  1033. ToolTip = "Edit this value to change the size of the current mesh or detail";
  1034. hovertime = "1000";
  1035. internalName = "meshSize";
  1036. canSave = "1";
  1037. canSaveDynamicFields = "0";
  1038. };
  1039. new GuiTextCtrl() {
  1040. text = "Billboarding";
  1041. position = "5 44";
  1042. extent = "57 16";
  1043. HorizSizing = "right";
  1044. VertSizing = "bottom";
  1045. };
  1046. new GuiPopUpMenuCtrl() {
  1047. position = "88 45";
  1048. extent = "109 18";
  1049. HorizSizing = "right";
  1050. vertSizing = "bottom";
  1051. Profile = "ToolsGuiPopUpMenuProfile";
  1052. Command = "ShapeEdDetails.onEditBBType();";
  1053. ToolTip = "The type of billboarding used by the mesh";
  1054. internalName = "bbType";
  1055. };
  1056. new GuiTextCtrl() {
  1057. text = "Object Node";
  1058. position = "5 66";
  1059. extent = "60 16";
  1060. HorizSizing = "right";
  1061. VertSizing = "bottom";
  1062. };
  1063. new GuiPopUpMenuCtrl() {
  1064. position = "88 67";
  1065. extent = "109 18";
  1066. HorizSizing = "right";
  1067. vertSizing = "bottom";
  1068. Profile = "ToolsGuiPopUpMenuProfile";
  1069. Command = "ShapeEdDetails.onSetObjectNode();";
  1070. ToolTip = "The node this object is attached to (all detail levels)";
  1071. internalName = "objectNode";
  1072. };
  1073. new GuiBitmapCtrl(){
  1074. bitmap = "tools/gui/images/inactive-overlay";
  1075. position = "4 45";
  1076. extent = "193 42";
  1077. tooltip = "A mesh must be selected to edit these properties";
  1078. hovertime = "500";
  1079. isContainer = "1";
  1080. internalName = "editMeshInactive";
  1081. };
  1082. new GuiButtonCtrl() {
  1083. text = "Import Shape into...";
  1084. groupNum = "-1";
  1085. buttonType = "PushButton";
  1086. useMouseEvents = "0";
  1087. position = "4 91";
  1088. extent = "102 22";
  1089. MinExtent = "8 2";
  1090. HorizSizing = "right";
  1091. vertSizing = "bottom";
  1092. Profile = "ToolsGuiButtonProfile";
  1093. Visible = "1";
  1094. Command = "ShapeEdDetails.onAddMeshFromFile(\"\");";
  1095. tooltipprofile = "ToolsGuiToolTipProfile";
  1096. ToolTip = "Add geometry from a different model file into the current shape";
  1097. hovertime = "1000";
  1098. isContainer = "0";
  1099. canSave = "1";
  1100. canSaveDynamicFields = "0";
  1101. };
  1102. new GuiPopUpMenuCtrl() {
  1103. position = "111 92";
  1104. extent = "85 18";
  1105. horizSizing = "right";
  1106. vertSizing = "bottom";
  1107. Profile = "ToolsGuiPopUpMenuProfile";
  1108. tooltip = "Select which detail level new geometry will be added to";
  1109. internalName = "addGeomTo";
  1110. };
  1111. new GuiButtonCtrl() {
  1112. text = "Re-compute bounds";
  1113. groupNum = "-1";
  1114. buttonType = "PushButton";
  1115. useMouseEvents = "0";
  1116. position = "40 117";
  1117. extent = "122 22";
  1118. MinExtent = "8 2";
  1119. HorizSizing = "right";
  1120. vertSizing = "bottom";
  1121. Profile = "ToolsGuiButtonProfile";
  1122. Visible = "1";
  1123. Command = "ShapeEditor.doSetBounds();";
  1124. tooltipprofile = "ToolsGuiToolTipProfile";
  1125. ToolTip = "Recompute the shape bounding box using the geometry in the current detail level";
  1126. hovertime = "1000";
  1127. isContainer = "0";
  1128. canSave = "1";
  1129. canSaveDynamicFields = "0";
  1130. };
  1131. };
  1132. };
  1133. };
  1134. //---------------------------------------------------------------
  1135. // Materials
  1136. new GuiTabPageCtrl(ShapeEdMaterials) {
  1137. canSaveDynamicFields = "0";
  1138. isContainer = "1";
  1139. Profile = "ToolsGuiTabPageProfile";
  1140. HorizSizing = "width";
  1141. VertSizing = "height";
  1142. Position = "0 19";
  1143. Extent = "202 418";
  1144. MinExtent = "0 -500";
  1145. canSave = "1";
  1146. Visible = "0";
  1147. tooltipprofile = "ToolsGuiToolTipProfile";
  1148. hovertime = "1000";
  1149. Margin = "0 0 0 0";
  1150. Padding = "0 0 0 0";
  1151. AnchorTop = "1";
  1152. AnchorBottom = "0";
  1153. AnchorLeft = "1";
  1154. AnchorRight = "0";
  1155. text = "Mat";
  1156. maxLength = "1024";
  1157. new GuiContainer() {
  1158. isContainer = "1";
  1159. Profile = "GuiInspectorProfile";
  1160. HorizSizing = "width";
  1161. VertSizing = "height";
  1162. Position = "0 0";
  1163. Extent = "202 418";
  1164. MinExtent = "0 8";
  1165. };
  1166. new GuiBitmapBorderCtrl() {
  1167. isContainer = "1";
  1168. Profile = "ToolsGuiTabBorderProfile";
  1169. HorizSizing = "width";
  1170. VertSizing = "height";
  1171. Position = "0 0";
  1172. Extent = "202 418";
  1173. MinExtent = "0 8";
  1174. };
  1175. // Material list
  1176. new GuiControl() {
  1177. canSaveDynamicFields = "0";
  1178. isContainer = "1";
  1179. Profile = "ToolsGuiDefaultProfile";
  1180. HorizSizing = "width";
  1181. VertSizing = "height";
  1182. Position = "0 0";
  1183. Extent = "202 345";
  1184. MinExtent = "8 8";
  1185. canSave = "1";
  1186. Visible = "1";
  1187. tooltipprofile = "ToolsGuiToolTipProfile";
  1188. hovertime = "1000";
  1189. new GuiScrollCtrl() {
  1190. canSaveDynamicFields = "0";
  1191. isContainer = "1";
  1192. Profile = "GuiShapeEdScrollProfile";
  1193. HorizSizing = "width";
  1194. VertSizing = "height";
  1195. Position = "0 0";
  1196. Extent = "202 345";
  1197. MinExtent = "8 25";
  1198. canSave = "1";
  1199. Visible = "1";
  1200. tooltipprofile = "ToolsGuiToolTipProfile";
  1201. hovertime = "1000";
  1202. Margin = "0 0 0 0";
  1203. Padding = "0 0 0 0";
  1204. AnchorTop = "1";
  1205. AnchorBottom = "0";
  1206. AnchorLeft = "1";
  1207. AnchorRight = "0";
  1208. willFirstRespond = "1";
  1209. hScrollBar = "dynamic";
  1210. vScrollBar = "dynamic";
  1211. lockHorizScroll = false;
  1212. lockVertScroll = "false";
  1213. constantThumbHeight = "0";
  1214. childMargin = "0 0";
  1215. mouseWheelScrollSpeed = "-1";
  1216. new GuiContainer() {
  1217. internalName = "materialListHeader";
  1218. Profile = "inspectorStyleRolloutListProfile";
  1219. HorizSizing = "width";
  1220. VertSizing = "bottom";
  1221. Position = "1 1";
  1222. Extent = "200 19";
  1223. MinExtent = "8 2";
  1224. };
  1225. new GuiTextListCtrl(ShapeEdMaterialList) {
  1226. canSaveDynamicFields = "0";
  1227. isContainer = "1";
  1228. Profile = "GuiShapeEdTextListProfile";
  1229. HorizSizing = "right";
  1230. VertSizing = "bottom";
  1231. Position = "0 0";
  1232. Extent = "202 20";
  1233. MinExtent = "8 11";
  1234. canSave = "1";
  1235. Visible = "1";
  1236. Command = "ShapeEdMaterials.updateSelectedMaterial(ShapeEdMaterials-->highlightMaterial.getValue());";
  1237. tooltipprofile = "ToolsGuiToolTipProfile";
  1238. hovertime = "1000";
  1239. enumerate = "0";
  1240. resizeCell = "1";
  1241. columns = "0 130";
  1242. fitParentWidth = "0";
  1243. clipColumnText = "1";
  1244. };
  1245. };
  1246. };
  1247. // Material properties
  1248. new GuiContainer() {
  1249. Profile = "inspectorStyleRolloutDarkProfile";
  1250. HorizSizing = "width";
  1251. VertSizing = "top";
  1252. Position = "0 344";
  1253. Extent = "202 74";
  1254. isContainer = true;
  1255. new GuiTextCtrl() { // Header
  1256. HorizSizing = "right";
  1257. VertSizing = "bottom";
  1258. position = "5 1";
  1259. Extent = "104 16";
  1260. text = "Material Options";
  1261. };
  1262. new GuiIconButtonCtrl() {
  1263. canSaveDynamicFields = "0";
  1264. isContainer = "0";
  1265. Profile = "ToolsGuiIconButtonProfile";
  1266. HorizSizing = "right";
  1267. VertSizing = "bottom";
  1268. Position = "0 21";
  1269. Extent = "150 25";
  1270. MinExtent = "8 8";
  1271. canSave = "1";
  1272. Visible = "1";
  1273. Command = "ShapeEdMaterials.editSelectedMaterial();";
  1274. tooltipprofile = "ToolsGuiToolTipProfile";
  1275. ToolTip = "Open the Material Editor to edit the selected material";
  1276. hovertime = "1000";
  1277. text = "Edit the selected Material";
  1278. groupNum = "0";
  1279. buttonType = "PushButton";
  1280. useMouseEvents = "0";
  1281. buttonMargin = "0 4";
  1282. iconBitmap = "tools/worldEditor/images/toolbar/matterial-editor_n";
  1283. textMargin = "25";
  1284. };
  1285. new GuiCheckBoxCtrl() {
  1286. internalName = "highlightMaterial";
  1287. Profile = "ToolsGuiCheckBoxProfile";
  1288. HorizSizing = "right";
  1289. VertSizing = "bottom";
  1290. Position = "7 52";
  1291. Extent = "150 13";
  1292. Command = "ShapeEdMaterials.updateSelectedMaterial($ThisControl.getValue());";
  1293. tooltipprofile = "ToolsGuiToolTipProfile";
  1294. ToolTip = "Highlight the primitives that use the selected Material";
  1295. hovertime = "1000";
  1296. text = "Highlight selected Material";
  1297. };
  1298. };
  1299. };
  1300. };
  1301. // Save/New/Delete buttons (node or sequence, depending on which tab is active)
  1302. new GuiBitmapButtonCtrl() {
  1303. internalName = "saveBtn";
  1304. canSaveDynamicFields = "0";
  1305. isContainer = "0";
  1306. Profile = "ToolsGuiButtonProfile";
  1307. HorizSizing = "left";
  1308. VertSizing = "bottom";
  1309. Position = "154 25";
  1310. Extent = "17 17";
  1311. MinExtent = "8 2";
  1312. canSave = "1";
  1313. Visible = "1";
  1314. Command = "ShapeEditor.saveChanges();";
  1315. tooltipprofile = "ToolsGuiToolTipProfile";
  1316. ToolTip = "Save the current shape";
  1317. hovertime = "1000";
  1318. groupNum = "0";
  1319. buttonType = "PushButton";
  1320. useMouseEvents = "0";
  1321. bitmap = "tools/gui/images/save-icon";
  1322. };
  1323. new GuiBitmapButtonCtrl() {
  1324. internalName = "newBtn";
  1325. canSaveDynamicFields = "0";
  1326. isContainer = "0";
  1327. Profile = "ToolsGuiButtonProfile";
  1328. HorizSizing = "left";
  1329. VertSizing = "bottom";
  1330. Position = "176 25";
  1331. Extent = "17 17";
  1332. MinExtent = "8 2";
  1333. canSave = "1";
  1334. Visible = "1";
  1335. Command = "";
  1336. tooltipprofile = "ToolsGuiToolTipProfile";
  1337. ToolTip = "";
  1338. hovertime = "1000";
  1339. groupNum = "0";
  1340. buttonType = "PushButton";
  1341. useMouseEvents = "0";
  1342. bitmap = "tools/gui/images/new";
  1343. };
  1344. new GuiBitmapButtonCtrl() {
  1345. internalName = "deleteBtn";
  1346. canSaveDynamicFields = "0";
  1347. isContainer = "0";
  1348. Profile = "ToolsGuiButtonProfile";
  1349. HorizSizing = "left";
  1350. VertSizing = "bottom";
  1351. Position = "190 25";
  1352. Extent = "17 17";
  1353. MinExtent = "8 2";
  1354. canSave = "1";
  1355. Visible = "1";
  1356. Command = "";
  1357. tooltipprofile = "ToolsGuiToolTipProfile";
  1358. ToolTip = "";
  1359. hovertime = "1000";
  1360. groupNum = "0";
  1361. buttonType = "PushButton";
  1362. useMouseEvents = "0";
  1363. bitmap = "tools/gui/images/delete";
  1364. };
  1365. };
  1366. //--- OBJECT WRITE END ---
  1367. new GuiControl(GenImposterGui,EditorGuiGroup) {
  1368. isContainer = "1";
  1369. Profile = "ToolsGuiOverlayProfile";
  1370. HorizSizing = "right";
  1371. VertSizing = "bottom";
  1372. position = "0 0";
  1373. Extent = "800 600";
  1374. MinExtent = "8 2";
  1375. canSave = "1";
  1376. Visible = "1";
  1377. tooltipprofile = "ToolsGuiToolTipProfile";
  1378. hovertime = "1000";
  1379. canSaveDynamicFields = "1";
  1380. new GuiControl() {
  1381. isContainer = "1";
  1382. Profile = "editorMenu_wBorderProfile";
  1383. HorizSizing = "center";
  1384. VertSizing = "center";
  1385. position = "277 271";
  1386. Extent = "245 57";
  1387. MinExtent = "8 2";
  1388. canSave = "1";
  1389. Visible = "1";
  1390. tooltipprofile = "ToolsGuiToolTipProfile";
  1391. hovertime = "1000";
  1392. internalName = "Dialog";
  1393. canSaveDynamicFields = "0";
  1394. new GuiTextCtrl() {
  1395. text = "Generating imposter bitmaps...";
  1396. maxLength = "1024";
  1397. Margin = "0 0 0 0";
  1398. Padding = "0 0 0 0";
  1399. AnchorTop = "1";
  1400. AnchorBottom = "0";
  1401. AnchorLeft = "1";
  1402. AnchorRight = "0";
  1403. isContainer = "0";
  1404. Profile = "ToolsGuiTextBoldCenterProfile";
  1405. HorizSizing = "width";
  1406. VertSizing = "center";
  1407. position = "5 19";
  1408. Extent = "236 18";
  1409. MinExtent = "8 2";
  1410. canSave = "1";
  1411. Visible = "1";
  1412. tooltipprofile = "ToolsGuiToolTipProfile";
  1413. hovertime = "1000";
  1414. canSaveDynamicFields = "0";
  1415. };
  1416. };
  1417. };
  1418. function GenImposterGui::onWake(%this)
  1419. {
  1420. %res = %this.getExtent();
  1421. %resX = getWord(%res, 0);
  1422. %resY = getWord(%res, 1);
  1423. %dialog = %this-->Dialog;
  1424. %dialogExtent = %dialog.getExtent();
  1425. %dialogWidth = getWord(%dialogExtent, 0);
  1426. %dialogHeight = getWord(%dialogExtent, 1);
  1427. %dialogPostion = %dialog.getPosition();
  1428. %posX = (%resX / 2) - (%dialogWidth / 2);
  1429. %posY = (%resY / 2) - (%dialogHeight / 2);
  1430. %dialog.setPosition(%posX, %posY);
  1431. }