shapeEdAdvancedWindow.ed.gui 69 KB

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