shapeEdPropWindow.ed.gui 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512
  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. Profile = "ToolsGuiTextProfile";
  192. HorizSizing = "right";
  193. VertSizing = "bottom";
  194. position = "5 1";
  195. Extent = "104 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 = "27 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 = "46 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 = "46 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 = "39 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 = "45 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 = "46 81";
  362. Extent = "91 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 = "142 81";
  372. Extent = "29 18";
  373. text = "Frame";
  374. };
  375. new GuiTextEditCtrl() {
  376. internalName = "blendFrame";
  377. Profile = "ToolsGuiTextEditProfile";
  378. HorizSizing = "left";
  379. VertSizing = "bottom";
  380. Position = "173 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. bitmap = "tools/gui/images/new";
  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. bitmap = "tools/gui/images/delete";
  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. HorizSizing = "right";
  516. VertSizing = "bottom";
  517. Position = "5 85";
  518. Extent = "35 18";
  519. text = "Frame";
  520. };
  521. new GuiTextEditCtrl() {
  522. internalName = "triggerFrame";
  523. Profile = "ToolsGuiTextEditProfile";
  524. HorizSizing = "right";
  525. VertSizing = "bottom";
  526. Position = "36 85";
  527. Extent = "32 18";
  528. text = "";
  529. AltCommand = "ShapeEdTriggerList.onEditSelection();";
  530. };
  531. new GuiTextCtrl() {
  532. HorizSizing = "right";
  533. VertSizing = "bottom";
  534. Position = "75 85";
  535. Extent = "35 18";
  536. text = "Trigger";
  537. };
  538. new GuiTextEditCtrl() {
  539. internalName = "triggerNum";
  540. Profile = "ToolsGuiTextEditProfile";
  541. HorizSizing = "right";
  542. VertSizing = "bottom";
  543. Position = "110 85";
  544. Extent = "32 18";
  545. text = "";
  546. AltCommand = "ShapeEdTriggerList.onEditSelection();";
  547. };
  548. new GuiCheckBoxCtrl() {
  549. internalName = "triggerOnOff";
  550. Profile = "ToolsGuiCheckBoxProfile";
  551. HorizSizing = "left";
  552. VertSizing = "bottom";
  553. Position = "152 87";
  554. Extent = "47 13";
  555. text = "On/off";
  556. Command = "ShapeEdTriggerList.onEditSelection();";
  557. };
  558. };
  559. };
  560. };
  561. //---------------------------------------------------------------
  562. // Node Editor
  563. new GuiTabPageCtrl(ShapeEdNodes) {
  564. canSaveDynamicFields = "0";
  565. isContainer = "1";
  566. Profile = "ToolsGuiTabPageProfile";
  567. HorizSizing = "width";
  568. VertSizing = "height";
  569. Position = "0 19";
  570. Extent = "202 418";
  571. MinExtent = "0 -500";
  572. canSave = "1";
  573. Visible = "0";
  574. tooltipprofile = "ToolsGuiToolTipProfile";
  575. hovertime = "1000";
  576. Margin = "0 0 0 0";
  577. Padding = "0 0 0 0";
  578. AnchorTop = "1";
  579. AnchorBottom = "0";
  580. AnchorLeft = "1";
  581. AnchorRight = "0";
  582. text = "Node";
  583. maxLength = "1024";
  584. new GuiBitmapBorderCtrl() {
  585. isContainer = "1";
  586. Profile = "ToolsGuiTabBorderProfile";
  587. HorizSizing = "width";
  588. VertSizing = "height";
  589. Position = "0 0";
  590. Extent = "202 418";
  591. MinExtent = "0 8";
  592. };
  593. // Node Filter
  594. new GuiTextEditCtrl(NodeTreeFilter) {
  595. position = "2 4";
  596. extent = "175 18";
  597. profile = "ToolsGuiTextEditProfile";
  598. horizSizing = "width";
  599. vertSizing = "bottom";
  600. class = "GuiTreeViewFilterText";
  601. treeView = ShapeEdNodeTreeView;
  602. };
  603. new GuiBitmapButtonCtrl() {
  604. bitmap = "tools/gui/images/clear-icon";
  605. groupNum = "-1";
  606. buttonType = "PushButton";
  607. useMouseEvents = "0";
  608. isContainer = "0";
  609. Profile = "ToolsGuiButtonProfile";
  610. HorizSizing = "left";
  611. VertSizing = "bottom";
  612. position = "180 5";
  613. Extent = "17 17";
  614. MinExtent = "8 2";
  615. canSave = "1";
  616. Visible = "1";
  617. tooltipprofile = "GuiToolTipProfile";
  618. hovertime = "1000";
  619. canSaveDynamicFields = "0";
  620. class = "GuiTreeViewFilterClearButton";
  621. textCtrl = NodeTreeFilter;
  622. };
  623. // End Node Filter
  624. new GuiScrollCtrl() {
  625. canSaveDynamicFields = "0";
  626. isContainer = "1";
  627. Profile = "GuiEditorScrollProfile";
  628. HorizSizing = "width";
  629. VertSizing = "height";
  630. Position = "0 32";
  631. Extent = "202 256";
  632. MinExtent = "8 0";
  633. canSave = "1";
  634. Visible = "1";
  635. tooltipprofile = "ToolsGuiToolTipProfile";
  636. hovertime = "1000";
  637. Margin = "0 0 0 0";
  638. Padding = "0 0 0 0";
  639. AnchorTop = "0";
  640. AnchorBottom = "0";
  641. AnchorLeft = "1";
  642. AnchorRight = "0";
  643. willFirstRespond = "1";
  644. hScrollBar = "dynamic";
  645. vScrollBar = "dynamic";
  646. lockHorizScroll = false;
  647. lockVertScroll = "false";
  648. constantThumbHeight = "0";
  649. childMargin = "0 0";
  650. mouseWheelScrollSpeed = "-1";
  651. new GuiTreeViewCtrl(ShapeEdNodeTreeView) {
  652. canSaveDynamicFields = "0";
  653. isContainer = "1";
  654. Profile = "ToolsGuiTreeViewProfile";
  655. HorizSizing = "right";
  656. VertSizing = "height";
  657. Position = "1 1";
  658. Extent = "122 21";
  659. MinExtent = "8 8";
  660. canSave = "1";
  661. Visible = "1";
  662. tooltipprofile = "ToolsGuiToolTipProfile";
  663. hovertime = "1000";
  664. tabSize = "16";
  665. textOffset = "2";
  666. fullRowSelect = "0";
  667. itemHeight = "21";
  668. destroyTreeOnSleep = "1";
  669. MouseDragging = "0";
  670. MultipleSelections = "0";
  671. DeleteObjectAllowed = "1";
  672. DragToItemAllowed = "0";
  673. showRoot = "0";
  674. internalNamesOnly = "0";
  675. };
  676. };
  677. new GuiContainer(){ // Node Properties Container
  678. Profile = "inspectorStyleRolloutDarkProfile";
  679. HorizSizing = "width";
  680. VertSizing = "top";
  681. position = "0 287";
  682. Extent = "202 131";
  683. isContainer = true;
  684. new GuiTextCtrl() {
  685. Profile = "ToolsGuiTextProfile";
  686. HorizSizing = "right";
  687. VertSizing = "bottom";
  688. position = "5 1";
  689. Extent = "104 16";
  690. text = "Node Properties";
  691. };
  692. // Node property labels
  693. new GuiControl() {
  694. canSaveDynamicFields = "0";
  695. isContainer = "1";
  696. Profile = "ToolsGuiDefaultProfile";
  697. HorizSizing = "right";
  698. VertSizing = "top";
  699. Position = "6 18";
  700. Extent = "50 108";
  701. MinExtent = "8 2";
  702. canSave = "1";
  703. Visible = "1";
  704. tooltipprofile = "ToolsGuiToolTipProfile";
  705. hovertime = "1000";
  706. new GuiTextCtrl() {
  707. HorizSizing = "right";
  708. VertSizing = "bottom";
  709. profile = "ToolsGuiTextRightProfile";
  710. position = "9 6";
  711. Extent = "40 16";
  712. text = "Name";
  713. };
  714. new GuiTextCtrl() {
  715. HorizSizing = "right";
  716. VertSizing = "bottom";
  717. profile = "ToolsGuiTextRightProfile";
  718. position = "10 26";
  719. Extent = "40 16";
  720. text = "Parent";
  721. };
  722. new GuiTextCtrl() {
  723. HorizSizing = "right";
  724. VertSizing = "bottom";
  725. profile = "ToolsGuiTextRightProfile";
  726. position = "-5 49";
  727. Extent = "54 16";
  728. text = "Transform";
  729. };
  730. new GuiTextCtrl() {
  731. HorizSizing = "right";
  732. VertSizing = "bottom";
  733. profile = "ToolsGuiTextRightProfile";
  734. position = "11 73";
  735. Extent = "39 16";
  736. text = "Position";
  737. };
  738. new GuiTextCtrl() {
  739. HorizSizing = "right";
  740. VertSizing = "bottom";
  741. profile = "ToolsGuiTextRightProfile";
  742. position = "8 93";
  743. Extent = "42 16";
  744. text = "Rotation";
  745. };
  746. };
  747. // Node properties
  748. new GuiControl() {
  749. canSaveDynamicFields = "0";
  750. isContainer = "1";
  751. Profile = "ToolsGuiDefaultProfile";
  752. HorizSizing = "width";
  753. VertSizing = "top";
  754. Position = "49 16";
  755. Extent = "155 109";
  756. MinExtent = "8 2";
  757. canSave = "1";
  758. Visible = "1";
  759. tooltipprofile = "ToolsGuiToolTipProfile";
  760. hovertime = "1000";
  761. new GuiTextEditCtrl() {
  762. internalName = "nodeName";
  763. canSaveDynamicFields = "0";
  764. isContainer = "0";
  765. Profile = "ToolsGuiTextEditProfile";
  766. HorizSizing = "width";
  767. VertSizing = "bottom";
  768. Position = "12 5";
  769. Extent = "137 18";
  770. MinExtent = "8 2";
  771. canSave = "1";
  772. Visible = "1";
  773. AltCommand = "ShapeEdNodes.onEditName();";
  774. tooltipprofile = "ToolsGuiToolTipProfile";
  775. ToolTip = "Name of the selected node (edit to rename)";
  776. hovertime = "1000";
  777. Margin = "0 0 0 0";
  778. Padding = "0 0 0 0";
  779. AnchorTop = "1";
  780. AnchorBottom = "0";
  781. AnchorLeft = "1";
  782. AnchorRight = "0";
  783. maxLength = "1024";
  784. historySize = "0";
  785. password = "0";
  786. tabComplete = "0";
  787. sinkAllKeyEvents = "0";
  788. passwordMask = "*";
  789. };
  790. new GuiPopUpMenuCtrl(ShapeEdNodeParentMenu) {
  791. Profile = "ToolsGuiPopUpMenuProfile";
  792. HorizSizing = "width";
  793. VertSizing = "bottom";
  794. Position = "12 25";
  795. Extent = "137 18";
  796. tooltip = "Selected node's parent";
  797. };
  798. new GuiIconButtonCtrl() {
  799. internalName = "worldTransform";
  800. canSaveDynamicFields = "0";
  801. isContainer = "0";
  802. Profile = "ToolsGuiIconButtonProfile";
  803. HorizSizing = "right";
  804. VertSizing = "bottom";
  805. Position = "12 45";
  806. Extent = "65 25";
  807. MinExtent = "8 8";
  808. canSave = "1";
  809. Visible = "1";
  810. Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
  811. tooltipprofile = "ToolsGuiToolTipProfile";
  812. ToolTip = "View global node transform";
  813. hovertime = "1000";
  814. text = "World";
  815. groupNum = "0";
  816. buttonType = "RadioButton";
  817. useMouseEvents = "0";
  818. buttonMargin = "0 4";
  819. iconBitmap = "tools/gui/images/menubar/world-transform_n";
  820. textMargin = "25";
  821. };
  822. new GuiIconButtonCtrl() {
  823. internalName = "objectTransform";
  824. canSaveDynamicFields = "0";
  825. isContainer = "0";
  826. Profile = "ToolsGuiIconButtonProfile";
  827. HorizSizing = "left";
  828. VertSizing = "bottom";
  829. Position = "84 45";
  830. Extent = "65 25";
  831. MinExtent = "8 8";
  832. canSave = "1";
  833. Visible = "1";
  834. Command = "ShapeEdPropWindow.update_onNodeTransformChanged();";
  835. tooltipprofile = "ToolsGuiToolTipProfile";
  836. ToolTip = "View local node transform (relative to parent)";
  837. hovertime = "1000";
  838. text = "Object";
  839. groupNum = "0";
  840. buttonType = "RadioButton";
  841. useMouseEvents = "0";
  842. buttonMargin = "0 4";
  843. iconBitmap = "tools/gui/images/menubar/object-transform_n";
  844. textMargin = "26";
  845. };
  846. new GuiTextEditCtrl() {
  847. internalName = "nodePosition";
  848. canSaveDynamicFields = "0";
  849. isContainer = "0";
  850. Profile = "ToolsGuiTextEditProfile";
  851. HorizSizing = "width";
  852. VertSizing = "bottom";
  853. Position = "12 72";
  854. Extent = "137 18";
  855. MinExtent = "8 2";
  856. canSave = "1";
  857. Visible = "1";
  858. AltCommand = "ShapeEdNodes.onEditTransform();";
  859. tooltipprofile = "ToolsGuiToolTipProfile";
  860. ToolTip = "Node position (x y z)";
  861. hovertime = "1000";
  862. Margin = "0 0 0 0";
  863. Padding = "0 0 0 0";
  864. AnchorTop = "1";
  865. AnchorBottom = "0";
  866. AnchorLeft = "1";
  867. AnchorRight = "0";
  868. maxLength = "1024";
  869. historySize = "0";
  870. password = "0";
  871. tabComplete = "0";
  872. sinkAllKeyEvents = "0";
  873. passwordMask = "*";
  874. };
  875. new GuiTextEditCtrl() {
  876. internalName = "nodeRotation";
  877. canSaveDynamicFields = "0";
  878. isContainer = "0";
  879. Profile = "ToolsGuiTextEditProfile";
  880. HorizSizing = "width";
  881. VertSizing = "bottom";
  882. Position = "12 92";
  883. Extent = "137 18";
  884. MinExtent = "8 2";
  885. canSave = "1";
  886. Visible = "1";
  887. AltCommand = "ShapeEdNodes.onEditTransform();";
  888. tooltipprofile = "ToolsGuiToolTipProfile";
  889. ToolTip = "Node rotation (axis.x axis.y axis.z angle)";
  890. hovertime = "1000";
  891. Margin = "0 0 0 0";
  892. Padding = "0 0 0 0";
  893. AnchorTop = "1";
  894. AnchorBottom = "0";
  895. AnchorLeft = "1";
  896. AnchorRight = "0";
  897. maxLength = "1024";
  898. historySize = "0";
  899. password = "0";
  900. tabComplete = "0";
  901. sinkAllKeyEvents = "0";
  902. passwordMask = "*";
  903. };
  904. };
  905. };
  906. };
  907. //---------------------------------------------------------------
  908. // Details/Objects
  909. new GuiTabPageCtrl(ShapeEdDetails) {
  910. fitBook = "0";
  911. text = "Detail";
  912. maxLength = "1024";
  913. Margin = "0 0 0 0";
  914. Padding = "0 0 0 0";
  915. AnchorTop = "1";
  916. AnchorBottom = "0";
  917. AnchorLeft = "1";
  918. AnchorRight = "0";
  919. position = "0 19";
  920. extent = "202 418";
  921. MinExtent = "0 -500";
  922. HorizSizing = "width";
  923. VertSizing = "height";
  924. Profile = "ToolsGuiTabPageProfile";
  925. Visible = "0";
  926. tooltipprofile = "ToolsGuiToolTipProfile";
  927. hovertime = "1000";
  928. isContainer = "1";
  929. new GuiContainer() {
  930. position = "0 0";
  931. extent = "202 418";
  932. minExtent = "0 8";
  933. horizSizing = "width";
  934. vertSizing = "height";
  935. profile = "GuiInspectorProfile";
  936. isContainer = "1";
  937. };
  938. new GuiBitmapBorderCtrl() {
  939. position = "0 0";
  940. extent = "202 418";
  941. minExtent = "0 8";
  942. HorizSizing = "width";
  943. VertSizing = "height";
  944. Profile = "ToolsGuiTabBorderProfile";
  945. isContainer = "1";
  946. };
  947. // Detail/object tree
  948. new GuiControl() {
  949. Position = "0 0";
  950. extent = "202 276";
  951. MinExtent = "8 8";
  952. HorizSizing = "width";
  953. VertSizing = "height";
  954. Profile = "ToolsGuiDefaultProfile";
  955. Visible = "1";
  956. tooltipprofile = "ToolsGuiToolTipProfile";
  957. hovertime = "1000";
  958. isContainer = "1";
  959. canSave = "1";
  960. canSaveDynamicFields = "0";
  961. new GuiScrollCtrl() {
  962. willFirstRespond = "1";
  963. hScrollBar = "dynamic";
  964. vScrollBar = "dynamic";
  965. lockHorizScroll = false;
  966. lockVertScroll = "false";
  967. constantThumbHeight = "0";
  968. childMargin = "0 0";
  969. mouseWheelScrollSpeed = "-1";
  970. Margin = "0 0 0 0";
  971. Padding = "0 0 0 0";
  972. AnchorTop = "1";
  973. AnchorBottom = "0";
  974. AnchorLeft = "1";
  975. AnchorRight = "0";
  976. Position = "0 0";
  977. extent = "202 276";
  978. MinExtent = "8 25";
  979. HorizSizing = "width";
  980. VertSizing = "height";
  981. Profile = "GuiShapeEdScrollProfile";
  982. Visible = "1";
  983. tooltipprofile = "ToolsGuiToolTipProfile";
  984. hovertime = "1000";
  985. isContainer = "1";
  986. canSave = "1";
  987. canSaveDynamicFields = "0";
  988. new GuiTreeViewCtrl(ShapeEdDetailTree) {
  989. tabSize = "16";
  990. textOffset = "2";
  991. fullRowSelect = "0";
  992. itemHeight = "21";
  993. destroyTreeOnSleep = "1";
  994. MouseDragging = "0";
  995. MultipleSelections = "0";
  996. DeleteObjectAllowed = "1";
  997. DragToItemAllowed = "0";
  998. showRoot = "0";
  999. Position = "1 1";
  1000. extent = "85 110";
  1001. MinExtent = "8 8";
  1002. HorizSizing = "right";
  1003. VertSizing = "height";
  1004. Profile = "ToolsGuiTreeViewProfile";
  1005. Visible = "1";
  1006. tooltipprofile = "ToolsGuiToolTipProfile";
  1007. hovertime = "1000";
  1008. isContainer = "1";
  1009. canSave = "1";
  1010. canSaveDynamicFields = "0";
  1011. };
  1012. };
  1013. };
  1014. // Detail/Object properties
  1015. new GuiControl() {
  1016. position = "0 275";
  1017. extent = "202 143";
  1018. MinExtent = "8 8";
  1019. HorizSizing = "width";
  1020. vertSizing = "top";
  1021. Profile = "ToolsGuiDefaultProfile";
  1022. Visible = "1";
  1023. tooltipprofile = "ToolsGuiToolTipProfile";
  1024. hovertime = "1000";
  1025. isContainer = "1";
  1026. canSave = "1";
  1027. canSaveDynamicFields = "0";
  1028. new GuiContainer() {
  1029. position = "0 0";
  1030. extent = "202 143";
  1031. HorizSizing = "width";
  1032. VertSizing = "bottom";
  1033. Profile = "inspectorStyleRolloutDarkProfile";
  1034. isContainer = "1";
  1035. new GuiTextCtrl() { // Header
  1036. Profile = "ToolsGuiTextProfile";
  1037. text = "Detail/Object Properties";
  1038. position = "4 1";
  1039. extent = "112 16";
  1040. HorizSizing = "right";
  1041. VertSizing = "bottom";
  1042. };
  1043. new GuiTextEditCtrl() {
  1044. position = "5 23";
  1045. extent = "130 18";
  1046. MinExtent = "8 2";
  1047. HorizSizing = "right";
  1048. VertSizing = "bottom";
  1049. Profile = "ToolsGuiTextEditProfile";
  1050. Visible = "1";
  1051. AltCommand = "ShapeEdDetails.onEditName();";
  1052. tooltipprofile = "ToolsGuiToolTipProfile";
  1053. ToolTip = "Edit this value to rename the current object or detail";
  1054. hovertime = "1000";
  1055. internalName = "meshName";
  1056. canSave = "1";
  1057. canSaveDynamicFields = "0";
  1058. };
  1059. new GuiTextEditCtrl() {
  1060. position = "157 23";
  1061. extent = "40 18";
  1062. MinExtent = "8 2";
  1063. HorizSizing = "right";
  1064. VertSizing = "bottom";
  1065. Profile = "ToolsGuiTextEditProfile";
  1066. Visible = "1";
  1067. AltCommand = "ShapeEdDetails.onEditSize();";
  1068. tooltipprofile = "ToolsGuiToolTipProfile";
  1069. ToolTip = "Edit this value to change the size of the current mesh or detail";
  1070. hovertime = "1000";
  1071. internalName = "meshSize";
  1072. canSave = "1";
  1073. canSaveDynamicFields = "0";
  1074. };
  1075. new GuiTextCtrl() {
  1076. text = "Billboarding";
  1077. position = "5 44";
  1078. extent = "57 16";
  1079. HorizSizing = "right";
  1080. VertSizing = "bottom";
  1081. };
  1082. new GuiPopUpMenuCtrl() {
  1083. position = "88 45";
  1084. extent = "109 18";
  1085. HorizSizing = "right";
  1086. vertSizing = "bottom";
  1087. Profile = "ToolsGuiPopUpMenuProfile";
  1088. Command = "ShapeEdDetails.onEditBBType();";
  1089. ToolTip = "The type of billboarding used by the mesh";
  1090. internalName = "bbType";
  1091. };
  1092. new GuiTextCtrl() {
  1093. text = "Object Node";
  1094. position = "5 66";
  1095. extent = "60 16";
  1096. HorizSizing = "right";
  1097. VertSizing = "bottom";
  1098. };
  1099. new GuiPopUpMenuCtrl() {
  1100. position = "88 67";
  1101. extent = "109 18";
  1102. HorizSizing = "right";
  1103. vertSizing = "bottom";
  1104. Profile = "ToolsGuiPopUpMenuProfile";
  1105. Command = "ShapeEdDetails.onSetObjectNode();";
  1106. ToolTip = "The node this object is attached to (all detail levels)";
  1107. internalName = "objectNode";
  1108. };
  1109. new GuiBitmapCtrl(){
  1110. bitmap = "tools/gui/images/inactive-overlay";
  1111. position = "4 45";
  1112. extent = "193 42";
  1113. tooltip = "A mesh must be selected to edit these properties";
  1114. hovertime = "500";
  1115. isContainer = "1";
  1116. internalName = "editMeshInactive";
  1117. };
  1118. new GuiButtonCtrl() {
  1119. text = "Import Shape into...";
  1120. groupNum = "-1";
  1121. buttonType = "PushButton";
  1122. useMouseEvents = "0";
  1123. position = "4 91";
  1124. extent = "102 22";
  1125. MinExtent = "8 2";
  1126. HorizSizing = "right";
  1127. vertSizing = "bottom";
  1128. Profile = "ToolsGuiButtonProfile";
  1129. Visible = "1";
  1130. Command = "ShapeEdDetails.onAddMeshFromFile(\"\");";
  1131. tooltipprofile = "ToolsGuiToolTipProfile";
  1132. ToolTip = "Add geometry from a different model file into the current shape";
  1133. hovertime = "1000";
  1134. isContainer = "0";
  1135. canSave = "1";
  1136. canSaveDynamicFields = "0";
  1137. };
  1138. new GuiPopUpMenuCtrl() {
  1139. position = "111 92";
  1140. extent = "85 18";
  1141. horizSizing = "right";
  1142. vertSizing = "bottom";
  1143. Profile = "ToolsGuiPopUpMenuProfile";
  1144. tooltip = "Select which detail level new geometry will be added to";
  1145. internalName = "addGeomTo";
  1146. };
  1147. new GuiButtonCtrl() {
  1148. text = "Re-compute bounds";
  1149. groupNum = "-1";
  1150. buttonType = "PushButton";
  1151. useMouseEvents = "0";
  1152. position = "40 117";
  1153. extent = "122 22";
  1154. MinExtent = "8 2";
  1155. HorizSizing = "right";
  1156. vertSizing = "bottom";
  1157. Profile = "ToolsGuiButtonProfile";
  1158. Visible = "1";
  1159. Command = "ShapeEditor.doSetBounds();";
  1160. tooltipprofile = "ToolsGuiToolTipProfile";
  1161. ToolTip = "Recompute the shape bounding box using the geometry in the current detail level";
  1162. hovertime = "1000";
  1163. isContainer = "0";
  1164. canSave = "1";
  1165. canSaveDynamicFields = "0";
  1166. };
  1167. };
  1168. };
  1169. };
  1170. //---------------------------------------------------------------
  1171. // Materials
  1172. new GuiTabPageCtrl(ShapeEdMaterials) {
  1173. canSaveDynamicFields = "0";
  1174. isContainer = "1";
  1175. Profile = "ToolsGuiTabPageProfile";
  1176. HorizSizing = "width";
  1177. VertSizing = "height";
  1178. Position = "0 19";
  1179. Extent = "202 418";
  1180. MinExtent = "0 -500";
  1181. canSave = "1";
  1182. Visible = "0";
  1183. tooltipprofile = "ToolsGuiToolTipProfile";
  1184. hovertime = "1000";
  1185. Margin = "0 0 0 0";
  1186. Padding = "0 0 0 0";
  1187. AnchorTop = "1";
  1188. AnchorBottom = "0";
  1189. AnchorLeft = "1";
  1190. AnchorRight = "0";
  1191. text = "Mat";
  1192. maxLength = "1024";
  1193. new GuiContainer() {
  1194. isContainer = "1";
  1195. Profile = "GuiInspectorProfile";
  1196. HorizSizing = "width";
  1197. VertSizing = "height";
  1198. Position = "0 0";
  1199. Extent = "202 418";
  1200. MinExtent = "0 8";
  1201. };
  1202. new GuiBitmapBorderCtrl() {
  1203. isContainer = "1";
  1204. Profile = "ToolsGuiTabBorderProfile";
  1205. HorizSizing = "width";
  1206. VertSizing = "height";
  1207. Position = "0 0";
  1208. Extent = "202 418";
  1209. MinExtent = "0 8";
  1210. };
  1211. // Material list
  1212. new GuiControl() {
  1213. canSaveDynamicFields = "0";
  1214. isContainer = "1";
  1215. Profile = "ToolsGuiDefaultProfile";
  1216. HorizSizing = "width";
  1217. VertSizing = "height";
  1218. Position = "0 0";
  1219. Extent = "202 345";
  1220. MinExtent = "8 8";
  1221. canSave = "1";
  1222. Visible = "1";
  1223. tooltipprofile = "ToolsGuiToolTipProfile";
  1224. hovertime = "1000";
  1225. new GuiScrollCtrl() {
  1226. canSaveDynamicFields = "0";
  1227. isContainer = "1";
  1228. Profile = "GuiShapeEdScrollProfile";
  1229. HorizSizing = "width";
  1230. VertSizing = "height";
  1231. Position = "0 0";
  1232. Extent = "202 345";
  1233. MinExtent = "8 25";
  1234. canSave = "1";
  1235. Visible = "1";
  1236. tooltipprofile = "ToolsGuiToolTipProfile";
  1237. hovertime = "1000";
  1238. Margin = "0 0 0 0";
  1239. Padding = "0 0 0 0";
  1240. AnchorTop = "1";
  1241. AnchorBottom = "0";
  1242. AnchorLeft = "1";
  1243. AnchorRight = "0";
  1244. willFirstRespond = "1";
  1245. hScrollBar = "dynamic";
  1246. vScrollBar = "dynamic";
  1247. lockHorizScroll = false;
  1248. lockVertScroll = "false";
  1249. constantThumbHeight = "0";
  1250. childMargin = "0 0";
  1251. mouseWheelScrollSpeed = "-1";
  1252. new GuiContainer() {
  1253. internalName = "materialListHeader";
  1254. Profile = "inspectorStyleRolloutListProfile";
  1255. HorizSizing = "width";
  1256. VertSizing = "bottom";
  1257. Position = "1 1";
  1258. Extent = "200 19";
  1259. MinExtent = "8 2";
  1260. };
  1261. new GuiTextListCtrl(ShapeEdMaterialList) {
  1262. canSaveDynamicFields = "0";
  1263. isContainer = "1";
  1264. Profile = "GuiShapeEdTextListProfile";
  1265. HorizSizing = "right";
  1266. VertSizing = "bottom";
  1267. Position = "0 0";
  1268. Extent = "202 20";
  1269. MinExtent = "8 11";
  1270. canSave = "1";
  1271. Visible = "1";
  1272. Command = "ShapeEdMaterials.updateSelectedMaterial(ShapeEdMaterials-->highlightMaterial.getValue());";
  1273. tooltipprofile = "ToolsGuiToolTipProfile";
  1274. hovertime = "1000";
  1275. enumerate = "0";
  1276. resizeCell = "1";
  1277. columns = "0 130";
  1278. fitParentWidth = "0";
  1279. clipColumnText = "1";
  1280. };
  1281. };
  1282. };
  1283. // Material properties
  1284. new GuiContainer() {
  1285. Profile = "inspectorStyleRolloutDarkProfile";
  1286. HorizSizing = "width";
  1287. VertSizing = "top";
  1288. Position = "0 344";
  1289. Extent = "202 74";
  1290. isContainer = true;
  1291. new GuiTextCtrl() { // Header
  1292. Profile = "ToolsGuiTextProfile";
  1293. HorizSizing = "right";
  1294. VertSizing = "bottom";
  1295. position = "5 1";
  1296. Extent = "104 16";
  1297. text = "Material Options";
  1298. };
  1299. new GuiIconButtonCtrl() {
  1300. canSaveDynamicFields = "0";
  1301. isContainer = "0";
  1302. Profile = "ToolsGuiIconButtonProfile";
  1303. HorizSizing = "right";
  1304. VertSizing = "bottom";
  1305. Position = "0 21";
  1306. Extent = "150 25";
  1307. MinExtent = "8 8";
  1308. canSave = "1";
  1309. Visible = "1";
  1310. Command = "ShapeEdMaterials.editSelectedMaterial();";
  1311. tooltipprofile = "ToolsGuiToolTipProfile";
  1312. ToolTip = "Open the Material Editor to edit the selected material";
  1313. hovertime = "1000";
  1314. text = "Edit the selected Material";
  1315. groupNum = "0";
  1316. buttonType = "PushButton";
  1317. useMouseEvents = "0";
  1318. buttonMargin = "0 4";
  1319. iconBitmap = "tools/worldEditor/images/toolbar/material-editor_n";
  1320. textMargin = "25";
  1321. };
  1322. new GuiCheckBoxCtrl() {
  1323. internalName = "highlightMaterial";
  1324. Profile = "ToolsGuiCheckBoxProfile";
  1325. HorizSizing = "right";
  1326. VertSizing = "bottom";
  1327. Position = "7 52";
  1328. Extent = "150 13";
  1329. Command = "ShapeEdMaterials.updateSelectedMaterial($ThisControl.getValue());";
  1330. tooltipprofile = "ToolsGuiToolTipProfile";
  1331. ToolTip = "Highlight the primitives that use the selected Material";
  1332. hovertime = "1000";
  1333. text = "Highlight selected Material";
  1334. };
  1335. };
  1336. };
  1337. };
  1338. // Save/New/Delete buttons (node or sequence, depending on which tab is active)
  1339. new GuiBitmapButtonCtrl() {
  1340. internalName = "saveBtn";
  1341. canSaveDynamicFields = "0";
  1342. isContainer = "0";
  1343. Profile = "ToolsGuiButtonProfile";
  1344. HorizSizing = "left";
  1345. VertSizing = "bottom";
  1346. Position = "154 25";
  1347. Extent = "17 17";
  1348. MinExtent = "8 2";
  1349. canSave = "1";
  1350. Visible = "1";
  1351. Command = "ShapeEditor.saveChanges();";
  1352. tooltipprofile = "ToolsGuiToolTipProfile";
  1353. ToolTip = "Save the current shape";
  1354. hovertime = "1000";
  1355. groupNum = "0";
  1356. buttonType = "PushButton";
  1357. useMouseEvents = "0";
  1358. bitmap = "tools/gui/images/save-icon";
  1359. };
  1360. new GuiBitmapButtonCtrl() {
  1361. internalName = "newBtn";
  1362. canSaveDynamicFields = "0";
  1363. isContainer = "0";
  1364. Profile = "ToolsGuiButtonProfile";
  1365. HorizSizing = "left";
  1366. VertSizing = "bottom";
  1367. Position = "176 25";
  1368. Extent = "17 17";
  1369. MinExtent = "8 2";
  1370. canSave = "1";
  1371. Visible = "1";
  1372. Command = "";
  1373. tooltipprofile = "ToolsGuiToolTipProfile";
  1374. ToolTip = "";
  1375. hovertime = "1000";
  1376. groupNum = "0";
  1377. buttonType = "PushButton";
  1378. useMouseEvents = "0";
  1379. bitmap = "tools/gui/images/new";
  1380. };
  1381. new GuiBitmapButtonCtrl() {
  1382. internalName = "deleteBtn";
  1383. canSaveDynamicFields = "0";
  1384. isContainer = "0";
  1385. Profile = "ToolsGuiButtonProfile";
  1386. HorizSizing = "left";
  1387. VertSizing = "bottom";
  1388. Position = "190 25";
  1389. Extent = "17 17";
  1390. MinExtent = "8 2";
  1391. canSave = "1";
  1392. Visible = "1";
  1393. Command = "";
  1394. tooltipprofile = "ToolsGuiToolTipProfile";
  1395. ToolTip = "";
  1396. hovertime = "1000";
  1397. groupNum = "0";
  1398. buttonType = "PushButton";
  1399. useMouseEvents = "0";
  1400. bitmap = "tools/gui/images/delete";
  1401. };
  1402. };
  1403. //--- OBJECT WRITE END ---
  1404. new GuiControl(GenImposterGui,EditorGuiGroup) {
  1405. isContainer = "1";
  1406. Profile = "ToolsGuiOverlayProfile";
  1407. HorizSizing = "right";
  1408. VertSizing = "bottom";
  1409. position = "0 0";
  1410. Extent = "800 600";
  1411. MinExtent = "8 2";
  1412. canSave = "1";
  1413. Visible = "1";
  1414. tooltipprofile = "ToolsGuiToolTipProfile";
  1415. hovertime = "1000";
  1416. canSaveDynamicFields = "1";
  1417. new GuiControl() {
  1418. isContainer = "1";
  1419. Profile = "editorMenu_wBorderProfile";
  1420. HorizSizing = "center";
  1421. VertSizing = "center";
  1422. position = "277 271";
  1423. Extent = "245 57";
  1424. MinExtent = "8 2";
  1425. canSave = "1";
  1426. Visible = "1";
  1427. tooltipprofile = "ToolsGuiToolTipProfile";
  1428. hovertime = "1000";
  1429. internalName = "Dialog";
  1430. canSaveDynamicFields = "0";
  1431. new GuiTextCtrl() {
  1432. text = "Generating imposter bitmaps...";
  1433. maxLength = "1024";
  1434. Margin = "0 0 0 0";
  1435. Padding = "0 0 0 0";
  1436. AnchorTop = "1";
  1437. AnchorBottom = "0";
  1438. AnchorLeft = "1";
  1439. AnchorRight = "0";
  1440. isContainer = "0";
  1441. Profile = "ToolsGuiTextBoldCenterProfile";
  1442. HorizSizing = "width";
  1443. VertSizing = "center";
  1444. position = "5 19";
  1445. Extent = "236 18";
  1446. MinExtent = "8 2";
  1447. canSave = "1";
  1448. Visible = "1";
  1449. tooltipprofile = "ToolsGuiToolTipProfile";
  1450. hovertime = "1000";
  1451. canSaveDynamicFields = "0";
  1452. };
  1453. };
  1454. };
  1455. function GenImposterGui::onWake(%this)
  1456. {
  1457. %res = %this.getExtent();
  1458. %resX = getWord(%res, 0);
  1459. %resY = getWord(%res, 1);
  1460. %dialog = %this-->Dialog;
  1461. %dialogExtent = %dialog.getExtent();
  1462. %dialogWidth = getWord(%dialogExtent, 0);
  1463. %dialogHeight = getWord(%dialogExtent, 1);
  1464. %dialogPostion = %dialog.getPosition();
  1465. %posX = (%resX / 2) - (%dialogWidth / 2);
  1466. %posY = (%resY / 2) - (%dialogHeight / 2);
  1467. %dialog.setPosition(%posX, %posY);
  1468. }