shapeEdAdvancedWindow.ed.gui 69 KB

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