shapeEdAdvancedWindow.ed.gui 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231
  1. // Let's check if the ShapeEdAdvancedWindow can be stacked in the side panel
  2. if (getWord($pref::Video::mode, 1) > 899 && isObject(ShapeEdSelectWindow) && isObject(ShapeEdPropWindow))
  3. {
  4. $ShapeEdAdvancedWindowPos = getWord($pref::Video::mode, 0) - 360 SPC getWord(ShapeEdSelectWindow.extent, 1) + getWord(ShapeEdPropWindow.extent, 1) + getWord(EditorGuiToolbar.extent, 1) + 12 - 7;
  5. }
  6. else
  7. {
  8. $ShapeEdAdvancedWindowPos = getWord($pref::Video::mode, 0) - 720 SPC getWord(EditorGuiToolbar.extent, 1) + 6 - 7;
  9. }
  10. //--- OBJECT WRITE BEGIN ---
  11. $guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow,EditorGuiGroup) {
  12. text = ":: Shape Editor - Advanced Properties";
  13. resizeWidth = "0";
  14. resizeHeight = "0";
  15. canMove = "1";
  16. canClose = "1";
  17. canMinimize = "0";
  18. canMaximize = "0";
  19. closeCommand = "ShapeEditorToolbar-->showAdvanced.performClick();";
  20. EdgeSnap = "1";
  21. Margin = "4 4 4 4";
  22. Padding = "0 0 0 0";
  23. AnchorTop = "1";
  24. AnchorBottom = "0";
  25. AnchorLeft = "1";
  26. AnchorRight = "0";
  27. Position = $ShapeEdAdvancedWindowPos;
  28. extent = "360 300";
  29. MinExtent = "300 300";
  30. HorizSizing = "windowRelative";
  31. VertSizing = "windowRelative";
  32. Profile = "ToolsGuiWindowProfile";
  33. Visible = "0";
  34. tooltipprofile = "ToolsGuiToolTipProfile";
  35. hovertime = "1000";
  36. isContainer = "1";
  37. canSave = "1";
  38. canSaveDynamicFields = "0";
  39. minSize = "50 50";
  40. new GuiTabBookCtrl() {
  41. tabMargin = "6";
  42. minTabWidth = "32";
  43. tabHeight = "20";
  44. selectedPage = "3";
  45. docking = "Client";
  46. margin = "3 1 3 3";
  47. position = "9 29";
  48. extent = "1262 682";
  49. minExtent = "8 -500";
  50. horizSizing = "width";
  51. vertSizing = "height";
  52. profile = "ToolsGuiTabBookProfile";
  53. tooltipProfile = "ToolsGuiToolTipProfile";
  54. internalName = "tabBook";
  55. new GuiTabPageCtrl() {
  56. text = "Details";
  57. position = "0 19";
  58. extent = "1262 663";
  59. minExtent = "0 -500";
  60. horizSizing = "width";
  61. vertSizing = "height";
  62. profile = "ToolsGuiTabPageProfile";
  63. visible = "0";
  64. tooltipProfile = "ToolsGuiToolTipProfile";
  65. hidden = "1";
  66. new GuiContainer() {
  67. docking = "Client";
  68. extent = "1262 663";
  69. minExtent = "8 8";
  70. horizSizing = "width";
  71. profile = "ToolsGuiDefaultProfile";
  72. tooltipProfile = "ToolsGuiToolTipProfile";
  73. new GuiContainer() {
  74. extent = "1262 596";
  75. horizSizing = "width";
  76. vertSizing = "height";
  77. profile = "inspectorStyleRolloutDarkProfile";
  78. tooltipProfile = "GuiToolTipProfile";
  79. new GuiTextCtrl() {
  80. text = "Levels:";
  81. position = "4 1";
  82. extent = "1332 16";
  83. horizSizing = "width";
  84. profile = "ToolsGuiTextProfile";
  85. tooltipProfile = "GuiToolTipProfile";
  86. };
  87. new GuiCheckBoxCtrl() {
  88. text = "Levels";
  89. position = "5 22";
  90. extent = "49 13";
  91. profile = "ToolsGuiCheckBoxProfile";
  92. variable = "ShapeEdShapeView.fixedDetail";
  93. command = "ShapeEdAdvancedWindow-->detailSlider.setActive($ThisControl.getValue()); ShapeEdAdvancedWindow-->levelsInactive.setVisible( !$ThisControl.getValue() );";
  94. tooltipProfile = "ToolsGuiToolTipProfile";
  95. tooltip = "Allow the slider to select the current detail level";
  96. };
  97. new GuiSliderCtrl() {
  98. range = "0 0";
  99. ticks = "1";
  100. snap = "1";
  101. value = "0";
  102. position = "57 22";
  103. extent = "1178 14";
  104. horizSizing = "width";
  105. profile = "ToolsGuiSliderBoxProfile";
  106. variable = "ShapeEdShapeView.currentDL";
  107. tooltipProfile = "ToolsGuiToolTipProfile";
  108. tooltip = "Drag the slider to change the current detail level";
  109. internalName = "detailSlider";
  110. };
  111. new GuiBitmapCtrl() {
  112. BitmapAsset = "ToolsModule:inactive_overlay_image";
  113. position = "57 19";
  114. extent = "290 20";
  115. profile = "GuiDefaultProfile";
  116. tooltipProfile = "GuiToolTipProfile";
  117. tooltip = "Levels needs to be selected to enable the detail level slider";
  118. hovertime = "500";
  119. isContainer = "1";
  120. internalName = "levelsInactive";
  121. };
  122. new GuiTextCtrl() {
  123. text = "0";
  124. position = "1242 20";
  125. extent = "15 16";
  126. horizSizing = "left";
  127. profile = "ToolsGuiTextProfile";
  128. variable = "ShapeEdShapeView.currentDL";
  129. tooltipProfile = "ToolsGuiToolTipProfile";
  130. tooltip = "Index of the current detail level";
  131. isContainer = "0";
  132. };
  133. new GuiTextCtrl() {
  134. text = "Polys";
  135. position = "37 40";
  136. extent = "26 16";
  137. profile = "ToolsGuiTextRightProfile";
  138. tooltipProfile = "ToolsGuiToolTipProfile";
  139. };
  140. new GuiTextCtrl() {
  141. text = "0";
  142. position = "77 40";
  143. extent = "40 16";
  144. profile = "ToolsGuiTextProfile";
  145. variable = "ShapeEdShapeView.detailPolys";
  146. tooltipProfile = "ToolsGuiToolTipProfile";
  147. tooltip = "Number of polygons in the current detail level";
  148. };
  149. new GuiTextCtrl() {
  150. text = "Size";
  151. position = "127 40";
  152. extent = "24 16";
  153. profile = "ToolsGuiTextRightProfile";
  154. tooltipProfile = "ToolsGuiToolTipProfile";
  155. };
  156. new GuiTextEditCtrl() {
  157. position = "160 39";
  158. extent = "35 20";
  159. profile = "ToolsGuiTextEditProfile";
  160. variable = "ShapeEdShapeView.detailSize";
  161. altCommand = "ShapeEdAdvancedWindow.onEditDetailSize();";
  162. tooltipProfile = "ToolsGuiToolTipProfile";
  163. tooltip = "Edit this value to change the size of the current detail";
  164. internalName = "detailSize";
  165. };
  166. new GuiTextCtrl() {
  167. text = "Pixels";
  168. position = "35 60";
  169. extent = "28 16";
  170. profile = "ToolsGuiTextRightProfile";
  171. tooltipProfile = "ToolsGuiToolTipProfile";
  172. };
  173. new GuiTextCtrl() {
  174. text = "0";
  175. position = "77 60";
  176. extent = "40 16";
  177. profile = "ToolsGuiTextProfile";
  178. variable = "ShapeEdShapeView.pixelSize";
  179. tooltipProfile = "ToolsGuiToolTipProfile";
  180. tooltip = "Current size (in pixels) of the shape";
  181. };
  182. new GuiTextCtrl() {
  183. text = "Distance";
  184. position = "109 60";
  185. extent = "42 16";
  186. profile = "ToolsGuiTextRightProfile";
  187. tooltipProfile = "ToolsGuiToolTipProfile";
  188. };
  189. new GuiTextCtrl() {
  190. text = "5";
  191. position = "160 60";
  192. extent = "38 16";
  193. profile = "ToolsGuiTextProfile";
  194. variable = "ShapeEdShapeView.orbitDist";
  195. tooltipProfile = "ToolsGuiToolTipProfile";
  196. tooltip = "Current distance from the shape to the camera";
  197. };
  198. new GuiTextCtrl() {
  199. text = "Materials";
  200. position = "20 80";
  201. extent = "43 16";
  202. profile = "ToolsGuiTextRightProfile";
  203. tooltipProfile = "ToolsGuiToolTipProfile";
  204. };
  205. new GuiTextCtrl() {
  206. text = "0";
  207. position = "77 80";
  208. extent = "40 16";
  209. profile = "ToolsGuiTextProfile";
  210. variable = "ShapeEdShapeView.numMaterials";
  211. tooltipProfile = "ToolsGuiToolTipProfile";
  212. tooltip = "Number of materials used by all meshes at this detail level";
  213. };
  214. new GuiTextCtrl() {
  215. text = "Bones";
  216. position = "120 80";
  217. extent = "31 16";
  218. profile = "ToolsGuiTextRightProfile";
  219. tooltipProfile = "ToolsGuiToolTipProfile";
  220. };
  221. new GuiTextCtrl() {
  222. text = "0";
  223. position = "160 80";
  224. extent = "38 16";
  225. profile = "ToolsGuiTextProfile";
  226. variable = "ShapeEdShapeView.numBones";
  227. tooltipProfile = "ToolsGuiToolTipProfile";
  228. tooltip = "Number of bones at this detail level (skins only)";
  229. };
  230. new GuiTextCtrl() {
  231. text = "Primitives";
  232. position = "19 100";
  233. extent = "44 16";
  234. profile = "ToolsGuiTextRightProfile";
  235. tooltipProfile = "ToolsGuiToolTipProfile";
  236. };
  237. new GuiTextCtrl() {
  238. text = "0";
  239. position = "77 100";
  240. extent = "40 16";
  241. profile = "ToolsGuiTextProfile";
  242. variable = "ShapeEdShapeView.numDrawCalls";
  243. tooltipProfile = "ToolsGuiToolTipProfile";
  244. tooltip = "Total number of mesh primitives (triangle lists) at this detail level";
  245. };
  246. new GuiTextCtrl() {
  247. text = "Weights";
  248. position = "109 100";
  249. extent = "42 16";
  250. profile = "ToolsGuiTextRightProfile";
  251. tooltipProfile = "ToolsGuiToolTipProfile";
  252. };
  253. new GuiTextCtrl() {
  254. text = "0";
  255. position = "160 100";
  256. extent = "38 16";
  257. profile = "ToolsGuiTextProfile";
  258. variable = "ShapeEdShapeView.numWeights";
  259. tooltipProfile = "ToolsGuiToolTipProfile";
  260. tooltip = "Number of vertex weights at this detail level (skins only)";
  261. };
  262. new GuiTextCtrl() {
  263. text = "Col Meshes";
  264. position = "7 120";
  265. extent = "56 16";
  266. profile = "ToolsGuiTextProfile";
  267. tooltipProfile = "GuiToolTipProfile";
  268. };
  269. new GuiTextCtrl() {
  270. text = "0";
  271. position = "74 120";
  272. extent = "40 16";
  273. profile = "GuiTextProfile";
  274. variable = "ShapeEdShapeView.colMeshes";
  275. tooltipProfile = "GuiToolTipProfile";
  276. };
  277. new GuiTextCtrl() {
  278. text = "Col Polys";
  279. position = "108 120";
  280. extent = "43 16";
  281. profile = "ToolsGuiTextProfile";
  282. tooltipProfile = "GuiToolTipProfile";
  283. };
  284. new GuiTextCtrl() {
  285. text = "0";
  286. position = "160 120";
  287. extent = "38 16";
  288. profile = "GuiTextProfile";
  289. variable = "ShapeEdShapeView.colPolys";
  290. tooltipProfile = "GuiToolTipProfile";
  291. };
  292. };
  293. new GuiContainer() {
  294. position = "0 138";
  295. extent = "1262 90";
  296. minExtent = "8 8";
  297. horizSizing = "width";
  298. profile = "inspectorStyleRolloutDarkProfile";
  299. tooltipProfile = "GuiToolTipProfile";
  300. new GuiTextCtrl() {
  301. text = "Imposters:";
  302. position = "5 1";
  303. extent = "192 16";
  304. profile = "ToolsGuiTextProfile";
  305. tooltipProfile = "GuiToolTipProfile";
  306. };
  307. new GuiCheckBoxCtrl() {
  308. text = "Use Imposters";
  309. position = "72 2";
  310. extent = "83 13";
  311. profile = "ToolsGuiCheckBoxProfile";
  312. command = "ShapeEdDetails.onToggleImposter( $ThisControl.getValue() );";
  313. tooltipProfile = "ToolsGuiToolTipProfile";
  314. tooltip = "Controls whether this shape uses an imposter detail level";
  315. internalName = "bbUseImposters";
  316. };
  317. new GuiTextCtrl() {
  318. text = "Detail Level";
  319. position = "6 23";
  320. extent = "57 16";
  321. profile = "ToolsGuiTextRightProfile";
  322. tooltipProfile = "ToolsGuiToolTipProfile";
  323. isContainer = "0";
  324. };
  325. new GuiTextEditCtrl() {
  326. position = "68 22";
  327. extent = "36 20";
  328. profile = "ToolsGuiTextEditProfile";
  329. altCommand = "ShapeEdDetails.onEditImposter();";
  330. tooltipProfile = "ToolsGuiToolTipProfile";
  331. tooltip = "Specifies the detail level used to generate the imposters";
  332. internalName = "bbDetailLevel";
  333. };
  334. new GuiTextCtrl() {
  335. text = "Dimension";
  336. position = "6 43";
  337. extent = "57 16";
  338. profile = "ToolsGuiTextRightProfile";
  339. tooltipProfile = "ToolsGuiToolTipProfile";
  340. };
  341. new GuiTextEditCtrl() {
  342. position = "72 43";
  343. extent = "36 20";
  344. profile = "ToolsGuiTextEditProfile";
  345. altCommand = "ShapeEdDetails.onEditImposter();";
  346. tooltipProfile = "ToolsGuiToolTipProfile";
  347. tooltip = "Specifies the dimension (width/height) of the imposters in pixels";
  348. internalName = "bbDimension";
  349. };
  350. new GuiTextCtrl() {
  351. text = "X Steps";
  352. position = "6 65";
  353. extent = "57 16";
  354. profile = "ToolsGuiTextRightProfile";
  355. tooltipProfile = "ToolsGuiToolTipProfile";
  356. };
  357. new GuiTextEditCtrl() {
  358. position = "68 64";
  359. extent = "36 20";
  360. profile = "ToolsGuiTextEditProfile";
  361. altCommand = "ShapeEdDetails.onEditImposter();";
  362. tooltipProfile = "ToolsGuiToolTipProfile";
  363. tooltip = "Number of steps in the horizontal axis";
  364. internalName = "bbEquatorSteps";
  365. };
  366. new GuiCheckBoxCtrl() {
  367. text = "Include Poles";
  368. position = "113 24";
  369. extent = "83 18";
  370. profile = "ToolsGuiCheckBoxProfile";
  371. command = "ShapeEdDetails.onEditImposter();";
  372. tooltipProfile = "ToolsGuiToolTipProfile";
  373. tooltip = "Specifies whether to include the poles (top and bottom) of the shape";
  374. internalName = "bbIncludePoles";
  375. };
  376. new GuiTextCtrl() {
  377. text = "Y Steps";
  378. position = "116 44";
  379. extent = "41 16";
  380. profile = "ToolsGuiTextRightProfile";
  381. tooltipProfile = "ToolsGuiToolTipProfile";
  382. tooltip = "Number of steps in the vertical axis";
  383. isContainer = "0";
  384. };
  385. new GuiTextEditCtrl() {
  386. position = "161 43";
  387. extent = "36 20";
  388. profile = "ToolsGuiTextEditProfile";
  389. altCommand = "ShapeEdDetails.onEditImposter();";
  390. tooltipProfile = "ToolsGuiToolTipProfile";
  391. internalName = "bbPolarSteps";
  392. };
  393. new GuiTextCtrl() {
  394. text = "Y Angle";
  395. position = "116 65";
  396. extent = "41 16";
  397. profile = "ToolsGuiTextRightProfile";
  398. tooltipProfile = "ToolsGuiToolTipProfile";
  399. tooltip = "Polar Angle - Y axis";
  400. };
  401. new GuiTextEditCtrl() {
  402. position = "161 64";
  403. extent = "36 20";
  404. profile = "ToolsGuiTextEditProfile";
  405. altCommand = "ShapeEdDetails.onEditImposter();";
  406. tooltipProfile = "ToolsGuiToolTipProfile";
  407. internalName = "bbPolarAngle";
  408. };
  409. new GuiBitmapCtrl() {
  410. BitmapAsset = "ToolsModule:inactive_overlay_image";
  411. position = "4 18";
  412. extent = "193 68";
  413. profile = "GuiDefaultProfile";
  414. tooltipProfile = "GuiToolTipProfile";
  415. tooltip = "Imposters must be enabled, and an imposter detail level selected to edit these properties";
  416. hovertime = "500";
  417. isContainer = "1";
  418. internalName = "imposterInactive";
  419. };
  420. };
  421. };
  422. };
  423. new GuiTabPageCtrl() {
  424. text = "Mounting";
  425. position = "0 19";
  426. extent = "1262 663";
  427. minExtent = "0 -500";
  428. horizSizing = "width";
  429. vertSizing = "height";
  430. profile = "ToolsGuiTabPageProfile";
  431. visible = "0";
  432. tooltipProfile = "ToolsGuiToolTipProfile";
  433. hidden = "1";
  434. new GuiControl() {
  435. extent = "294 224";
  436. profile = "ToolsGuiScrollProfile";
  437. tooltipProfile = "GuiToolTipProfile";
  438. isContainer = "1";
  439. };
  440. new GuiContainer(ShapeEdMountWindow) {
  441. docking = "None";
  442. extent = "1262 663";
  443. minExtent = "8 8";
  444. horizSizing = "width";
  445. vertSizing = "height";
  446. profile = "ToolsGuiDefaultProfile";
  447. tooltipProfile = "ToolsGuiToolTipProfile";
  448. new GuiCheckBoxCtrl() {
  449. text = " Render mounted shapes";
  450. position = "2 2";
  451. extent = "200 13";
  452. profile = "ToolsGuiCheckBoxProfile";
  453. variable = "ShapeEdShapeView.renderMounts";
  454. tooltipProfile = "ToolsGuiToolTipProfile";
  455. tooltip = "Controls whether mounted shapes will be rendered in the 3D view";
  456. internalName = "renderMounts";
  457. };
  458. new GuiScrollCtrl() {
  459. hScrollBar = "alwaysOff";
  460. vScrollBar = "dynamic";
  461. lockHorizScroll = "1";
  462. anchorTop = "0";
  463. position = "0 17";
  464. extent = "1244 563";
  465. minExtent = "8 8";
  466. horizSizing = "width";
  467. vertSizing = "height";
  468. profile = "GuiScrollProfile";
  469. tooltipProfile = "ToolsGuiToolTipProfile";
  470. new GuiContainer() {
  471. position = "1 1";
  472. extent = "1242 560";
  473. horizSizing = "width";
  474. vertSizing = "height";
  475. profile = "inspectorStyleRolloutListProfile";
  476. tooltipProfile = "GuiToolTipProfile";
  477. };
  478. new GuiTextListCtrl() {
  479. columns = "-1 0 110 152";
  480. clipColumnText = "1";
  481. position = "1 1";
  482. extent = "1242 11";
  483. minExtent = "8 11";
  484. profile = "GuiDefaultProfile";
  485. command = "ShapeEdMountWindow.update_onMountSelectionChanged();";
  486. tooltipProfile = "ToolsGuiToolTipProfile";
  487. internalName = "mountList";
  488. };
  489. };
  490. new GuiContainer() {
  491. position = "0 579";
  492. extent = "1244 85";
  493. horizSizing = "width";
  494. vertSizing = "top";
  495. profile = "inspectorStyleRolloutDarkProfile";
  496. tooltipProfile = "GuiToolTipProfile";
  497. new GuiTextCtrl() {
  498. text = "Mount Item";
  499. position = "5 1";
  500. extent = "134 16";
  501. profile = "ToolsGuiTextProfile";
  502. tooltipProfile = "GuiToolTipProfile";
  503. };
  504. new GuiBitmapButtonCtrl() {
  505. BitmapAsset = "ToolsModule:delete_n_image";
  506. position = "1224 1";
  507. extent = "16 16";
  508. horizSizing = "left";
  509. profile = "ToolsGuiDefaultProfile";
  510. command = "ShapeEdMountWindow.unmountShape();";
  511. tooltipProfile = "ToolsGuiToolTipProfile";
  512. tooltip = "Delete the selected mount item";
  513. };
  514. new GuiBitmapButtonCtrl() {
  515. BitmapAsset = "ToolsModule:new_n_image";
  516. position = "1210 1";
  517. extent = "16 16";
  518. horizSizing = "left";
  519. profile = "ToolsGuiDefaultProfile";
  520. command = "ShapeEdMountWindow.mountShape(-1);";
  521. tooltipProfile = "ToolsGuiToolTipProfile";
  522. tooltip = "Mounts a new shape to the current model";
  523. };
  524. new GuiTextCtrl() {
  525. text = "Shape";
  526. position = "5 21";
  527. extent = "33 16";
  528. profile = "ToolsGuiTextRightProfile";
  529. tooltipProfile = "GuiToolTipProfile";
  530. };
  531. new GuiPopUpMenuCtrl(ShapeEdMountShapeMenu) {
  532. text = "Browse...";
  533. position = "42 20";
  534. extent = "1198 18";
  535. horizSizing = "width";
  536. profile = "ToolsGuiPopUpMenuProfile";
  537. tooltipProfile = "GuiToolTipProfile";
  538. tooltip = "Select the model to mount";
  539. };
  540. new GuiTextCtrl() {
  541. text = "Node";
  542. position = "5 42";
  543. extent = "33 16";
  544. profile = "ToolsGuiTextRightProfile";
  545. tooltipProfile = "GuiToolTipProfile";
  546. };
  547. new GuiPopUpMenuCtrl() {
  548. position = "42 41";
  549. extent = "1104 18";
  550. horizSizing = "width";
  551. profile = "ToolsGuiPopUpMenuProfile";
  552. command = "ShapeEdMountWindow.updateSelectedMount();";
  553. tooltipProfile = "GuiToolTipProfile";
  554. tooltip = "Select the node on which to mount the model";
  555. internalName = "mountNode";
  556. };
  557. new GuiTextCtrl() {
  558. text = "Type";
  559. position = "1152 42";
  560. extent = "24 16";
  561. horizSizing = "left";
  562. profile = "ToolsGuiTextProfile";
  563. tooltipProfile = "GuiToolTipProfile";
  564. };
  565. new GuiPopUpMenuCtrl() {
  566. text = "Image";
  567. position = "1180 41";
  568. extent = "60 18";
  569. horizSizing = "left";
  570. profile = "ToolsGuiPopUpMenuProfile";
  571. command = "ShapeEdMountWindow.updateSelectedMount();";
  572. tooltipProfile = "GuiToolTipProfile";
  573. tooltip = "Select the type of mounting to use";
  574. internalName = "mountType";
  575. };
  576. new GuiPopUpMenuCtrl() {
  577. text = "<rootpose>";
  578. position = "5 62";
  579. extent = "1141 18";
  580. horizSizing = "width";
  581. profile = "ToolsGuiPopUpMenuProfile";
  582. command = "ShapeEdMountWindow.setMountThreadSequence();";
  583. tooltipProfile = "GuiToolTipProfile";
  584. tooltip = "Select the sequence to play on the mounted model";
  585. internalName = "mountSeq";
  586. };
  587. new GuiSliderCtrl(ShapeEdMountSeqSlider) {
  588. ticks = "0";
  589. value = "0";
  590. position = "109 64";
  591. extent = "1110 14";
  592. horizSizing = "width";
  593. vertSizing = "top";
  594. profile = "ToolsGuiSliderBoxProfile";
  595. tooltipProfile = "ToolsGuiToolTipProfile";
  596. tooltip = "Drag the slider to scrub through the sequence keyframes";
  597. };
  598. new GuiBitmapButtonCtrl() {
  599. BitmapAsset = "ToolsModule:playfwd_btn_n_image";
  600. groupNum = "0";
  601. buttonType = "ToggleButton";
  602. position = "1222 62";
  603. extent = "18 18";
  604. horizSizing = "left";
  605. vertSizing = "top";
  606. profile = "ToolsGuiButtonProfile";
  607. command = "ShapeEdMountWindow.toggleMountThreadPlayback();";
  608. tooltipProfile = "ToolsGuiToolTipProfile";
  609. tooltip = "Play forwards";
  610. internalName = "mountPlayBtn";
  611. };
  612. };
  613. };
  614. };
  615. new GuiTabPageCtrl() {
  616. text = "Threads";
  617. position = "0 19";
  618. extent = "1262 663";
  619. minExtent = "0 -500";
  620. horizSizing = "width";
  621. vertSizing = "height";
  622. profile = "ToolsGuiTabPageProfile";
  623. visible = "0";
  624. tooltipProfile = "ToolsGuiToolTipProfile";
  625. hidden = "1";
  626. new GuiContainer(ShapeEdThreadWindow) {
  627. docking = "Client";
  628. extent = "1262 663";
  629. minExtent = "8 8";
  630. horizSizing = "width";
  631. profile = "ToolsGuiDefaultProfile";
  632. tooltipProfile = "ToolsGuiToolTipProfile";
  633. new GuiContainer() {
  634. extent = "1263 580";
  635. horizSizing = "width";
  636. vertSizing = "height";
  637. profile = "inspectorStyleRolloutDarkProfile";
  638. tooltipProfile = "GuiToolTipProfile";
  639. new GuiTextCtrl() {
  640. text = "Thread";
  641. position = "4 1";
  642. extent = "41 16";
  643. profile = "ToolsGuiTextProfile";
  644. tooltipProfile = "GuiToolTipProfile";
  645. };
  646. new GuiScrollCtrl() {
  647. hScrollBar = "alwaysOff";
  648. vScrollBar = "dynamic";
  649. lockHorizScroll = "1";
  650. anchorTop = "0";
  651. position = "0 17";
  652. extent = "47 563";
  653. minExtent = "8 8";
  654. vertSizing = "height";
  655. profile = "GuiScrollProfile";
  656. tooltipProfile = "ToolsGuiToolTipProfile";
  657. new GuiTextListCtrl(ShapeEdThreadList) {
  658. clipColumnText = "1";
  659. position = "1 1";
  660. extent = "45 11";
  661. minExtent = "8 11";
  662. profile = "GuiDefaultProfile";
  663. tooltipProfile = "ToolsGuiToolTipProfile";
  664. };
  665. };
  666. new GuiTextCtrl() {
  667. text = "Sequence";
  668. position = "52 1";
  669. extent = "53 16";
  670. profile = "ToolsGuiTextProfile";
  671. tooltipProfile = "GuiToolTipProfile";
  672. };
  673. new GuiScrollCtrl() {
  674. hScrollBar = "dynamic";
  675. vScrollBar = "dynamic";
  676. lockHorizScroll = "1";
  677. anchorTop = "0";
  678. position = "46 17";
  679. extent = "1262 563";
  680. minExtent = "8 8";
  681. horizSizing = "width";
  682. vertSizing = "height";
  683. profile = "GuiScrollProfile";
  684. tooltipProfile = "ToolsGuiToolTipProfile";
  685. new GuiTextListCtrl() {
  686. clipColumnText = "1";
  687. position = "1 1";
  688. extent = "1260 11";
  689. minExtent = "8 11";
  690. profile = "GuiDefaultProfile";
  691. command = "ShapeEdSequenceList.setSelectedById( $ThisControl.getSelectedId() );";
  692. tooltipProfile = "ToolsGuiToolTipProfile";
  693. internalName = "seqList";
  694. };
  695. };
  696. new GuiBitmapButtonCtrl() {
  697. BitmapAsset = "ToolsModule:delete_n_image";
  698. position = "1244 1";
  699. extent = "16 16";
  700. horizSizing = "left";
  701. profile = "ToolsGuiDefaultProfile";
  702. command = "ShapeEdThreadWindow.onRemoveThread();";
  703. tooltipProfile = "ToolsGuiToolTipProfile";
  704. tooltip = "Delete the selected thread";
  705. };
  706. new GuiBitmapButtonCtrl() {
  707. BitmapAsset = "ToolsModule:new_n_image";
  708. position = "1231 1";
  709. extent = "16 16";
  710. horizSizing = "left";
  711. profile = "ToolsGuiDefaultProfile";
  712. command = "ShapeEdThreadWindow.onAddThread();";
  713. tooltipProfile = "ToolsGuiToolTipProfile";
  714. tooltip = "Add a new thread";
  715. };
  716. };
  717. new GuiSliderCtrl(ShapeEdThreadSlider) {
  718. range = "0 0";
  719. ticks = "0";
  720. value = "0";
  721. position = "29 585";
  722. extent = "1193 14";
  723. horizSizing = "width";
  724. vertSizing = "top";
  725. profile = "ToolsGuiSliderBoxProfile";
  726. tooltipProfile = "ToolsGuiToolTipProfile";
  727. tooltip = "Drag the slider to scrub through the sequence keyframes";
  728. };
  729. new GuiBitmapButtonCtrl() {
  730. BitmapAsset = "ToolsModule:playbkwd_btn_n_image";
  731. groupNum = "0";
  732. buttonType = "RadioButton";
  733. position = "6 583";
  734. extent = "18 18";
  735. vertSizing = "top";
  736. profile = "ToolsGuiButtonProfile";
  737. command = "ShapeEdAnimWindow-->playBkwdBtn.performClick();";
  738. tooltipProfile = "ToolsGuiToolTipProfile";
  739. tooltip = "Play backwards";
  740. internalName = "playBkwdBtn";
  741. };
  742. new GuiBitmapButtonCtrl() {
  743. BitmapAsset = "ToolsModule:pause_btn_n_image";
  744. groupNum = "0";
  745. buttonType = "RadioButton";
  746. position = "1226 583";
  747. extent = "18 18";
  748. horizSizing = "left";
  749. vertSizing = "top";
  750. profile = "ToolsGuiButtonProfile";
  751. command = "ShapeEdAnimWindow-->pauseBtn.performClick();";
  752. tooltipProfile = "ToolsGuiToolTipProfile";
  753. tooltip = "Toggle Pause (SPACE)";
  754. internalName = "pauseBtn";
  755. };
  756. new GuiBitmapButtonCtrl() {
  757. BitmapAsset = "ToolsModule:playfwd_btn_n_image";
  758. groupNum = "0";
  759. buttonType = "RadioButton";
  760. position = "1244 583";
  761. extent = "18 18";
  762. horizSizing = "left";
  763. vertSizing = "top";
  764. profile = "ToolsGuiButtonProfile";
  765. command = "ShapeEdAnimWindow-->playFwdBtn.performClick();";
  766. tooltipProfile = "ToolsGuiToolTipProfile";
  767. tooltip = "Play forwards";
  768. internalName = "playFwdBtn";
  769. };
  770. new GuiCheckBoxCtrl() {
  771. text = " Transition lasts";
  772. position = "3 606";
  773. extent = "88 13";
  774. vertSizing = "top";
  775. profile = "ToolsGuiCheckBoxProfile";
  776. tooltipProfile = "ToolsGuiToolTipProfile";
  777. tooltip = "Controls whether the thread will smoothly transition when a new sequence is selected";
  778. internalName = "useTransitions";
  779. };
  780. new GuiTextEditCtrl() {
  781. text = "0.5";
  782. position = "98 603";
  783. extent = "1109 20";
  784. horizSizing = "width";
  785. vertSizing = "top";
  786. profile = "ToolsGuiTextEditProfile";
  787. tooltipProfile = "ToolsGuiToolTipProfile";
  788. tooltip = "Number of seconds over which to transition to the new sequence";
  789. internalName = "transitionTime";
  790. };
  791. new GuiTextCtrl() {
  792. text = "seconds";
  793. position = "1213 604";
  794. extent = "44 16";
  795. horizSizing = "left";
  796. vertSizing = "top";
  797. profile = "ToolsGuiTextProfile";
  798. tooltipProfile = "GuiToolTipProfile";
  799. };
  800. new GuiTextCtrl() {
  801. text = "Transition to";
  802. position = "4 625";
  803. extent = "62 16";
  804. vertSizing = "top";
  805. profile = "ToolsGuiTextProfile";
  806. tooltipProfile = "GuiToolTipProfile";
  807. };
  808. new GuiPopUpMenuCtrl() {
  809. text = "synched position";
  810. position = "68 624";
  811. extent = "1193 18";
  812. horizSizing = "width";
  813. vertSizing = "top";
  814. profile = "ToolsGuiPopUpMenuProfile";
  815. tooltipProfile = "GuiToolTipProfile";
  816. tooltip = "Select the start position of the new sequence";
  817. internalName = "transitionTo";
  818. };
  819. new GuiTextCtrl() {
  820. text = "Target anim";
  821. position = "4 646";
  822. extent = "58 16";
  823. vertSizing = "top";
  824. profile = "ToolsGuiTextProfile";
  825. tooltipProfile = "GuiToolTipProfile";
  826. };
  827. new GuiPopUpMenuCtrl() {
  828. text = "plays during transition";
  829. position = "68 645";
  830. extent = "1193 18";
  831. horizSizing = "width";
  832. vertSizing = "top";
  833. profile = "ToolsGuiPopUpMenuProfile";
  834. tooltipProfile = "GuiToolTipProfile";
  835. tooltip = "Select the initial play state of the new sequence";
  836. internalName = "transitionTarget";
  837. };
  838. };
  839. };
  840. new GuiTabPageCtrl() {
  841. text = "Collision";
  842. position = "0 19";
  843. extent = "1262 663";
  844. minExtent = "0 -500";
  845. horizSizing = "width";
  846. vertSizing = "height";
  847. profile = "ToolsGuiTabPageProfile";
  848. tooltipProfile = "ToolsGuiToolTipProfile";
  849. new GuiContainer(ShapeEdColWindow) {
  850. docking = "Client";
  851. extent = "1262 663";
  852. minExtent = "8 8";
  853. horizSizing = "width";
  854. profile = "ToolsGuiDefaultProfile";
  855. tooltipProfile = "ToolsGuiToolTipProfile";
  856. new GuiTextCtrl() {
  857. text = "Fit Type";
  858. position = "5 5";
  859. extent = "70 16";
  860. profile = "ToolsGuiTextRightProfile";
  861. tooltipProfile = "GuiToolTipProfile";
  862. };
  863. new GuiPopUpMenuCtrl() {
  864. position = "85 4";
  865. extent = "170 18";
  866. profile = "ToolsGuiPopUpMenuProfile";
  867. tooltipProfile = "GuiToolTipProfile";
  868. tooltip = "Select the method used to auto-generate the collision geometry";
  869. internalName = "colType";
  870. };
  871. new GuiTextCtrl() {
  872. text = "Fit Target";
  873. position = "5 25";
  874. extent = "70 16";
  875. profile = "ToolsGuiTextRightProfile";
  876. tooltipProfile = "GuiToolTipProfile";
  877. };
  878. new GuiPopUpMenuCtrl() {
  879. position = "85 24";
  880. extent = "170 18";
  881. profile = "ToolsGuiPopUpMenuProfile";
  882. tooltipProfile = "GuiToolTipProfile";
  883. tooltip = "Select the object to fit collision geometry to";
  884. internalName = "colTarget";
  885. };
  886. new GuiTextCtrl() {
  887. text = "Fill Mode";
  888. position = "5 44";
  889. extent = "70 16";
  890. profile = "ToolsGuiTextRightProfile";
  891. tooltipProfile = "GuiToolTipProfile";
  892. };
  893. new GuiPopUpMenuCtrl() {
  894. position = "85 43";
  895. extent = "170 18";
  896. profile = "ToolsGuiPopUpMenuProfile";
  897. tooltipProfile = "GuiToolTipProfile";
  898. tooltip = "Select the object to fit collision geometry to";
  899. internalName = "fillMode";
  900. };
  901. new GuiTextCtrl() {
  902. text = "Max Depth";
  903. position = "5 71";
  904. extent = "70 16";
  905. profile = "ToolsGuiTextRightProfile";
  906. tooltipProfile = "GuiToolTipProfile";
  907. };
  908. new GuiSliderCtrl() {
  909. range = "2 64";
  910. ticks = "4";
  911. value = "4";
  912. position = "80 72";
  913. extent = "1150 14";
  914. horizSizing = "width";
  915. profile = "ToolsGuiSliderBoxProfile";
  916. altCommand = "ShapeEdColWindow-->hullDepthText.setText( mFloor($ThisControl.getValue()) );";
  917. tooltipProfile = "ToolsGuiToolTipProfile";
  918. tooltip = "Maximum hull split depth";
  919. internalName = "hullDepth";
  920. };
  921. new GuiTextCtrl() {
  922. text = "4";
  923. position = "320 71";
  924. extent = "25 16";
  925. profile = "ToolsGuiTextRightProfile";
  926. tooltipProfile = "GuiToolTipProfile";
  927. internalName = "hullDepthText";
  928. };
  929. new GuiTextCtrl() {
  930. text = "Error %";
  931. position = "5 92";
  932. extent = "70 16";
  933. profile = "ToolsGuiTextRightProfile";
  934. tooltipProfile = "GuiToolTipProfile";
  935. };
  936. new GuiSliderCtrl() {
  937. range = "0.001 10";
  938. ticks = "4";
  939. value = "10";
  940. position = "80 93";
  941. extent = "1150 14";
  942. horizSizing = "width";
  943. profile = "ToolsGuiSliderBoxProfile";
  944. altCommand = "ShapeEdColWindow-->hullMergeText.setText( mFloor($ThisControl.getValue()) );";
  945. tooltipProfile = "ToolsGuiToolTipProfile";
  946. tooltip = "Hull volume merge threshold";
  947. internalName = "hullMergeThreshold";
  948. };
  949. new GuiTextCtrl() {
  950. text = "10";
  951. position = "320 92";
  952. extent = "25 16";
  953. profile = "ToolsGuiTextRightProfile";
  954. tooltipProfile = "GuiToolTipProfile";
  955. internalName = "hullMergeText";
  956. };
  957. new GuiTextCtrl() {
  958. text = "Max Hulls";
  959. position = "5 113";
  960. extent = "70 16";
  961. profile = "ToolsGuiTextRightProfile";
  962. tooltipProfile = "GuiToolTipProfile";
  963. };
  964. new GuiSliderCtrl() {
  965. range = "1 100";
  966. ticks = "4";
  967. value = "30";
  968. position = "80 114";
  969. extent = "1150 14";
  970. horizSizing = "width";
  971. profile = "ToolsGuiSliderBoxProfile";
  972. altCommand = "ShapeEdColWindow-->hullConcaveText.setText( mFloor($ThisControl.getValue()) );";
  973. tooltipProfile = "ToolsGuiToolTipProfile";
  974. tooltip = "Hull concavity threshold";
  975. internalName = "hullConcaveThreshold";
  976. };
  977. new GuiTextCtrl() {
  978. text = "30";
  979. position = "320 113";
  980. extent = "25 16";
  981. profile = "ToolsGuiTextRightProfile";
  982. tooltipProfile = "GuiToolTipProfile";
  983. internalName = "hullConcaveText";
  984. };
  985. new GuiTextCtrl() {
  986. text = "Max Verts";
  987. position = "5 134";
  988. extent = "70 16";
  989. profile = "ToolsGuiTextRightProfile";
  990. tooltipProfile = "GuiToolTipProfile";
  991. };
  992. new GuiSliderCtrl() {
  993. range = "8 64";
  994. ticks = "4";
  995. value = "32";
  996. position = "80 135";
  997. extent = "1150 14";
  998. horizSizing = "width";
  999. profile = "ToolsGuiSliderBoxProfile";
  1000. altCommand = "ShapeEdColWindow-->hullMaxVertsText.setText( mFloor($ThisControl.getValue()) );";
  1001. tooltipProfile = "ToolsGuiToolTipProfile";
  1002. tooltip = "Maximum number of verts in a convex hull";
  1003. internalName = "hullMaxVerts";
  1004. };
  1005. new GuiTextCtrl() {
  1006. text = "32";
  1007. position = "320 134";
  1008. extent = "25 16";
  1009. profile = "ToolsGuiTextRightProfile";
  1010. tooltipProfile = "GuiToolTipProfile";
  1011. internalName = "hullMaxVertsText";
  1012. };
  1013. new GuiTextCtrl() {
  1014. text = "Box %";
  1015. position = "5 155";
  1016. extent = "70 16";
  1017. profile = "ToolsGuiTextRightProfile";
  1018. tooltipProfile = "GuiToolTipProfile";
  1019. };
  1020. new GuiSliderCtrl() {
  1021. range = "0 100";
  1022. ticks = "4";
  1023. value = "30";
  1024. position = "80 156";
  1025. extent = "1150 14";
  1026. horizSizing = "width";
  1027. profile = "ToolsGuiSliderBoxProfile";
  1028. altCommand = "ShapeEdColWindow-->hullMaxBoxErrorText.setText( mFloor($ThisControl.getValue()) );";
  1029. tooltipProfile = "ToolsGuiToolTipProfile";
  1030. tooltip = "Maximum box volume error %";
  1031. internalName = "hullMaxBoxError";
  1032. };
  1033. new GuiTextCtrl() {
  1034. text = "30";
  1035. position = "320 155";
  1036. extent = "25 16";
  1037. profile = "ToolsGuiTextRightProfile";
  1038. tooltipProfile = "GuiToolTipProfile";
  1039. internalName = "hullMaxBoxErrorText";
  1040. };
  1041. new GuiTextCtrl() {
  1042. text = "Sphere %";
  1043. position = "5 176";
  1044. extent = "70 16";
  1045. profile = "ToolsGuiTextRightProfile";
  1046. tooltipProfile = "GuiToolTipProfile";
  1047. };
  1048. new GuiSliderCtrl() {
  1049. range = "0 100";
  1050. ticks = "4";
  1051. value = "30";
  1052. position = "80 177";
  1053. extent = "1150 14";
  1054. horizSizing = "width";
  1055. profile = "ToolsGuiSliderBoxProfile";
  1056. altCommand = "ShapeEdColWindow-->hullMaxSphereErrorText.setText( mFloor($ThisControl.getValue()) );";
  1057. tooltipProfile = "ToolsGuiToolTipProfile";
  1058. tooltip = "Maximum sphere volume error %";
  1059. internalName = "hullMaxSphereError";
  1060. };
  1061. new GuiTextCtrl() {
  1062. text = "30";
  1063. position = "320 176";
  1064. extent = "25 16";
  1065. profile = "ToolsGuiTextRightProfile";
  1066. tooltipProfile = "GuiToolTipProfile";
  1067. internalName = "hullMaxSphereErrorText";
  1068. };
  1069. new GuiTextCtrl() {
  1070. text = "Capsule %";
  1071. position = "5 197";
  1072. extent = "70 16";
  1073. profile = "ToolsGuiTextRightProfile";
  1074. tooltipProfile = "GuiToolTipProfile";
  1075. };
  1076. new GuiSliderCtrl() {
  1077. range = "0 100";
  1078. ticks = "4";
  1079. value = "30";
  1080. position = "80 198";
  1081. extent = "1150 14";
  1082. horizSizing = "width";
  1083. profile = "ToolsGuiSliderBoxProfile";
  1084. altCommand = "ShapeEdColWindow-->hullMaxCapsuleErrorText.setText( mFloor($ThisControl.getValue()) );";
  1085. tooltipProfile = "ToolsGuiToolTipProfile";
  1086. tooltip = "Maximum capsule volume error %";
  1087. internalName = "hullMaxCapsuleError";
  1088. };
  1089. new GuiTextCtrl() {
  1090. text = "30";
  1091. position = "320 197";
  1092. extent = "25 16";
  1093. profile = "ToolsGuiTextRightProfile";
  1094. tooltipProfile = "GuiToolTipProfile";
  1095. internalName = "hullMaxCapsuleErrorText";
  1096. };
  1097. new GuiButtonCtrl() {
  1098. text = "Update Hulls";
  1099. position = "7 224";
  1100. extent = "100 20";
  1101. profile = "ToolsGuiButtonProfile";
  1102. command = "ShapeEdColWindow.editCollision();";
  1103. tooltipProfile = "ToolsGuiToolTipProfile";
  1104. tooltip = "Update the convex hull(s)";
  1105. };
  1106. new GuiButtonCtrl() {
  1107. text = "Revert Changes";
  1108. position = "115 224";
  1109. extent = "100 20";
  1110. profile = "ToolsGuiButtonProfile";
  1111. command = "ShapeEdColWindow.update_onCollisionChanged();";
  1112. tooltipProfile = "ToolsGuiToolTipProfile";
  1113. tooltip = "Revert changes to settings";
  1114. };
  1115. new GuiBitmapCtrl() {
  1116. BitmapAsset = "ToolsModule:inactive_overlay_image";
  1117. position = "0 47";
  1118. extent = "199 178";
  1119. profile = "ToolsGuiDefaultProfile";
  1120. visible = "0";
  1121. tooltipProfile = "GuiToolTipProfile";
  1122. internalName = "hullInactive";
  1123. hidden = "1";
  1124. };
  1125. };
  1126. };
  1127. };
  1128. };
  1129. //--- OBJECT WRITE END ---
  1130. new GuiControl(ShapeEdWaitGui,EditorGuiGroup) {
  1131. isContainer = "1";
  1132. Profile = "ToolsGuiOverlayProfile";
  1133. HorizSizing = "right";
  1134. VertSizing = "bottom";
  1135. position = "0 0";
  1136. Extent = "800 600";
  1137. MinExtent = "8 2";
  1138. canSave = "1";
  1139. Visible = "1";
  1140. tooltipprofile = "ToolsGuiToolTipProfile";
  1141. hovertime = "1000";
  1142. canSaveDynamicFields = "1";
  1143. new GuiControl() {
  1144. isContainer = "1";
  1145. Profile = "editorMenu_wBorderProfile";
  1146. HorizSizing = "center";
  1147. VertSizing = "center";
  1148. position = "277 271";
  1149. Extent = "245 57";
  1150. MinExtent = "8 2";
  1151. canSave = "1";
  1152. Visible = "1";
  1153. tooltipprofile = "ToolsGuiToolTipProfile";
  1154. hovertime = "1000";
  1155. internalName = "Dialog";
  1156. canSaveDynamicFields = "0";
  1157. new GuiTextCtrl() {
  1158. text = "";
  1159. maxLength = "1024";
  1160. Margin = "0 0 0 0";
  1161. Padding = "0 0 0 0";
  1162. AnchorTop = "1";
  1163. AnchorBottom = "0";
  1164. AnchorLeft = "1";
  1165. AnchorRight = "0";
  1166. isContainer = "0";
  1167. Profile = "ToolsGuiTextBoldCenterProfile";
  1168. HorizSizing = "width";
  1169. VertSizing = "center";
  1170. position = "5 19";
  1171. Extent = "236 18";
  1172. MinExtent = "8 2";
  1173. canSave = "1";
  1174. Visible = "1";
  1175. tooltipprofile = "ToolsGuiToolTipProfile";
  1176. hovertime = "1000";
  1177. canSaveDynamicFields = "0";
  1178. internalName = "message";
  1179. };
  1180. };
  1181. };
  1182. function ShapeEdWaitGui::show(%this, %text)
  1183. {
  1184. %this-->message.setText( %text );
  1185. Canvas.pushDialog( %this );
  1186. Canvas.repaint();
  1187. }
  1188. function ShapeEdWaitGui::hide(%this)
  1189. {
  1190. Canvas.popDialog( %this );
  1191. }
  1192. function ShapeEdWaitGui::onWake(%this)
  1193. {
  1194. %res = %this.getExtent();
  1195. %resX = getWord( %res, 0 );
  1196. %resY = getWord( %res, 1 );
  1197. %dialog = %this-->Dialog;
  1198. %dialogExtent = %dialog.getExtent();
  1199. %dialogWidth = getWord( %dialogExtent, 0 );
  1200. %dialogHeight = getWord( %dialogExtent, 1 );
  1201. %dialogPostion = %dialog.getPosition();
  1202. %posX = ( %resX / 2 ) - ( %dialogWidth / 2 );
  1203. %posY = ( %resY / 2 ) - ( %dialogHeight / 2 );
  1204. %dialog.setPosition( %posX, %posY );
  1205. }