shapeEdAdvancedWindow.ed.gui 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow, EditorGuiGroup) {
  3. text = "Advanced Properties";
  4. resizeWidth = "0";
  5. resizeHeight = "0";
  6. canMove = "1";
  7. canClose = "1";
  8. canMinimize = "0";
  9. canMaximize = "0";
  10. closeCommand = "ShapeEditorToolbar-->showAdvanced.performClick();";
  11. EdgeSnap = "1";
  12. Margin = "4 4 4 4";
  13. Padding = "0 0 0 0";
  14. AnchorTop = "1";
  15. AnchorBottom = "0";
  16. AnchorLeft = "1";
  17. AnchorRight = "0";
  18. position = getWord($pref::Video::mode, 0) - 209 - 209 SPC getWord(EditorGuiToolbar.extent, 1) - 1;
  19. extent = "210 272";
  20. MinExtent = "210 253";
  21. HorizSizing = "windowRelative";
  22. VertSizing = "windowRelative";
  23. Profile = "ToolsGuiWindowProfile";
  24. Visible = "0";
  25. tooltipprofile = "ToolsGuiToolTipProfile";
  26. hovertime = "1000";
  27. isContainer = "1";
  28. canSave = "1";
  29. canSaveDynamicFields = "0";
  30. minSize = "50 50";
  31. new GuiTabBookCtrl() {
  32. TabPosition = "Top";
  33. TabMargin = "6";
  34. MinTabWidth = "32";
  35. docking = "client";
  36. Margin = "3 1 3 3";
  37. Padding = "0 0 0 0";
  38. AnchorTop = "1";
  39. AnchorBottom = "0";
  40. AnchorLeft = "1";
  41. AnchorRight = "0";
  42. position = "4 24";
  43. extent = "202 243";
  44. MinExtent = "8 -500";
  45. HorizSizing = "width";
  46. VertSizing = "height";
  47. Profile = "ToolsGuiTabBookProfile";
  48. Visible = "1";
  49. tooltipprofile = "ToolsGuiToolTipProfile";
  50. hovertime = "1000";
  51. isContainer = "1";
  52. internalName = "tabBook";
  53. canSave = "1";
  54. canSaveDynamicFields = "0";
  55. new GuiTabPageCtrl() {
  56. text = "Details";
  57. maxLength = "1024";
  58. Margin = "0 0 0 0";
  59. Padding = "0 0 0 0";
  60. AnchorTop = "1";
  61. AnchorBottom = "0";
  62. AnchorLeft = "1";
  63. AnchorRight = "0";
  64. Position = "0 19";
  65. extent = "202 224";
  66. MinExtent = "0 -500";
  67. HorizSizing = "width";
  68. VertSizing = "height";
  69. Profile = "ToolsGuiTabPageProfile";
  70. Visible = "0";
  71. tooltipprofile = "ToolsGuiToolTipProfile";
  72. hovertime = "1000";
  73. isContainer = "1";
  74. canSave = "1";
  75. canSaveDynamicFields = "0";
  76. new GuiContainer() {
  77. docking = "client";
  78. Margin = "0 0 0 0";
  79. Padding = "0 0 0 0";
  80. AnchorTop = "1";
  81. AnchorBottom = "0";
  82. AnchorLeft = "1";
  83. AnchorRight = "0";
  84. position = "0 0";
  85. extent = "202 224";
  86. MinExtent = "8 8";
  87. HorizSizing = "width";
  88. VertSizing = "bottom";
  89. Profile = "ToolsGuiDefaultProfile";
  90. Visible = "1";
  91. tooltipprofile = "ToolsGuiToolTipProfile";
  92. hovertime = "1000";
  93. isContainer = "1";
  94. canSave = "1";
  95. canSaveDynamicFields = "0";
  96. new GuiContainer() {
  97. position = "0 0";
  98. extent = "202 157";
  99. HorizSizing = "width";
  100. VertSizing = "height";
  101. Profile = "inspectorStyleRolloutDarkProfile";
  102. new GuiTextCtrl() {
  103. text = "Levels";
  104. position = "4 1";
  105. Extent = "192 16";
  106. MinExtent = "8 2";
  107. HorizSizing = "width";
  108. VertSizing = "bottom";
  109. Profile = "ToolsGuiTextProfile";
  110. };
  111. new GuiCheckBoxCtrl() {
  112. useInactiveState = "0";
  113. text = "Levels";
  114. groupNum = "-1";
  115. buttonType = "ToggleButton";
  116. useMouseEvents = "0";
  117. position = "5 22";
  118. Extent = "49 13";
  119. MinExtent = "8 2";
  120. HorizSizing = "right";
  121. VertSizing = "bottom";
  122. Profile = "ToolsGuiCheckBoxProfile";
  123. Visible = "1";
  124. Variable = "ShapeEdShapeView.fixedDetail";
  125. Command = "ShapeEdAdvancedWindow-->detailSlider.setActive($ThisControl.getValue()); ShapeEdAdvancedWindow-->levelsInactive.setVisible( !$ThisControl.getValue() );";
  126. tooltipprofile = "ToolsGuiToolTipProfile";
  127. ToolTip = "Allow the slider to select the current detail level";
  128. hovertime = "1000";
  129. isContainer = "0";
  130. canSave = "1";
  131. canSaveDynamicFields = "0";
  132. };
  133. new GuiSliderCtrl() {
  134. range = "0 0";
  135. ticks = "1";
  136. snap = "1";
  137. value = "0";
  138. position = "57 22";
  139. Extent = "118 14";
  140. MinExtent = "8 2";
  141. HorizSizing = "width";
  142. VertSizing = "bottom";
  143. Profile = "ToolsGuiSliderProfile";
  144. Visible = "1";
  145. Variable = "ShapeEdShapeView.currentDL";
  146. tooltipprofile = "ToolsGuiToolTipProfile";
  147. ToolTip = "Drag the slider to change the current detail level";
  148. hovertime = "1000";
  149. isContainer = "0";
  150. internalName = "detailSlider";
  151. canSave = "1";
  152. canSaveDynamicFields = "0";
  153. };
  154. new GuiBitmapCtrl(){
  155. bitmapAsset = "ToolsModule:inactive_overlay_image";
  156. position = "57 19";
  157. Extent = "122 20";
  158. tooltip = "Levels needs to be selected to enable the detail level slider";
  159. hovertime = "500";
  160. isContainer = true;
  161. internalName = "levelsInactive";
  162. color = "128 128 128 255";
  163. };
  164. new GuiTextCtrl() {
  165. text = "0";
  166. maxLength = "1024";
  167. Margin = "0 0 0 0";
  168. Padding = "0 0 0 0";
  169. AnchorTop = "1";
  170. AnchorBottom = "0";
  171. AnchorLeft = "1";
  172. AnchorRight = "0";
  173. position = "182 20";
  174. Extent = "15 16";
  175. MinExtent = "8 2";
  176. HorizSizing = "left";
  177. VertSizing = "bottom";
  178. Profile = "ToolsGuiTextProfile";
  179. Visible = "1";
  180. Variable = "ShapeEdShapeView.currentDL";
  181. tooltipprofile = "ToolsGuiToolTipProfile";
  182. ToolTip = "Index of the current detail level";
  183. hovertime = "1000";
  184. isContainer = "0";
  185. canSave = "1";
  186. canSaveDynamicFields = "0";
  187. };
  188. new GuiTextCtrl() {
  189. text = "Polys";
  190. position = "37 40";
  191. extent = "26 16";
  192. MinExtent = "8 2";
  193. HorizSizing = "right";
  194. VertSizing = "bottom";
  195. Profile = "ToolsGuiTextRightProfile";
  196. Visible = "1";
  197. tooltipprofile = "ToolsGuiToolTipProfile";
  198. hovertime = "1000";
  199. canSave = "1";
  200. canSaveDynamicFields = "0";
  201. };
  202. new GuiTextCtrl() {
  203. text = "0";
  204. position = "67 40";
  205. Extent = "40 16";
  206. MinExtent = "8 2";
  207. HorizSizing = "right";
  208. VertSizing = "bottom";
  209. Profile = "ToolsGuiTextProfile";
  210. Visible = "1";
  211. Variable = "ShapeEdShapeView.detailPolys";
  212. tooltipprofile = "ToolsGuiToolTipProfile";
  213. ToolTip = "Number of polygons in the current detail level";
  214. hovertime = "1000";
  215. canSave = "1";
  216. canSaveDynamicFields = "0";
  217. };
  218. new GuiTextCtrl() {
  219. text = "Size";
  220. position = "127 40";
  221. extent = "24 16";
  222. MinExtent = "8 2";
  223. HorizSizing = "right";
  224. VertSizing = "bottom";
  225. Profile = "ToolsGuiTextRightProfile";
  226. Visible = "1";
  227. tooltipprofile = "ToolsGuiToolTipProfile";
  228. hovertime = "1000";
  229. canSave = "1";
  230. canSaveDynamicFields = "0";
  231. };
  232. new GuiTextEditCtrl() {
  233. position = "160 39";
  234. extent = "35 18";
  235. MinExtent = "8 2";
  236. HorizSizing = "right";
  237. VertSizing = "bottom";
  238. Profile = "ToolsGuiTextEditProfile";
  239. Visible = "1";
  240. Variable = "ShapeEdShapeView.detailSize";
  241. AltCommand = "ShapeEdAdvancedWindow.onEditDetailSize();";
  242. tooltipprofile = "ToolsGuiToolTipProfile";
  243. ToolTip = "Edit this value to change the size of the current detail";
  244. hovertime = "1000";
  245. internalName = "detailSize";
  246. canSave = "1";
  247. canSaveDynamicFields = "0";
  248. };
  249. new GuiTextCtrl() {
  250. text = "Pixels";
  251. position = "35 60";
  252. extent = "28 16";
  253. MinExtent = "8 2";
  254. HorizSizing = "right";
  255. VertSizing = "bottom";
  256. Profile = "ToolsGuiTextRightProfile";
  257. Visible = "1";
  258. tooltipprofile = "ToolsGuiToolTipProfile";
  259. hovertime = "1000";
  260. canSave = "1";
  261. canSaveDynamicFields = "0";
  262. };
  263. new GuiTextCtrl() {
  264. text = "0";
  265. position = "67 60";
  266. Extent = "40 16";
  267. MinExtent = "8 2";
  268. HorizSizing = "right";
  269. VertSizing = "bottom";
  270. Profile = "ToolsGuiTextProfile";
  271. Visible = "1";
  272. Variable = "ShapeEdShapeView.pixelSize";
  273. tooltipprofile = "ToolsGuiToolTipProfile";
  274. ToolTip = "Current size (in pixels) of the shape";
  275. hovertime = "1000";
  276. canSave = "1";
  277. canSaveDynamicFields = "0";
  278. };
  279. new GuiTextCtrl() {
  280. text = "Distance";
  281. position = "109 60";
  282. Extent = "42 16";
  283. MinExtent = "8 2";
  284. HorizSizing = "right";
  285. VertSizing = "bottom";
  286. Profile = "ToolsGuiTextRightProfile";
  287. Visible = "1";
  288. tooltipprofile = "ToolsGuiToolTipProfile";
  289. hovertime = "1000";
  290. canSave = "1";
  291. canSaveDynamicFields = "0";
  292. };
  293. new GuiTextCtrl() {
  294. text = "";
  295. position = "160 60";
  296. extent = "38 16";
  297. MinExtent = "8 2";
  298. HorizSizing = "right";
  299. VertSizing = "bottom";
  300. Profile = "ToolsGuiTextProfile";
  301. Visible = "1";
  302. Variable = "ShapeEdShapeView.orbitDist";
  303. tooltipprofile = "ToolsGuiToolTipProfile";
  304. ToolTip = "Current distance from the shape to the camera";
  305. hovertime = "1000";
  306. canSave = "1";
  307. canSaveDynamicFields = "0";
  308. };
  309. new GuiTextCtrl() {
  310. text = "Materials";
  311. position = "20 80";
  312. extent = "43 16";
  313. MinExtent = "8 2";
  314. HorizSizing = "right";
  315. VertSizing = "bottom";
  316. Profile = "ToolsGuiTextRightProfile";
  317. Visible = "1";
  318. tooltipprofile = "ToolsGuiToolTipProfile";
  319. hovertime = "1000";
  320. canSave = "1";
  321. canSaveDynamicFields = "0";
  322. };
  323. new GuiTextCtrl() {
  324. text = "";
  325. position = "67 80";
  326. extent = "40 16";
  327. MinExtent = "8 2";
  328. HorizSizing = "right";
  329. VertSizing = "bottom";
  330. Profile = "ToolsGuiTextProfile";
  331. Visible = "1";
  332. Variable = "ShapeEdShapeView.numMaterials";
  333. tooltipprofile = "ToolsGuiToolTipProfile";
  334. ToolTip = "Number of materials used by all meshes at this detail level";
  335. hovertime = "1000";
  336. canSave = "1";
  337. canSaveDynamicFields = "0";
  338. };
  339. new GuiTextCtrl() {
  340. text = "Bones";
  341. position = "120 80";
  342. extent = "31 16";
  343. MinExtent = "8 2";
  344. HorizSizing = "right";
  345. VertSizing = "bottom";
  346. Profile = "ToolsGuiTextRightProfile";
  347. Visible = "1";
  348. tooltipprofile = "ToolsGuiToolTipProfile";
  349. hovertime = "1000";
  350. canSave = "1";
  351. canSaveDynamicFields = "0";
  352. };
  353. new GuiTextCtrl() {
  354. text = "5";
  355. position = "160 80";
  356. extent = "38 16";
  357. MinExtent = "8 2";
  358. HorizSizing = "right";
  359. VertSizing = "bottom";
  360. Profile = "ToolsGuiTextProfile";
  361. Visible = "1";
  362. Variable = "ShapeEdShapeView.numBones";
  363. tooltipprofile = "ToolsGuiToolTipProfile";
  364. ToolTip = "Number of bones at this detail level (skins only)";
  365. hovertime = "1000";
  366. canSave = "1";
  367. canSaveDynamicFields = "0";
  368. };
  369. new GuiTextCtrl() {
  370. text = "Primitives";
  371. position = "19 100";
  372. extent = "44 16";
  373. MinExtent = "8 2";
  374. HorizSizing = "right";
  375. VertSizing = "bottom";
  376. Profile = "ToolsGuiTextRightProfile";
  377. Visible = "1";
  378. tooltipprofile = "ToolsGuiToolTipProfile";
  379. hovertime = "1000";
  380. canSave = "1";
  381. canSaveDynamicFields = "0";
  382. };
  383. new GuiTextCtrl() {
  384. text = "";
  385. position = "67 100";
  386. extent = "40 16";
  387. MinExtent = "8 2";
  388. HorizSizing = "right";
  389. VertSizing = "bottom";
  390. Profile = "ToolsGuiTextProfile";
  391. Visible = "1";
  392. Variable = "ShapeEdShapeView.numDrawCalls";
  393. tooltipprofile = "ToolsGuiToolTipProfile";
  394. ToolTip = "Total number of mesh primitives (triangle lists) at this detail level";
  395. hovertime = "1000";
  396. canSave = "1";
  397. canSaveDynamicFields = "0";
  398. };
  399. new GuiTextCtrl() {
  400. text = "Weights";
  401. position = "109 100";
  402. Extent = "42 16";
  403. MinExtent = "8 2";
  404. HorizSizing = "right";
  405. VertSizing = "bottom";
  406. Profile = "ToolsGuiTextRightProfile";
  407. Visible = "1";
  408. tooltipprofile = "ToolsGuiToolTipProfile";
  409. hovertime = "1000";
  410. canSave = "1";
  411. canSaveDynamicFields = "0";
  412. };
  413. new GuiTextCtrl() {
  414. text = "5";
  415. position = "160 100";
  416. extent = "38 16";
  417. MinExtent = "8 2";
  418. HorizSizing = "right";
  419. VertSizing = "bottom";
  420. Profile = "ToolsGuiTextProfile";
  421. Visible = "1";
  422. Variable = "ShapeEdShapeView.numWeights";
  423. tooltipprofile = "ToolsGuiToolTipProfile";
  424. ToolTip = "Number of vertex weights at this detail level (skins only)";
  425. hovertime = "1000";
  426. canSave = "1";
  427. canSaveDynamicFields = "0";
  428. };
  429. new GuiTextCtrl() {
  430. Profile = "ToolsGuiTextProfile";
  431. text = "Col Meshes";
  432. position = "7 120";
  433. extent = "56 16";
  434. horizSizing = "right";
  435. vertSizing = "bottom";
  436. };
  437. new GuiTextCtrl() {
  438. text = "";
  439. position = "67 120";
  440. extent = "40 16";
  441. horizSizing = "right";
  442. vertSizing = "bottom";
  443. Variable = "ShapeEdShapeView.colMeshes";
  444. };
  445. new GuiTextCtrl() {
  446. Profile = "ToolsGuiTextProfile";
  447. text = "Col Polys";
  448. position = "108 120";
  449. extent = "43 16";
  450. horizSizing = "right";
  451. vertSizing = "bottom";
  452. };
  453. new GuiTextCtrl() {
  454. text = "";
  455. position = "160 120";
  456. extent = "38 16";
  457. horizSizing = "right";
  458. vertSizing = "bottom";
  459. Variable = "ShapeEdShapeView.colPolys";
  460. };
  461. };
  462. new GuiContainer() {
  463. position = "0 138";
  464. Extent = "202 87";
  465. MinExtent = "8 8";
  466. HorizSizing = "width";
  467. VertSizing = "bottom";
  468. Profile = "inspectorStyleRolloutDarkProfile";
  469. isContainer = "1";
  470. new GuiTextCtrl() { // Header
  471. text = "Imposters";
  472. position = "4 1";
  473. Extent = "192 16";
  474. MinExtent = "8 2";
  475. HorizSizing = "right";
  476. VertSizing = "bottom";
  477. Profile = "ToolsGuiTextProfile";
  478. };
  479. new GuiCheckBoxCtrl() {
  480. useInactiveState = "0";
  481. text = "Use Imposters";
  482. groupNum = "-1";
  483. buttonType = "ToggleButton";
  484. useMouseEvents = "0";
  485. position = "113 2";
  486. Extent = "83 13";
  487. MinExtent = "8 2";
  488. HorizSizing = "left";
  489. VertSizing = "bottom";
  490. Profile = "ToolsGuiCheckBoxProfile";
  491. Visible = "1";
  492. Command = "ShapeEdDetails.onToggleImposter( $ThisControl.getValue() );";
  493. tooltipprofile = "ToolsGuiToolTipProfile";
  494. ToolTip = "Controls whether this shape uses an imposter detail level";
  495. hovertime = "1000";
  496. isContainer = "0";
  497. internalName = "bbUseImposters";
  498. canSave = "1";
  499. canSaveDynamicFields = "0";
  500. };
  501. new GuiTextCtrl() {
  502. text = "Detail Level";
  503. maxLength = "1024";
  504. Margin = "0 0 0 0";
  505. Padding = "0 0 0 0";
  506. AnchorTop = "1";
  507. AnchorBottom = "0";
  508. AnchorLeft = "1";
  509. AnchorRight = "0";
  510. position = "6 23";
  511. Extent = "57 16";
  512. MinExtent = "8 2";
  513. HorizSizing = "right";
  514. VertSizing = "bottom";
  515. Profile = "ToolsGuiTextRightProfile";
  516. Visible = "1";
  517. tooltipprofile = "ToolsGuiToolTipProfile";
  518. hovertime = "1000";
  519. isContainer = "0";
  520. canSave = "1";
  521. canSaveDynamicFields = "0";
  522. };
  523. new GuiTextEditCtrl() {
  524. position = "68 22";
  525. Extent = "36 18";
  526. MinExtent = "8 2";
  527. HorizSizing = "right";
  528. VertSizing = "bottom";
  529. Profile = "ToolsGuiTextEditProfile";
  530. Visible = "1";
  531. AltCommand = "ShapeEdDetails.onEditImposter();";
  532. tooltipprofile = "ToolsGuiToolTipProfile";
  533. ToolTip = "Specifies the detail level used to generate the imposters";
  534. hovertime = "1000";
  535. internalName = "bbDetailLevel";
  536. canSave = "1";
  537. canSaveDynamicFields = "0";
  538. };
  539. new GuiTextCtrl() {
  540. text = "Dimension";
  541. position = "6 43";
  542. Extent = "57 16";
  543. MinExtent = "8 2";
  544. HorizSizing = "right";
  545. VertSizing = "bottom";
  546. Profile = "ToolsGuiTextRightProfile";
  547. Visible = "1";
  548. tooltipprofile = "ToolsGuiToolTipProfile";
  549. hovertime = "1000";
  550. canSave = "1";
  551. canSaveDynamicFields = "0";
  552. };
  553. new GuiTextEditCtrl() {
  554. position = "68 43";
  555. Extent = "36 18";
  556. MinExtent = "8 2";
  557. HorizSizing = "right";
  558. VertSizing = "bottom";
  559. Profile = "ToolsGuiTextEditProfile";
  560. Visible = "1";
  561. AltCommand = "ShapeEdDetails.onEditImposter();";
  562. tooltipprofile = "ToolsGuiToolTipProfile";
  563. ToolTip = "Specifies the dimension (width/height) of the imposters in pixels";
  564. hovertime = "1000";
  565. internalName = "bbDimension";
  566. canSave = "1";
  567. canSaveDynamicFields = "0";
  568. };
  569. new GuiTextCtrl() {
  570. text = "X Steps";
  571. position = "6 65";
  572. Extent = "57 16";
  573. MinExtent = "8 2";
  574. HorizSizing = "right";
  575. VertSizing = "bottom";
  576. Profile = "ToolsGuiTextRightProfile";
  577. Visible = "1";
  578. tooltipprofile = "ToolsGuiToolTipProfile";
  579. hovertime = "1000";
  580. canSave = "1";
  581. canSaveDynamicFields = "0";
  582. };
  583. new GuiTextEditCtrl() {
  584. position = "68 64";
  585. Extent = "36 18";
  586. MinExtent = "8 2";
  587. HorizSizing = "right";
  588. VertSizing = "bottom";
  589. Profile = "ToolsGuiTextEditProfile";
  590. Visible = "1";
  591. AltCommand = "ShapeEdDetails.onEditImposter();";
  592. tooltipprofile = "ToolsGuiToolTipProfile";
  593. ToolTip = "Number of steps in the horizontal axis";
  594. hovertime = "1000";
  595. internalName = "bbEquatorSteps";
  596. canSave = "1";
  597. canSaveDynamicFields = "0";
  598. };
  599. new GuiCheckBoxCtrl() {
  600. useInactiveState = "0";
  601. text = "Include Poles";
  602. groupNum = "-1";
  603. buttonType = "ToggleButton";
  604. position = "113 24";
  605. Extent = "83 18";
  606. MinExtent = "8 2";
  607. HorizSizing = "right";
  608. VertSizing = "bottom";
  609. Profile = "ToolsGuiCheckBoxProfile";
  610. Visible = "1";
  611. Command = "ShapeEdDetails.onEditImposter();";
  612. tooltipprofile = "ToolsGuiToolTipProfile";
  613. ToolTip = "Specifies whether to include the poles (top and bottom) of the shape";
  614. hovertime = "1000";
  615. internalName = "bbIncludePoles";
  616. canSave = "1";
  617. canSaveDynamicFields = "0";
  618. };
  619. new GuiTextCtrl() {
  620. text = "Y Steps";
  621. maxLength = "1024";
  622. Margin = "0 0 0 0";
  623. Padding = "0 0 0 0";
  624. AnchorTop = "1";
  625. AnchorBottom = "0";
  626. AnchorLeft = "1";
  627. AnchorRight = "0";
  628. position = "116 44";
  629. Extent = "41 16";
  630. MinExtent = "8 2";
  631. HorizSizing = "right";
  632. VertSizing = "bottom";
  633. Profile = "ToolsGuiTextRightProfile";
  634. Visible = "1";
  635. tooltipprofile = "ToolsGuiToolTipProfile";
  636. Tooltip = "Number of steps in the vertical axis";
  637. hovertime = "1000";
  638. isContainer = "0";
  639. canSave = "1";
  640. canSaveDynamicFields = "0";
  641. };
  642. new GuiTextEditCtrl() {
  643. position = "161 43";
  644. Extent = "36 18";
  645. MinExtent = "8 2";
  646. HorizSizing = "right";
  647. VertSizing = "bottom";
  648. Profile = "ToolsGuiTextEditProfile";
  649. Visible = "1";
  650. AltCommand = "ShapeEdDetails.onEditImposter();";
  651. tooltipprofile = "ToolsGuiToolTipProfile";
  652. hovertime = "1000";
  653. internalName = "bbPolarSteps";
  654. canSave = "1";
  655. canSaveDynamicFields = "0";
  656. };
  657. new GuiTextCtrl() {
  658. text = "Y Angle";
  659. position = "116 65";
  660. Extent = "41 16";
  661. MinExtent = "8 2";
  662. HorizSizing = "right";
  663. VertSizing = "bottom";
  664. Profile = "ToolsGuiTextRightProfile";
  665. Visible = "1";
  666. tooltipprofile = "ToolsGuiToolTipProfile";
  667. tooltip = "Polar Angle - Y axis";
  668. hovertime = "1000";
  669. canSave = "1";
  670. canSaveDynamicFields = "0";
  671. };
  672. new GuiTextEditCtrl() {
  673. position = "161 64";
  674. Extent = "36 18";
  675. MinExtent = "8 2";
  676. HorizSizing = "right";
  677. VertSizing = "bottom";
  678. Profile = "ToolsGuiTextEditProfile";
  679. Visible = "1";
  680. AltCommand = "ShapeEdDetails.onEditImposter();";
  681. tooltipprofile = "ToolsGuiToolTipProfile";
  682. hovertime = "1000";
  683. internalName = "bbPolarAngle";
  684. canSave = "1";
  685. canSaveDynamicFields = "0";
  686. };
  687. new GuiBitmapCtrl(){
  688. bitmapAsset = "ToolsModule:inactive_overlay_image";
  689. color = "128 128 128 255";
  690. position = "4 18";
  691. Extent = "193 64";
  692. tooltip = "Imposters must be enabled, and an imposter detail level selected to edit these properties";
  693. hovertime = "500";
  694. isContainer = "1";
  695. internalName = "imposterInactive";
  696. };
  697. };
  698. };
  699. };
  700. new GuiTabPageCtrl() {
  701. text = "Mounting";
  702. maxLength = "1024";
  703. Margin = "0 0 0 0";
  704. Padding = "0 0 0 0";
  705. AnchorTop = "1";
  706. AnchorBottom = "0";
  707. AnchorLeft = "1";
  708. AnchorRight = "0";
  709. Position = "0 19";
  710. extent = "202 224";
  711. MinExtent = "0 -500";
  712. HorizSizing = "width";
  713. VertSizing = "height";
  714. Profile = "ToolsGuiTabPageProfile";
  715. Visible = "0";
  716. tooltipprofile = "ToolsGuiToolTipProfile";
  717. hovertime = "1000";
  718. canSave = "1";
  719. canSaveDynamicFields = "0";
  720. isContainer = "1";
  721. new GuiControl(){
  722. docking = "client";
  723. Margin = "0 0 0 0";
  724. Profile = "ToolsGuiScrollProfile";
  725. position = "0 0";
  726. extent = "202 224";
  727. };
  728. new GuiContainer(ShapeEdMountWindow) {
  729. docking = "none";
  730. Margin = "0 0 0 0";
  731. Padding = "0 0 0 0";
  732. AnchorTop = "1";
  733. AnchorBottom = "0";
  734. AnchorLeft = "1";
  735. AnchorRight = "0";
  736. isContainer = "1";
  737. position = "0 0";
  738. extent = "202 224";
  739. MinExtent = "8 8";
  740. HorizSizing = "width";
  741. vertSizing = "height";
  742. Profile = "ToolsGuiDefaultProfile";
  743. Visible = "1";
  744. tooltipprofile = "ToolsGuiToolTipProfile";
  745. hovertime = "1000";
  746. canSave = "1";
  747. canSaveDynamicFields = "0";
  748. new GuiCheckBoxCtrl() {
  749. useInactiveState = "0";
  750. text = " Render mounted shapes";
  751. groupNum = "-1";
  752. buttonType = "ToggleButton";
  753. useMouseEvents = "0";
  754. position = "2 2";
  755. extent = "139 13";
  756. MinExtent = "8 2";
  757. HorizSizing = "right";
  758. VertSizing = "bottom";
  759. Profile = "ToolsGuiCheckBoxProfile";
  760. Visible = "1";
  761. Variable = "ShapeEdShapeView.renderMounts";
  762. tooltipprofile = "ToolsGuiToolTipProfile";
  763. ToolTip = "Controls whether mounted shapes will be rendered in the 3D view";
  764. hovertime = "1000";
  765. isContainer = "0";
  766. internalName = "renderMounts";
  767. canSave = "1";
  768. canSaveDynamicFields = "0";
  769. };
  770. new GuiScrollCtrl() {
  771. willFirstRespond = "1";
  772. hScrollBar = "alwaysOff";
  773. vScrollBar = "dynamic";
  774. lockHorizScroll = "true";
  775. lockVertScroll = "false";
  776. constantThumbHeight = "0";
  777. childMargin = "0 0";
  778. mouseWheelScrollSpeed = "-1";
  779. Margin = "0 0 0 0";
  780. Padding = "0 0 0 0";
  781. AnchorTop = "0";
  782. AnchorBottom = "0";
  783. AnchorLeft = "1";
  784. AnchorRight = "0";
  785. position = "0 17";
  786. extent = "202 124";
  787. MinExtent = "8 8";
  788. HorizSizing = "width";
  789. VertSizing = "height";
  790. Profile = "GuiShapeEdScrollProfile";
  791. Visible = "1";
  792. tooltipprofile = "ToolsGuiToolTipProfile";
  793. hovertime = "1000";
  794. canSaveDynamicFields = "0";
  795. canSave = "1";
  796. isContainer = "1";
  797. new GuiContainer() {
  798. position = "0 0";
  799. extent = "200 121";
  800. HorizSizing = "width";
  801. VertSizing = "height";
  802. Profile = "inspectorStyleRolloutListProfile";
  803. };
  804. new GuiTextListCtrl() {
  805. columns = "-1 0 110 152";
  806. fitParentWidth = "1";
  807. clipColumnText = "1";
  808. Position = "1 1";
  809. Extent = "200 11";
  810. MinExtent = "8 11";
  811. HorizSizing = "right";
  812. VertSizing = "bottom";
  813. Profile = "GuiShapeEdTextListProfile";
  814. Visible = "1";
  815. Command = "ShapeEdMountWindow.update_onMountSelectionChanged();";
  816. tooltipprofile = "ToolsGuiToolTipProfile";
  817. hovertime = "1000";
  818. internalName = "mountList";
  819. canSave = "1";
  820. canSaveDynamicFields = "0";
  821. };
  822. };
  823. new GuiContainer() {
  824. position = "0 140";
  825. extent = "202 85";
  826. HorizSizing = "width";
  827. VertSizing = "top";
  828. Profile = "inspectorStyleRolloutDarkProfile";
  829. new GuiTextCtrl() {
  830. text = "Mount Item";
  831. position = "5 1";
  832. extent = "134 16";
  833. minExtent = "8 2";
  834. horizSizing = "right";
  835. vertSizing = "bottom";
  836. profile = "ToolsGuiTextProfile";
  837. };
  838. new GuiBitmapButtonCtrl() {
  839. bitmapAsset = "ToolsModule:delete_n_image";
  840. groupNum = "-1";
  841. buttonType = "PushButton";
  842. useMouseEvents = "0";
  843. position = "182 1";
  844. Extent = "16 16";
  845. MinExtent = "8 2";
  846. HorizSizing = "left";
  847. VertSizing = "bottom";
  848. Profile = "ToolsGuiDefaultProfile";
  849. Visible = "1";
  850. Command = "ShapeEdMountWindow.unmountShape();";
  851. tooltipprofile = "ToolsGuiToolTipProfile";
  852. ToolTip = "Delete the selected mount item";
  853. canSaveDynamicFields = "0";
  854. canSave = "1";
  855. isContainer = "0";
  856. };
  857. new GuiBitmapButtonCtrl() {
  858. bitmapAsset = "ToolsModule:new_n_image";
  859. groupNum = "-1";
  860. buttonType = "PushButton";
  861. useMouseEvents = "0";
  862. position = "168 1";
  863. Extent = "16 16";
  864. MinExtent = "8 2";
  865. HorizSizing = "left";
  866. VertSizing = "bottom";
  867. Profile = "ToolsGuiDefaultProfile";
  868. Visible = "1";
  869. Command = "ShapeEdMountWindow.mountShape(-1);";
  870. tooltipprofile = "ToolsGuiToolTipProfile";
  871. ToolTip = "Mounts a new shape to the current model";
  872. isContainer = "0";
  873. canSave = "1";
  874. canSaveDynamicFields = "0";
  875. };
  876. /*new GuiButtonCtrl() {
  877. text = "Unmount All";
  878. groupNum = "-1";
  879. buttonType = "PushButton";
  880. useMouseEvents = "0";
  881. position = "109 97";
  882. extent = "78 18";
  883. MinExtent = "8 2";
  884. HorizSizing = "right";
  885. vertSizing = "top";
  886. Profile = "ToolsGuiButtonProfile";
  887. Visible = "1";
  888. Command = "ShapeEdMountWindow.unmountAll();";
  889. tooltipprofile = "ToolsGuiToolTipProfile";
  890. ToolTip = "Unmount all shapes";
  891. hovertime = "1000";
  892. isContainer = "0";
  893. canSave = "1";
  894. canSaveDynamicFields = "0";
  895. };*/
  896. new GuiTextCtrl() {
  897. text = "Shape";
  898. position = "5 21";
  899. extent = "33 16";
  900. minExtent = "8 2";
  901. horizSizing = "right";
  902. vertSizing = "bottom";
  903. profile = "ToolsGuiTextRightProfile";
  904. };
  905. new GuiPopUpMenuCtrl(ShapeEdMountShapeMenu) {
  906. position = "42 20";
  907. extent = "156 18";
  908. HorizSizing = "width";
  909. vertSizing = "bottom";
  910. Profile = "ToolsGuiPopUpMenuProfile";
  911. ToolTip = "Select the model to mount";
  912. };
  913. new GuiTextCtrl() {
  914. text = "Node";
  915. position = "5 42";
  916. extent = "33 16";
  917. minExtent = "8 2";
  918. horizSizing = "right";
  919. vertSizing = "bottom";
  920. profile = "ToolsGuiTextRightProfile";
  921. };
  922. new GuiPopUpMenuCtrl() {
  923. position = "42 41";
  924. extent = "62 18";
  925. minExtent = "8 2";
  926. horizSizing = "width";
  927. vertSizing = "bottom";
  928. Profile = "ToolsGuiPopUpMenuProfile";
  929. Command = "ShapeEdMountWindow.updateSelectedMount();";
  930. ToolTip = "Select the node on which to mount the model";
  931. internalName = "mountNode";
  932. };
  933. new GuiTextCtrl() {
  934. text = "Type";
  935. position = "110 42";
  936. extent = "24 16";
  937. minExtent = "8 2";
  938. horizSizing = "left";
  939. vertSizing = "bottom";
  940. profile = "ToolsGuiTextProfile";
  941. };
  942. new GuiPopUpMenuCtrl() {
  943. position = "138 41";
  944. extent = "60 18";
  945. horizSizing = "left";
  946. vertSizing = "bottom";
  947. Profile = "ToolsGuiPopUpMenuProfile";
  948. Command = "ShapeEdMountWindow.updateSelectedMount();";
  949. ToolTip = "Select the type of mounting to use";
  950. internalName = "mountType";
  951. };
  952. new GuiPopUpMenuCtrl() {
  953. position = "5 62";
  954. extent = "99 18";
  955. HorizSizing = "width";
  956. vertSizing = "bottom";
  957. Profile = "ToolsGuiPopUpMenuProfile";
  958. Command = "ShapeEdMountWindow.setMountThreadSequence();";
  959. ToolTip = "Select the sequence to play on the mounted model";
  960. internalName = "mountSeq";
  961. };
  962. new GuiSliderCtrl(ShapeEdMountSeqSlider) {
  963. range = "0 1";
  964. ticks = "0";
  965. snap = "0";
  966. value = "0";
  967. position = "109 64";
  968. extent = "68 14";
  969. MinExtent = "8 2";
  970. HorizSizing = "width";
  971. VertSizing = "top";
  972. Profile = "ToolsGuiSliderProfile";
  973. Visible = "1";
  974. tooltipprofile = "ToolsGuiToolTipProfile";
  975. ToolTip = "Drag the slider to scrub through the sequence keyframes";
  976. hovertime = "1000";
  977. isContainer = "0";
  978. canSave = "1";
  979. canSaveDynamicFields = "0";
  980. };
  981. new GuiBitmapButtonCtrl() {
  982. bitmapAsset = "ToolsModule:playfwd_btn_n_image";
  983. groupNum = "0";
  984. buttonType = "ToggleButton";
  985. useMouseEvents = "0";
  986. position = "180 62";
  987. Extent = "18 18";
  988. MinExtent = "8 2";
  989. HorizSizing = "left";
  990. vertSizing = "top";
  991. Profile = "ToolsGuiButtonProfile";
  992. Visible = "1";
  993. Command = "ShapeEdMountWindow.toggleMountThreadPlayback();";
  994. tooltipprofile = "ToolsGuiToolTipProfile";
  995. ToolTip = "Play forwards";
  996. hovertime = "1000";
  997. isContainer = "0";
  998. internalName = "mountPlayBtn";
  999. canSave = "1";
  1000. canSaveDynamicFields = "0";
  1001. };
  1002. };
  1003. };
  1004. };
  1005. new GuiTabPageCtrl() {
  1006. text = "Threads";
  1007. maxLength = "1024";
  1008. Margin = "0 0 0 0";
  1009. Padding = "0 0 0 0";
  1010. AnchorTop = "1";
  1011. AnchorBottom = "0";
  1012. AnchorLeft = "1";
  1013. AnchorRight = "0";
  1014. Position = "0 19";
  1015. extent = "202 224";
  1016. MinExtent = "0 -500";
  1017. HorizSizing = "width";
  1018. VertSizing = "height";
  1019. Profile = "ToolsGuiTabPageProfile";
  1020. Visible = "0";
  1021. tooltipprofile = "ToolsGuiToolTipProfile";
  1022. hovertime = "1000";
  1023. isContainer = "1";
  1024. canSave = "1";
  1025. canSaveDynamicFields = "0";
  1026. new GuiContainer(ShapeEdThreadWindow) {
  1027. docking = "client";
  1028. Margin = "0 0 0 0";
  1029. Padding = "0 0 0 0";
  1030. AnchorTop = "1";
  1031. AnchorBottom = "0";
  1032. AnchorLeft = "1";
  1033. AnchorRight = "0";
  1034. position = "0 0";
  1035. extent = "202 224";
  1036. MinExtent = "8 8";
  1037. HorizSizing = "width";
  1038. VertSizing = "bottom";
  1039. Profile = "ToolsGuiDefaultProfile";
  1040. Visible = "1";
  1041. tooltipprofile = "ToolsGuiToolTipProfile";
  1042. hovertime = "1000";
  1043. isContainer = "1";
  1044. canSave = "1";
  1045. canSaveDynamicFields = "0";
  1046. new GuiContainer() {
  1047. position = "0 0";
  1048. extent = "203 141";
  1049. HorizSizing = "width";
  1050. VertSizing = "height";
  1051. Profile = "inspectorStyleRolloutDarkProfile";
  1052. new GuiTextCtrl() {
  1053. text = "Thread";
  1054. position = "4 1";
  1055. extent = "41 16";
  1056. minExtent = "8 2";
  1057. horizSizing = "right";
  1058. vertSizing = "bottom";
  1059. profile = "ToolsGuiTextProfile";
  1060. };
  1061. new GuiScrollCtrl() {
  1062. willFirstRespond = "1";
  1063. hScrollBar = "alwaysOff";
  1064. vScrollBar = "dynamic";
  1065. lockHorizScroll = "true";
  1066. lockVertScroll = "false";
  1067. constantThumbHeight = "0";
  1068. childMargin = "0 0";
  1069. mouseWheelScrollSpeed = "-1";
  1070. Margin = "0 0 0 0";
  1071. Padding = "0 0 0 0";
  1072. AnchorTop = "0";
  1073. AnchorBottom = "0";
  1074. AnchorLeft = "1";
  1075. AnchorRight = "0";
  1076. position = "0 17";
  1077. extent = "47 124";
  1078. MinExtent = "8 8";
  1079. HorizSizing = "right";
  1080. VertSizing = "height";
  1081. Profile = "GuiShapeEdScrollProfile";
  1082. Visible = "1";
  1083. tooltipprofile = "ToolsGuiToolTipProfile";
  1084. hovertime = "1000";
  1085. isContainer = "1";
  1086. canSave = "1";
  1087. canSaveDynamicFields = "0";
  1088. new GuiTextListCtrl(ShapeEdThreadList) {
  1089. fitParentWidth = "1";
  1090. clipColumnText = "1";
  1091. position = "1 1";
  1092. extent = "45 11";
  1093. MinExtent = "8 11";
  1094. HorizSizing = "right";
  1095. VertSizing = "bottom";
  1096. Profile = "GuiShapeEdTextListProfile";
  1097. Visible = "1";
  1098. tooltipprofile = "ToolsGuiToolTipProfile";
  1099. hovertime = "1000";
  1100. canSave = "1";
  1101. canSaveDynamicFields = "0";
  1102. };
  1103. };
  1104. new GuiTextCtrl() {
  1105. text = "Sequence";
  1106. position = "52 1";
  1107. extent = "53 16";
  1108. minExtent = "8 2";
  1109. horizSizing = "right";
  1110. vertSizing = "bottom";
  1111. profile = "ToolsGuiTextProfile";
  1112. };
  1113. new GuiScrollCtrl() {
  1114. willFirstRespond = "1";
  1115. hScrollBar = "dynamic";
  1116. vScrollBar = "dynamic";
  1117. lockHorizScroll = "true";
  1118. lockVertScroll = "false";
  1119. constantThumbHeight = "0";
  1120. childMargin = "0 0";
  1121. mouseWheelScrollSpeed = "-1";
  1122. Margin = "0 0 0 0";
  1123. Padding = "0 0 0 0";
  1124. AnchorTop = "0";
  1125. AnchorBottom = "0";
  1126. AnchorLeft = "1";
  1127. AnchorRight = "0";
  1128. position = "46 17";
  1129. extent = "157 124";
  1130. MinExtent = "8 8";
  1131. HorizSizing = "width";
  1132. VertSizing = "height";
  1133. Profile = "GuiShapeEdScrollProfile";
  1134. Visible = "1";
  1135. tooltipprofile = "ToolsGuiToolTipProfile";
  1136. hovertime = "1000";
  1137. isContainer = "1";
  1138. canSave = "1";
  1139. canSaveDynamicFields = "0";
  1140. new GuiTextListCtrl() {
  1141. fitParentWidth = "1";
  1142. clipColumnText = "1";
  1143. Position = "1 1";
  1144. extent = "155 11";
  1145. MinExtent = "8 11";
  1146. HorizSizing = "right";
  1147. VertSizing = "bottom";
  1148. Profile = "GuiShapeEdTextListProfile";
  1149. Visible = "1";
  1150. Command = "ShapeEdSequenceList.setSelectedById( $ThisControl.getSelectedId() );";
  1151. tooltipprofile = "ToolsGuiToolTipProfile";
  1152. hovertime = "1000";
  1153. internalName = "seqList";
  1154. canSave = "1";
  1155. canSaveDynamicFields = "0";
  1156. };
  1157. };
  1158. new GuiBitmapButtonCtrl() {
  1159. bitmapAsset = "ToolsModule:delete_n_image";
  1160. groupNum = "-1";
  1161. buttonType = "PushButton";
  1162. useMouseEvents = "0";
  1163. position = "184 1";
  1164. Extent = "16 16";
  1165. MinExtent = "8 2";
  1166. HorizSizing = "left";
  1167. VertSizing = "bottom";
  1168. Profile = "ToolsGuiDefaultProfile";
  1169. Visible = "1";
  1170. Command = "ShapeEdThreadWindow.onRemoveThread();";
  1171. tooltipprofile = "ToolsGuiToolTipProfile";
  1172. ToolTip = "Delete the selected thread";
  1173. isContainer = "0";
  1174. canSave = "1";
  1175. canSaveDynamicFields = "0";
  1176. };
  1177. new GuiBitmapButtonCtrl() {
  1178. bitmapAsset = "ToolsModule:new_n_image";
  1179. groupNum = "-1";
  1180. buttonType = "PushButton";
  1181. useMouseEvents = "0";
  1182. position = "171 1";
  1183. Extent = "16 16";
  1184. MinExtent = "8 2";
  1185. HorizSizing = "left";
  1186. VertSizing = "bottom";
  1187. Profile = "ToolsGuiDefaultProfile";
  1188. Visible = "1";
  1189. Command = "ShapeEdThreadWindow.onAddThread();";
  1190. tooltipprofile = "ToolsGuiToolTipProfile";
  1191. ToolTip = "Add a new thread";
  1192. isContainer = "0";
  1193. canSave = "1";
  1194. canSaveDynamicFields = "0";
  1195. };
  1196. };
  1197. new GuiSliderCtrl(ShapeEdThreadSlider) {
  1198. range = "0 0";
  1199. ticks = "0";
  1200. snap = "0";
  1201. value = "0";
  1202. position = "29 146";
  1203. extent = "133 14";
  1204. MinExtent = "8 2";
  1205. HorizSizing = "width";
  1206. VertSizing = "top";
  1207. Profile = "ToolsGuiSliderProfile";
  1208. Visible = "1";
  1209. tooltipprofile = "ToolsGuiToolTipProfile";
  1210. ToolTip = "Drag the slider to scrub through the sequence keyframes";
  1211. hovertime = "1000";
  1212. isContainer = "0";
  1213. canSave = "1";
  1214. canSaveDynamicFields = "0";
  1215. };
  1216. new GuiBitmapButtonCtrl() {
  1217. bitmapAsset = "ToolsModule:playbkwd_btn_n_image";
  1218. groupNum = "0";
  1219. buttonType = "RadioButton";
  1220. useMouseEvents = "0";
  1221. position = "6 144";
  1222. extent = "18 18";
  1223. MinExtent = "8 2";
  1224. HorizSizing = "right";
  1225. vertSizing = "top";
  1226. Profile = "ToolsGuiButtonProfile";
  1227. Visible = "1";
  1228. Command = "ShapeEdAnimWindow-->playBkwdBtn.performClick();";
  1229. tooltipprofile = "ToolsGuiToolTipProfile";
  1230. ToolTip = "Play backwards";
  1231. hovertime = "1000";
  1232. isContainer = "0";
  1233. internalName = "playBkwdBtn";
  1234. canSave = "1";
  1235. canSaveDynamicFields = "0";
  1236. };
  1237. new GuiBitmapButtonCtrl() {
  1238. bitmapAsset = "ToolsModule:pause_btn_n_image";
  1239. groupNum = "0";
  1240. buttonType = "RadioButton";
  1241. useMouseEvents = "0";
  1242. position = "166 144";
  1243. Extent = "18 18";
  1244. MinExtent = "8 2";
  1245. HorizSizing = "left";
  1246. vertSizing = "top";
  1247. Profile = "ToolsGuiButtonProfile";
  1248. Visible = "1";
  1249. Command = "ShapeEdAnimWindow-->pauseBtn.performClick();";
  1250. tooltipprofile = "ToolsGuiToolTipProfile";
  1251. ToolTip = "Toggle Pause (SPACE)";
  1252. hovertime = "1000";
  1253. isContainer = "0";
  1254. internalName = "pauseBtn";
  1255. canSave = "1";
  1256. canSaveDynamicFields = "0";
  1257. };
  1258. new GuiBitmapButtonCtrl() {
  1259. bitmapAsset = "ToolsModule:playfwd_btn_n_image";
  1260. groupNum = "0";
  1261. buttonType = "RadioButton";
  1262. useMouseEvents = "0";
  1263. position = "184 144";
  1264. Extent = "18 18";
  1265. MinExtent = "8 2";
  1266. HorizSizing = "left";
  1267. vertSizing = "top";
  1268. Profile = "ToolsGuiButtonProfile";
  1269. Visible = "1";
  1270. Command = "ShapeEdAnimWindow-->playFwdBtn.performClick();";
  1271. tooltipprofile = "ToolsGuiToolTipProfile";
  1272. ToolTip = "Play forwards";
  1273. hovertime = "1000";
  1274. isContainer = "0";
  1275. internalName = "playFwdBtn";
  1276. canSave = "1";
  1277. canSaveDynamicFields = "0";
  1278. };
  1279. new GuiCheckBoxCtrl() {
  1280. useInactiveState = "0";
  1281. text = " Transition lasts";
  1282. groupNum = "-1";
  1283. buttonType = "ToggleButton";
  1284. useMouseEvents = "0";
  1285. position = "3 167";
  1286. extent = "88 13";
  1287. MinExtent = "8 2";
  1288. HorizSizing = "right";
  1289. VertSizing = "top";
  1290. Profile = "ToolsGuiCheckBoxProfile";
  1291. Visible = "1";
  1292. tooltipprofile = "ToolsGuiToolTipProfile";
  1293. ToolTip = "Controls whether the thread will smoothly transition when a new sequence is selected";
  1294. hovertime = "1000";
  1295. isContainer = "0";
  1296. internalName = "useTransitions";
  1297. canSave = "1";
  1298. canSaveDynamicFields = "0";
  1299. };
  1300. new GuiTextEditCtrl() {
  1301. position = "98 164";
  1302. extent = "49 18";
  1303. MinExtent = "8 2";
  1304. HorizSizing = "width";
  1305. VertSizing = "top";
  1306. Profile = "ToolsGuiTextEditProfile";
  1307. Visible = "1";
  1308. tooltipprofile = "ToolsGuiToolTipProfile";
  1309. ToolTip = "Number of seconds over which to transition to the new sequence";
  1310. hovertime = "1000";
  1311. internalName = "transitionTime";
  1312. canSave = "1";
  1313. canSaveDynamicFields = "0";
  1314. };
  1315. new GuiTextCtrl() {
  1316. text = "seconds";
  1317. position = "153 165";
  1318. extent = "44 16";
  1319. minExtent = "8 2";
  1320. horizSizing = "left";
  1321. vertSizing = "top";
  1322. profile = "ToolsGuiTextProfile";
  1323. };
  1324. new GuiTextCtrl() {
  1325. text = "Transition to";
  1326. position = "4 186";
  1327. extent = "62 16";
  1328. minExtent = "8 2";
  1329. horizSizing = "right";
  1330. vertSizing = "top";
  1331. profile = "ToolsGuiTextProfile";
  1332. };
  1333. new GuiPopUpMenuCtrl() {
  1334. position = "68 185";
  1335. extent = "133 18";
  1336. HorizSizing = "width";
  1337. vertSizing = "top";
  1338. Profile = "ToolsGuiPopUpMenuProfile";
  1339. ToolTip = "Select the start position of the new sequence";
  1340. internalName = "transitionTo";
  1341. };
  1342. new GuiTextCtrl() {
  1343. text = "Target anim";
  1344. position = "4 207";
  1345. extent = "58 16";
  1346. minExtent = "8 2";
  1347. horizSizing = "right";
  1348. vertSizing = "top";
  1349. profile = "ToolsGuiTextProfile";
  1350. };
  1351. new GuiPopUpMenuCtrl() {
  1352. position = "68 206";
  1353. extent = "133 18";
  1354. minExtent = "8 2";
  1355. horizSizing = "width";
  1356. vertSizing = "top";
  1357. Profile = "ToolsGuiPopUpMenuProfile";
  1358. ToolTip = "Select the initial play state of the new sequence";
  1359. internalName = "transitionTarget";
  1360. };
  1361. };
  1362. };
  1363. new GuiTabPageCtrl() {
  1364. text = "Collision";
  1365. maxLength = "1024";
  1366. Margin = "0 0 0 0";
  1367. Padding = "0 0 0 0";
  1368. AnchorTop = "1";
  1369. AnchorBottom = "0";
  1370. AnchorLeft = "1";
  1371. AnchorRight = "0";
  1372. Position = "0 19";
  1373. extent = "202 224";
  1374. MinExtent = "0 -500";
  1375. HorizSizing = "width";
  1376. VertSizing = "height";
  1377. Profile = "ToolsGuiTabPageProfile";
  1378. Visible = "0";
  1379. tooltipprofile = "ToolsGuiToolTipProfile";
  1380. hovertime = "1000";
  1381. isContainer = "1";
  1382. canSave = "1";
  1383. canSaveDynamicFields = "0";
  1384. new GuiContainer(ShapeEdColWindow) {
  1385. docking = "client";
  1386. Margin = "0 0 0 0";
  1387. Padding = "0 0 0 0";
  1388. AnchorTop = "1";
  1389. AnchorBottom = "0";
  1390. AnchorLeft = "1";
  1391. AnchorRight = "0";
  1392. position = "0 0";
  1393. extent = "202 225";
  1394. MinExtent = "8 8";
  1395. HorizSizing = "width";
  1396. VertSizing = "bottom";
  1397. Profile = "ToolsGuiDefaultProfile";
  1398. Visible = "1";
  1399. tooltipprofile = "ToolsGuiToolTipProfile";
  1400. hovertime = "1000";
  1401. isContainer = "1";
  1402. canSave = "1";
  1403. canSaveDynamicFields = "0";
  1404. new GuiTextCtrl() {
  1405. Profile = "ToolsGuiTextProfile";
  1406. text = "Fit Type";
  1407. position = "5 5";
  1408. extent = "41 16";
  1409. horizSizing = "right";
  1410. vertSizing = "bottom";
  1411. };
  1412. new GuiPopUpMenuCtrl() {
  1413. position = "70 4";
  1414. extent = "108 18";
  1415. horizSizing = "right";
  1416. vertSizing = "bottom";
  1417. Profile = "ToolsGuiPopUpMenuProfile";
  1418. Command = "ShapeEdColWindow.editCollision();";
  1419. ToolTip = "Select the method used to auto-generate the collision geometry";
  1420. internalName = "colType";
  1421. };
  1422. new GuiTextCtrl() {
  1423. Profile = "ToolsGuiTextProfile";
  1424. text = "Fit Target";
  1425. position = "5 25";
  1426. extent = "45 16";
  1427. horizSizing = "right";
  1428. vertSizing = "bottom";
  1429. };
  1430. new GuiPopUpMenuCtrl() {
  1431. position = "70 24";
  1432. extent = "108 18";
  1433. horizSizing = "right";
  1434. vertSizing = "bottom";
  1435. Profile = "ToolsGuiPopUpMenuProfile";
  1436. Command = "ShapeEdColWindow.editCollision();";
  1437. ToolTip = "Select the object to fit collision geometry to";
  1438. internalName = "colTarget";
  1439. };
  1440. new GuiTextCtrl() {
  1441. text = "Max Depth";
  1442. position = "5 47";
  1443. extent = "53 16";
  1444. horizSizing = "right";
  1445. vertSizing = "bottom";
  1446. profile = "ToolsGuiTextProfile";
  1447. };
  1448. new GuiSliderCtrl() {
  1449. range = "0 8";
  1450. ticks = "4";
  1451. snap = "0";
  1452. value = "4";
  1453. position = "70 48";
  1454. extent = "104 14";
  1455. MinExtent = "8 2";
  1456. HorizSizing = "width";
  1457. VertSizing = "bottom";
  1458. Profile = "ToolsGuiSliderProfile";
  1459. Visible = "1";
  1460. AltCommand = "ShapeEdColWindow-->hullDepthText.setText( mFloor($ThisControl.getValue()) );";
  1461. tooltipprofile = "ToolsGuiToolTipProfile";
  1462. ToolTip = "Maximum hull split depth";
  1463. hovertime = "1000";
  1464. isContainer = "0";
  1465. internalName = "hullDepth";
  1466. };
  1467. new GuiTextCtrl() {
  1468. text = "4";
  1469. position = "181 47";
  1470. extent = "18 16";
  1471. horizSizing = "right";
  1472. vertSizing = "bottom";
  1473. profile = "ToolsGuiTextProfile";
  1474. internalName = "hullDepthText";
  1475. };
  1476. new GuiTextCtrl() {
  1477. text = "Merge %";
  1478. position = "5 68";
  1479. extent = "53 16";
  1480. horizSizing = "right";
  1481. vertSizing = "bottom";
  1482. profile = "ToolsGuiTextProfile";
  1483. };
  1484. new GuiSliderCtrl() {
  1485. range = "0 60";
  1486. ticks = "4";
  1487. snap = "0";
  1488. value = "30";
  1489. position = "70 69";
  1490. extent = "104 14";
  1491. MinExtent = "8 2";
  1492. HorizSizing = "width";
  1493. VertSizing = "bottom";
  1494. Profile = "ToolsGuiSliderProfile";
  1495. Visible = "1";
  1496. AltCommand = "ShapeEdColWindow-->hullMergeText.setText( mFloor($ThisControl.getValue()) );";
  1497. tooltipprofile = "ToolsGuiToolTipProfile";
  1498. ToolTip = "Hull volume merge threshold";
  1499. hovertime = "1000";
  1500. isContainer = "0";
  1501. internalName = "hullMergeThreshold";
  1502. };
  1503. new GuiTextCtrl() {
  1504. text = "30";
  1505. position = "179 68";
  1506. extent = "18 16";
  1507. horizSizing = "right";
  1508. vertSizing = "bottom";
  1509. profile = "ToolsGuiTextProfile";
  1510. internalName = "hullMergeText";
  1511. };
  1512. new GuiTextCtrl() {
  1513. text = "Concavity %";
  1514. position = "5 89";
  1515. extent = "59 16";
  1516. horizSizing = "right";
  1517. vertSizing = "bottom";
  1518. profile = "ToolsGuiTextProfile";
  1519. };
  1520. new GuiSliderCtrl() {
  1521. range = "0 60";
  1522. ticks = "4";
  1523. snap = "0";
  1524. value = "30";
  1525. position = "70 90";
  1526. extent = "104 14";
  1527. MinExtent = "8 2";
  1528. HorizSizing = "width";
  1529. VertSizing = "bottom";
  1530. Profile = "ToolsGuiSliderProfile";
  1531. Visible = "1";
  1532. AltCommand = "ShapeEdColWindow-->hullConcaveText.setText( mFloor($ThisControl.getValue()) );";
  1533. tooltipprofile = "ToolsGuiToolTipProfile";
  1534. ToolTip = "Hull concavity threshold";
  1535. hovertime = "1000";
  1536. isContainer = "0";
  1537. internalName = "hullConcaveThreshold";
  1538. };
  1539. new GuiTextCtrl() {
  1540. text = "30";
  1541. position = "179 89";
  1542. extent = "18 16";
  1543. horizSizing = "right";
  1544. vertSizing = "bottom";
  1545. profile = "ToolsGuiTextProfile";
  1546. internalName = "hullConcaveText";
  1547. };
  1548. new GuiTextCtrl() {
  1549. text = "Max Verts";
  1550. position = "5 110";
  1551. extent = "53 16";
  1552. horizSizing = "right";
  1553. vertSizing = "bottom";
  1554. profile = "ToolsGuiTextProfile";
  1555. };
  1556. new GuiSliderCtrl() {
  1557. range = "8 64";
  1558. ticks = "4";
  1559. snap = "0";
  1560. value = "32";
  1561. position = "70 111";
  1562. extent = "104 14";
  1563. MinExtent = "8 2";
  1564. HorizSizing = "width";
  1565. VertSizing = "bottom";
  1566. Profile = "ToolsGuiSliderProfile";
  1567. Visible = "1";
  1568. AltCommand = "ShapeEdColWindow-->hullMaxVertsText.setText( mFloor($ThisControl.getValue()) );";
  1569. tooltipprofile = "ToolsGuiToolTipProfile";
  1570. ToolTip = "Maximum number of verts in a convex hull";
  1571. hovertime = "1000";
  1572. isContainer = "0";
  1573. internalName = "hullMaxVerts";
  1574. };
  1575. new GuiTextCtrl() {
  1576. text = "32";
  1577. position = "179 110";
  1578. extent = "18 16";
  1579. horizSizing = "right";
  1580. vertSizing = "bottom";
  1581. profile = "ToolsGuiTextProfile";
  1582. internalName = "hullMaxVertsText";
  1583. };
  1584. new GuiTextCtrl() {
  1585. text = "Box %";
  1586. position = "5 131";
  1587. extent = "53 16";
  1588. horizSizing = "right";
  1589. vertSizing = "bottom";
  1590. profile = "ToolsGuiTextProfile";
  1591. };
  1592. new GuiSliderCtrl() {
  1593. range = "0 100";
  1594. ticks = "4";
  1595. snap = "0";
  1596. value = "30";
  1597. position = "70 132";
  1598. extent = "104 14";
  1599. MinExtent = "8 2";
  1600. HorizSizing = "width";
  1601. VertSizing = "bottom";
  1602. Profile = "ToolsGuiSliderProfile";
  1603. Visible = "1";
  1604. AltCommand = "ShapeEdColWindow-->hullMaxBoxErrorText.setText( mFloor($ThisControl.getValue()) );";
  1605. tooltipprofile = "ToolsGuiToolTipProfile";
  1606. ToolTip = "Maximum box volume error %";
  1607. hovertime = "1000";
  1608. isContainer = "0";
  1609. internalName = "hullMaxBoxError";
  1610. };
  1611. new GuiTextCtrl() {
  1612. text = "30";
  1613. position = "179 131";
  1614. extent = "18 16";
  1615. horizSizing = "right";
  1616. vertSizing = "bottom";
  1617. profile = "ToolsGuiTextProfile";
  1618. internalName = "hullMaxBoxErrorText";
  1619. };
  1620. new GuiTextCtrl() {
  1621. text = "Sphere %";
  1622. position = "5 152";
  1623. extent = "53 16";
  1624. horizSizing = "right";
  1625. vertSizing = "bottom";
  1626. profile = "ToolsGuiTextProfile";
  1627. };
  1628. new GuiSliderCtrl() {
  1629. range = "0 100";
  1630. ticks = "4";
  1631. snap = "0";
  1632. value = "30";
  1633. position = "70 153";
  1634. extent = "104 14";
  1635. MinExtent = "8 2";
  1636. HorizSizing = "width";
  1637. VertSizing = "bottom";
  1638. Profile = "ToolsGuiSliderProfile";
  1639. Visible = "1";
  1640. AltCommand = "ShapeEdColWindow-->hullMaxSphereErrorText.setText( mFloor($ThisControl.getValue()) );";
  1641. tooltipprofile = "ToolsGuiToolTipProfile";
  1642. ToolTip = "Maximum sphere volume error %";
  1643. hovertime = "1000";
  1644. isContainer = "0";
  1645. internalName = "hullMaxSphereError";
  1646. };
  1647. new GuiTextCtrl() {
  1648. text = "30";
  1649. position = "179 152";
  1650. extent = "18 16";
  1651. horizSizing = "right";
  1652. vertSizing = "bottom";
  1653. profile = "ToolsGuiTextProfile";
  1654. internalName = "hullMaxSphereErrorText";
  1655. };
  1656. new GuiTextCtrl() {
  1657. text = "Capsule %";
  1658. position = "5 173";
  1659. extent = "53 16";
  1660. horizSizing = "right";
  1661. vertSizing = "bottom";
  1662. profile = "ToolsGuiTextProfile";
  1663. };
  1664. new GuiSliderCtrl() {
  1665. range = "0 100";
  1666. ticks = "4";
  1667. snap = "0";
  1668. value = "30";
  1669. position = "70 174";
  1670. extent = "104 14";
  1671. MinExtent = "8 2";
  1672. HorizSizing = "width";
  1673. VertSizing = "bottom";
  1674. Profile = "ToolsGuiSliderProfile";
  1675. Visible = "1";
  1676. AltCommand = "ShapeEdColWindow-->hullMaxCapsuleErrorText.setText( mFloor($ThisControl.getValue()) );";
  1677. tooltipprofile = "ToolsGuiToolTipProfile";
  1678. ToolTip = "Maximum capsule volume error %";
  1679. hovertime = "1000";
  1680. isContainer = "0";
  1681. internalName = "hullMaxCapsuleError";
  1682. };
  1683. new GuiTextCtrl() {
  1684. text = "30";
  1685. position = "179 173";
  1686. extent = "18 16";
  1687. horizSizing = "right";
  1688. vertSizing = "bottom";
  1689. profile = "ToolsGuiTextProfile";
  1690. internalName = "hullMaxCapsuleErrorText";
  1691. };
  1692. new GuiButtonCtrl() {
  1693. text = "Update Hulls";
  1694. groupNum = "-1";
  1695. buttonType = "PushButton";
  1696. useMouseEvents = "0";
  1697. position = "7 200";
  1698. extent = "88 18";
  1699. MinExtent = "8 2";
  1700. HorizSizing = "right";
  1701. vertSizing = "bottom";
  1702. Profile = "ToolsGuiButtonProfile";
  1703. Visible = "1";
  1704. Command = "ShapeEdColWindow.editCollision();";
  1705. tooltipprofile = "ToolsGuiToolTipProfile";
  1706. ToolTip = "Update the convex hull(s)";
  1707. hovertime = "1000";
  1708. isContainer = "0";
  1709. canSave = "1";
  1710. canSaveDynamicFields = "0";
  1711. };
  1712. new GuiButtonCtrl() {
  1713. text = "Revert Changes";
  1714. groupNum = "-1";
  1715. buttonType = "PushButton";
  1716. useMouseEvents = "0";
  1717. position = "105 200";
  1718. extent = "88 18";
  1719. MinExtent = "8 2";
  1720. HorizSizing = "right";
  1721. vertSizing = "bottom";
  1722. Profile = "ToolsGuiButtonProfile";
  1723. Visible = "1";
  1724. Command = "ShapeEdColWindow.update_onCollisionChanged();";
  1725. tooltipprofile = "ToolsGuiToolTipProfile";
  1726. ToolTip = "Revert changes to settings";
  1727. hovertime = "1000";
  1728. isContainer = "0";
  1729. canSave = "1";
  1730. canSaveDynamicFields = "0";
  1731. };
  1732. new GuiBitmapCtrl() {
  1733. bitmapAsset = "ToolsModule:inactive_overlay_image";
  1734. position = "0 47";
  1735. extent = "199 175";
  1736. horizSizing = "right";
  1737. vertSizing = "bottom";
  1738. profile = "ToolsGuiDefaultProfile";
  1739. visible = "0";
  1740. canSave = "1";
  1741. canSaveDynamicFields = "0";
  1742. internalName = "hullInactive";
  1743. };
  1744. };
  1745. };
  1746. };
  1747. };
  1748. //--- OBJECT WRITE END ---
  1749. new GuiControl(ShapeEdWaitGui,EditorGuiGroup) {
  1750. isContainer = "1";
  1751. Profile = "ToolsGuiOverlayProfile";
  1752. HorizSizing = "right";
  1753. VertSizing = "bottom";
  1754. position = "0 0";
  1755. Extent = "800 600";
  1756. MinExtent = "8 2";
  1757. canSave = "1";
  1758. Visible = "1";
  1759. tooltipprofile = "ToolsGuiToolTipProfile";
  1760. hovertime = "1000";
  1761. canSaveDynamicFields = "1";
  1762. new GuiControl() {
  1763. isContainer = "1";
  1764. Profile = "editorMenu_wBorderProfile";
  1765. HorizSizing = "center";
  1766. VertSizing = "center";
  1767. position = "277 271";
  1768. Extent = "245 57";
  1769. MinExtent = "8 2";
  1770. canSave = "1";
  1771. Visible = "1";
  1772. tooltipprofile = "ToolsGuiToolTipProfile";
  1773. hovertime = "1000";
  1774. internalName = "Dialog";
  1775. canSaveDynamicFields = "0";
  1776. new GuiTextCtrl() {
  1777. text = "";
  1778. maxLength = "1024";
  1779. Margin = "0 0 0 0";
  1780. Padding = "0 0 0 0";
  1781. AnchorTop = "1";
  1782. AnchorBottom = "0";
  1783. AnchorLeft = "1";
  1784. AnchorRight = "0";
  1785. isContainer = "0";
  1786. Profile = "ToolsGuiTextBoldCenterProfile";
  1787. HorizSizing = "width";
  1788. VertSizing = "center";
  1789. position = "5 19";
  1790. Extent = "236 18";
  1791. MinExtent = "8 2";
  1792. canSave = "1";
  1793. Visible = "1";
  1794. tooltipprofile = "ToolsGuiToolTipProfile";
  1795. hovertime = "1000";
  1796. canSaveDynamicFields = "0";
  1797. internalName = "message";
  1798. };
  1799. };
  1800. };
  1801. function ShapeEdWaitGui::show(%this, %text)
  1802. {
  1803. %this-->message.setText( %text );
  1804. Canvas.pushDialog( %this );
  1805. Canvas.repaint();
  1806. }
  1807. function ShapeEdWaitGui::hide(%this)
  1808. {
  1809. Canvas.popDialog( %this );
  1810. }
  1811. function ShapeEdWaitGui::onWake(%this)
  1812. {
  1813. %res = %this.getExtent();
  1814. %resX = getWord( %res, 0 );
  1815. %resY = getWord( %res, 1 );
  1816. %dialog = %this-->Dialog;
  1817. %dialogExtent = %dialog.getExtent();
  1818. %dialogWidth = getWord( %dialogExtent, 0 );
  1819. %dialogHeight = getWord( %dialogExtent, 1 );
  1820. %dialogPostion = %dialog.getPosition();
  1821. %posX = ( %resX / 2 ) - ( %dialogWidth / 2 );
  1822. %posY = ( %resY / 2 ) - ( %dialogHeight / 2 );
  1823. %dialog.setPosition( %posX, %posY );
  1824. }