shapeEdPropWindow.ed.gui 54 KB

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