| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231 |
- // Let's check if the ShapeEdAdvancedWindow can be stacked in the side panel
- if (getWord($pref::Video::mode, 1) > 899 && isObject(ShapeEdSelectWindow) && isObject(ShapeEdPropWindow))
- {
- $ShapeEdAdvancedWindowPos = getWord($pref::Video::mode, 0) - 360 SPC getWord(ShapeEdSelectWindow.extent, 1) + getWord(ShapeEdPropWindow.extent, 1) + getWord(EditorGuiToolbar.extent, 1) + 12 - 7;
- }
- else
- {
- $ShapeEdAdvancedWindowPos = getWord($pref::Video::mode, 0) - 720 SPC getWord(EditorGuiToolbar.extent, 1) + 6 - 7;
- }
- //--- OBJECT WRITE BEGIN ---
- $guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow,EditorGuiGroup) {
- text = ":: Shape Editor - Advanced Properties";
- resizeWidth = "0";
- resizeHeight = "0";
- canMove = "1";
- canClose = "1";
- canMinimize = "0";
- canMaximize = "0";
- closeCommand = "ShapeEditorToolbar-->showAdvanced.performClick();";
- EdgeSnap = "1";
- Margin = "4 4 4 4";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- Position = $ShapeEdAdvancedWindowPos;
- extent = "360 300";
- MinExtent = "300 300";
- HorizSizing = "windowRelative";
- VertSizing = "windowRelative";
- Profile = "ToolsGuiWindowProfile";
- Visible = "0";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- isContainer = "1";
- canSave = "1";
- canSaveDynamicFields = "0";
- minSize = "50 50";
- new GuiTabBookCtrl() {
- tabMargin = "6";
- minTabWidth = "32";
- tabHeight = "20";
- selectedPage = "3";
- docking = "Client";
- margin = "3 1 3 3";
- position = "9 29";
- extent = "1262 682";
- minExtent = "8 -500";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiTabBookProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- internalName = "tabBook";
- new GuiTabPageCtrl() {
- text = "Details";
- position = "0 19";
- extent = "1262 663";
- minExtent = "0 -500";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiTabPageProfile";
- visible = "0";
- tooltipProfile = "ToolsGuiToolTipProfile";
- hidden = "1";
- new GuiContainer() {
- docking = "Client";
- extent = "1262 663";
- minExtent = "8 8";
- horizSizing = "width";
- profile = "ToolsGuiDefaultProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiContainer() {
- extent = "1262 596";
- horizSizing = "width";
- vertSizing = "height";
- profile = "inspectorStyleRolloutDarkProfile";
- tooltipProfile = "GuiToolTipProfile";
- new GuiTextCtrl() {
- text = "Levels:";
- position = "4 1";
- extent = "1332 16";
- horizSizing = "width";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiCheckBoxCtrl() {
- text = "Levels";
- position = "5 22";
- extent = "49 13";
- profile = "ToolsGuiCheckBoxProfile";
- variable = "ShapeEdShapeView.fixedDetail";
- command = "ShapeEdAdvancedWindow-->detailSlider.setActive($ThisControl.getValue()); ShapeEdAdvancedWindow-->levelsInactive.setVisible( !$ThisControl.getValue() );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Allow the slider to select the current detail level";
- };
- new GuiSliderCtrl() {
- range = "0 0";
- ticks = "1";
- snap = "1";
- value = "0";
- position = "57 22";
- extent = "1178 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- variable = "ShapeEdShapeView.currentDL";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Drag the slider to change the current detail level";
- internalName = "detailSlider";
- };
- new GuiBitmapCtrl() {
- BitmapAsset = "ToolsModule:inactive_overlay_image";
- position = "57 19";
- extent = "290 20";
- profile = "GuiDefaultProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Levels needs to be selected to enable the detail level slider";
- hovertime = "500";
- isContainer = "1";
- internalName = "levelsInactive";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "1242 20";
- extent = "15 16";
- horizSizing = "left";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.currentDL";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Index of the current detail level";
- isContainer = "0";
- };
- new GuiTextCtrl() {
- text = "Polys";
- position = "37 40";
- extent = "26 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "77 40";
- extent = "40 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.detailPolys";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of polygons in the current detail level";
- };
- new GuiTextCtrl() {
- text = "Size";
- position = "127 40";
- extent = "24 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextEditCtrl() {
- position = "160 39";
- extent = "35 20";
- profile = "ToolsGuiTextEditProfile";
- variable = "ShapeEdShapeView.detailSize";
- altCommand = "ShapeEdAdvancedWindow.onEditDetailSize();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Edit this value to change the size of the current detail";
- internalName = "detailSize";
- };
- new GuiTextCtrl() {
- text = "Pixels";
- position = "35 60";
- extent = "28 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "77 60";
- extent = "40 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.pixelSize";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Current size (in pixels) of the shape";
- };
- new GuiTextCtrl() {
- text = "Distance";
- position = "109 60";
- extent = "42 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "5";
- position = "160 60";
- extent = "38 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.orbitDist";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Current distance from the shape to the camera";
- };
- new GuiTextCtrl() {
- text = "Materials";
- position = "20 80";
- extent = "43 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "77 80";
- extent = "40 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.numMaterials";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of materials used by all meshes at this detail level";
- };
- new GuiTextCtrl() {
- text = "Bones";
- position = "120 80";
- extent = "31 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "160 80";
- extent = "38 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.numBones";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of bones at this detail level (skins only)";
- };
- new GuiTextCtrl() {
- text = "Primitives";
- position = "19 100";
- extent = "44 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "77 100";
- extent = "40 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.numDrawCalls";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Total number of mesh primitives (triangle lists) at this detail level";
- };
- new GuiTextCtrl() {
- text = "Weights";
- position = "109 100";
- extent = "42 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "160 100";
- extent = "38 16";
- profile = "ToolsGuiTextProfile";
- variable = "ShapeEdShapeView.numWeights";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of vertex weights at this detail level (skins only)";
- };
- new GuiTextCtrl() {
- text = "Col Meshes";
- position = "7 120";
- extent = "56 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "74 120";
- extent = "40 16";
- profile = "GuiTextProfile";
- variable = "ShapeEdShapeView.colMeshes";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "Col Polys";
- position = "108 120";
- extent = "43 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "0";
- position = "160 120";
- extent = "38 16";
- profile = "GuiTextProfile";
- variable = "ShapeEdShapeView.colPolys";
- tooltipProfile = "GuiToolTipProfile";
- };
- };
- new GuiContainer() {
- position = "0 138";
- extent = "1262 90";
- minExtent = "8 8";
- horizSizing = "width";
- profile = "inspectorStyleRolloutDarkProfile";
- tooltipProfile = "GuiToolTipProfile";
- new GuiTextCtrl() {
- text = "Imposters:";
- position = "5 1";
- extent = "192 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiCheckBoxCtrl() {
- text = "Use Imposters";
- position = "72 2";
- extent = "83 13";
- profile = "ToolsGuiCheckBoxProfile";
- command = "ShapeEdDetails.onToggleImposter( $ThisControl.getValue() );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Controls whether this shape uses an imposter detail level";
- internalName = "bbUseImposters";
- };
- new GuiTextCtrl() {
- text = "Detail Level";
- position = "6 23";
- extent = "57 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- isContainer = "0";
- };
- new GuiTextEditCtrl() {
- position = "68 22";
- extent = "36 20";
- profile = "ToolsGuiTextEditProfile";
- altCommand = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Specifies the detail level used to generate the imposters";
- internalName = "bbDetailLevel";
- };
- new GuiTextCtrl() {
- text = "Dimension";
- position = "6 43";
- extent = "57 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextEditCtrl() {
- position = "72 43";
- extent = "36 20";
- profile = "ToolsGuiTextEditProfile";
- altCommand = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Specifies the dimension (width/height) of the imposters in pixels";
- internalName = "bbDimension";
- };
- new GuiTextCtrl() {
- text = "X Steps";
- position = "6 65";
- extent = "57 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- new GuiTextEditCtrl() {
- position = "68 64";
- extent = "36 20";
- profile = "ToolsGuiTextEditProfile";
- altCommand = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of steps in the horizontal axis";
- internalName = "bbEquatorSteps";
- };
- new GuiCheckBoxCtrl() {
- text = "Include Poles";
- position = "113 24";
- extent = "83 18";
- profile = "ToolsGuiCheckBoxProfile";
- command = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Specifies whether to include the poles (top and bottom) of the shape";
- internalName = "bbIncludePoles";
- };
- new GuiTextCtrl() {
- text = "Y Steps";
- position = "116 44";
- extent = "41 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of steps in the vertical axis";
- isContainer = "0";
- };
- new GuiTextEditCtrl() {
- position = "161 43";
- extent = "36 20";
- profile = "ToolsGuiTextEditProfile";
- altCommand = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- internalName = "bbPolarSteps";
- };
- new GuiTextCtrl() {
- text = "Y Angle";
- position = "116 65";
- extent = "41 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Polar Angle - Y axis";
- };
- new GuiTextEditCtrl() {
- position = "161 64";
- extent = "36 20";
- profile = "ToolsGuiTextEditProfile";
- altCommand = "ShapeEdDetails.onEditImposter();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- internalName = "bbPolarAngle";
- };
- new GuiBitmapCtrl() {
- BitmapAsset = "ToolsModule:inactive_overlay_image";
- position = "4 18";
- extent = "193 68";
- profile = "GuiDefaultProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Imposters must be enabled, and an imposter detail level selected to edit these properties";
- hovertime = "500";
- isContainer = "1";
- internalName = "imposterInactive";
- };
- };
- };
- };
- new GuiTabPageCtrl() {
- text = "Mounting";
- position = "0 19";
- extent = "1262 663";
- minExtent = "0 -500";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiTabPageProfile";
- visible = "0";
- tooltipProfile = "ToolsGuiToolTipProfile";
- hidden = "1";
- new GuiControl() {
- extent = "294 224";
- profile = "ToolsGuiScrollProfile";
- tooltipProfile = "GuiToolTipProfile";
- isContainer = "1";
- };
- new GuiContainer(ShapeEdMountWindow) {
- docking = "None";
- extent = "1262 663";
- minExtent = "8 8";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiDefaultProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiCheckBoxCtrl() {
- text = " Render mounted shapes";
- position = "2 2";
- extent = "200 13";
- profile = "ToolsGuiCheckBoxProfile";
- variable = "ShapeEdShapeView.renderMounts";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Controls whether mounted shapes will be rendered in the 3D view";
- internalName = "renderMounts";
- };
- new GuiScrollCtrl() {
- hScrollBar = "alwaysOff";
- vScrollBar = "dynamic";
- lockHorizScroll = "1";
- anchorTop = "0";
- position = "0 17";
- extent = "1244 563";
- minExtent = "8 8";
- horizSizing = "width";
- vertSizing = "height";
- profile = "GuiScrollProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiContainer() {
- position = "1 1";
- extent = "1242 560";
- horizSizing = "width";
- vertSizing = "height";
- profile = "inspectorStyleRolloutListProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiTextListCtrl() {
- columns = "-1 0 110 152";
- clipColumnText = "1";
- position = "1 1";
- extent = "1242 11";
- minExtent = "8 11";
- profile = "GuiDefaultProfile";
- command = "ShapeEdMountWindow.update_onMountSelectionChanged();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- internalName = "mountList";
- };
- };
- new GuiContainer() {
- position = "0 579";
- extent = "1244 85";
- horizSizing = "width";
- vertSizing = "top";
- profile = "inspectorStyleRolloutDarkProfile";
- tooltipProfile = "GuiToolTipProfile";
- new GuiTextCtrl() {
- text = "Mount Item";
- position = "5 1";
- extent = "134 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:delete_n_image";
- position = "1224 1";
- extent = "16 16";
- horizSizing = "left";
- profile = "ToolsGuiDefaultProfile";
- command = "ShapeEdMountWindow.unmountShape();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Delete the selected mount item";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:new_n_image";
- position = "1210 1";
- extent = "16 16";
- horizSizing = "left";
- profile = "ToolsGuiDefaultProfile";
- command = "ShapeEdMountWindow.mountShape(-1);";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Mounts a new shape to the current model";
- };
- new GuiTextCtrl() {
- text = "Shape";
- position = "5 21";
- extent = "33 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl(ShapeEdMountShapeMenu) {
- text = "Browse...";
- position = "42 20";
- extent = "1198 18";
- horizSizing = "width";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the model to mount";
- };
- new GuiTextCtrl() {
- text = "Node";
- position = "5 42";
- extent = "33 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- position = "42 41";
- extent = "1104 18";
- horizSizing = "width";
- profile = "ToolsGuiPopUpMenuProfile";
- command = "ShapeEdMountWindow.updateSelectedMount();";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the node on which to mount the model";
- internalName = "mountNode";
- };
- new GuiTextCtrl() {
- text = "Type";
- position = "1152 42";
- extent = "24 16";
- horizSizing = "left";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- text = "Image";
- position = "1180 41";
- extent = "60 18";
- horizSizing = "left";
- profile = "ToolsGuiPopUpMenuProfile";
- command = "ShapeEdMountWindow.updateSelectedMount();";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the type of mounting to use";
- internalName = "mountType";
- };
- new GuiPopUpMenuCtrl() {
- text = "<rootpose>";
- position = "5 62";
- extent = "1141 18";
- horizSizing = "width";
- profile = "ToolsGuiPopUpMenuProfile";
- command = "ShapeEdMountWindow.setMountThreadSequence();";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the sequence to play on the mounted model";
- internalName = "mountSeq";
- };
- new GuiSliderCtrl(ShapeEdMountSeqSlider) {
- ticks = "0";
- value = "0";
- position = "109 64";
- extent = "1110 14";
- horizSizing = "width";
- vertSizing = "top";
- profile = "ToolsGuiSliderBoxProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Drag the slider to scrub through the sequence keyframes";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:playfwd_btn_n_image";
- groupNum = "0";
- buttonType = "ToggleButton";
- position = "1222 62";
- extent = "18 18";
- horizSizing = "left";
- vertSizing = "top";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdMountWindow.toggleMountThreadPlayback();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Play forwards";
- internalName = "mountPlayBtn";
- };
- };
- };
- };
- new GuiTabPageCtrl() {
- text = "Threads";
- position = "0 19";
- extent = "1262 663";
- minExtent = "0 -500";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiTabPageProfile";
- visible = "0";
- tooltipProfile = "ToolsGuiToolTipProfile";
- hidden = "1";
- new GuiContainer(ShapeEdThreadWindow) {
- docking = "Client";
- extent = "1262 663";
- minExtent = "8 8";
- horizSizing = "width";
- profile = "ToolsGuiDefaultProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiContainer() {
- extent = "1263 580";
- horizSizing = "width";
- vertSizing = "height";
- profile = "inspectorStyleRolloutDarkProfile";
- tooltipProfile = "GuiToolTipProfile";
- new GuiTextCtrl() {
- text = "Thread";
- position = "4 1";
- extent = "41 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiScrollCtrl() {
- hScrollBar = "alwaysOff";
- vScrollBar = "dynamic";
- lockHorizScroll = "1";
- anchorTop = "0";
- position = "0 17";
- extent = "47 563";
- minExtent = "8 8";
- vertSizing = "height";
- profile = "GuiScrollProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiTextListCtrl(ShapeEdThreadList) {
- clipColumnText = "1";
- position = "1 1";
- extent = "45 11";
- minExtent = "8 11";
- profile = "GuiDefaultProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- };
- };
- new GuiTextCtrl() {
- text = "Sequence";
- position = "52 1";
- extent = "53 16";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiScrollCtrl() {
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- lockHorizScroll = "1";
- anchorTop = "0";
- position = "46 17";
- extent = "1262 563";
- minExtent = "8 8";
- horizSizing = "width";
- vertSizing = "height";
- profile = "GuiScrollProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiTextListCtrl() {
- clipColumnText = "1";
- position = "1 1";
- extent = "1260 11";
- minExtent = "8 11";
- profile = "GuiDefaultProfile";
- command = "ShapeEdSequenceList.setSelectedById( $ThisControl.getSelectedId() );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- internalName = "seqList";
- };
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:delete_n_image";
- position = "1244 1";
- extent = "16 16";
- horizSizing = "left";
- profile = "ToolsGuiDefaultProfile";
- command = "ShapeEdThreadWindow.onRemoveThread();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Delete the selected thread";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:new_n_image";
- position = "1231 1";
- extent = "16 16";
- horizSizing = "left";
- profile = "ToolsGuiDefaultProfile";
- command = "ShapeEdThreadWindow.onAddThread();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Add a new thread";
- };
- };
- new GuiSliderCtrl(ShapeEdThreadSlider) {
- range = "0 0";
- ticks = "0";
- value = "0";
- position = "29 585";
- extent = "1193 14";
- horizSizing = "width";
- vertSizing = "top";
- profile = "ToolsGuiSliderBoxProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Drag the slider to scrub through the sequence keyframes";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:playbkwd_btn_n_image";
- groupNum = "0";
- buttonType = "RadioButton";
- position = "6 583";
- extent = "18 18";
- vertSizing = "top";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdAnimWindow-->playBkwdBtn.performClick();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Play backwards";
- internalName = "playBkwdBtn";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:pause_btn_n_image";
- groupNum = "0";
- buttonType = "RadioButton";
- position = "1226 583";
- extent = "18 18";
- horizSizing = "left";
- vertSizing = "top";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdAnimWindow-->pauseBtn.performClick();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Toggle Pause (SPACE)";
- internalName = "pauseBtn";
- };
- new GuiBitmapButtonCtrl() {
- BitmapAsset = "ToolsModule:playfwd_btn_n_image";
- groupNum = "0";
- buttonType = "RadioButton";
- position = "1244 583";
- extent = "18 18";
- horizSizing = "left";
- vertSizing = "top";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdAnimWindow-->playFwdBtn.performClick();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Play forwards";
- internalName = "playFwdBtn";
- };
- new GuiCheckBoxCtrl() {
- text = " Transition lasts";
- position = "3 606";
- extent = "88 13";
- vertSizing = "top";
- profile = "ToolsGuiCheckBoxProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Controls whether the thread will smoothly transition when a new sequence is selected";
- internalName = "useTransitions";
- };
- new GuiTextEditCtrl() {
- text = "0.5";
- position = "98 603";
- extent = "1109 20";
- horizSizing = "width";
- vertSizing = "top";
- profile = "ToolsGuiTextEditProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Number of seconds over which to transition to the new sequence";
- internalName = "transitionTime";
- };
- new GuiTextCtrl() {
- text = "seconds";
- position = "1213 604";
- extent = "44 16";
- horizSizing = "left";
- vertSizing = "top";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiTextCtrl() {
- text = "Transition to";
- position = "4 625";
- extent = "62 16";
- vertSizing = "top";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- text = "synched position";
- position = "68 624";
- extent = "1193 18";
- horizSizing = "width";
- vertSizing = "top";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the start position of the new sequence";
- internalName = "transitionTo";
- };
- new GuiTextCtrl() {
- text = "Target anim";
- position = "4 646";
- extent = "58 16";
- vertSizing = "top";
- profile = "ToolsGuiTextProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- text = "plays during transition";
- position = "68 645";
- extent = "1193 18";
- horizSizing = "width";
- vertSizing = "top";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the initial play state of the new sequence";
- internalName = "transitionTarget";
- };
- };
- };
- new GuiTabPageCtrl() {
- text = "Collision";
- position = "0 19";
- extent = "1262 663";
- minExtent = "0 -500";
- horizSizing = "width";
- vertSizing = "height";
- profile = "ToolsGuiTabPageProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiContainer(ShapeEdColWindow) {
- docking = "Client";
- extent = "1262 663";
- minExtent = "8 8";
- horizSizing = "width";
- profile = "ToolsGuiDefaultProfile";
- tooltipProfile = "ToolsGuiToolTipProfile";
- new GuiTextCtrl() {
- text = "Fit Type";
- position = "5 5";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- position = "85 4";
- extent = "170 18";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the method used to auto-generate the collision geometry";
- internalName = "colType";
- };
- new GuiTextCtrl() {
- text = "Fit Target";
- position = "5 25";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- position = "85 24";
- extent = "170 18";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the object to fit collision geometry to";
- internalName = "colTarget";
- };
- new GuiTextCtrl() {
- text = "Fill Mode";
- position = "5 44";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiPopUpMenuCtrl() {
- position = "85 43";
- extent = "170 18";
- profile = "ToolsGuiPopUpMenuProfile";
- tooltipProfile = "GuiToolTipProfile";
- tooltip = "Select the object to fit collision geometry to";
- internalName = "fillMode";
- };
- new GuiTextCtrl() {
- text = "Max Depth";
- position = "5 71";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "2 64";
- ticks = "4";
- value = "4";
- position = "80 72";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullDepthText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Maximum hull split depth";
- internalName = "hullDepth";
- };
- new GuiTextCtrl() {
- text = "4";
- position = "320 71";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullDepthText";
- };
- new GuiTextCtrl() {
- text = "Error %";
- position = "5 92";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "0.001 10";
- ticks = "4";
- value = "10";
- position = "80 93";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullMergeText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Hull volume merge threshold";
- internalName = "hullMergeThreshold";
- };
- new GuiTextCtrl() {
- text = "10";
- position = "320 92";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullMergeText";
- };
- new GuiTextCtrl() {
- text = "Max Hulls";
- position = "5 113";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "1 100";
- ticks = "4";
- value = "30";
- position = "80 114";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullConcaveText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Hull concavity threshold";
- internalName = "hullConcaveThreshold";
- };
- new GuiTextCtrl() {
- text = "30";
- position = "320 113";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullConcaveText";
- };
- new GuiTextCtrl() {
- text = "Max Verts";
- position = "5 134";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "8 64";
- ticks = "4";
- value = "32";
- position = "80 135";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullMaxVertsText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Maximum number of verts in a convex hull";
- internalName = "hullMaxVerts";
- };
- new GuiTextCtrl() {
- text = "32";
- position = "320 134";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullMaxVertsText";
- };
- new GuiTextCtrl() {
- text = "Box %";
- position = "5 155";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "0 100";
- ticks = "4";
- value = "30";
- position = "80 156";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullMaxBoxErrorText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Maximum box volume error %";
- internalName = "hullMaxBoxError";
- };
- new GuiTextCtrl() {
- text = "30";
- position = "320 155";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullMaxBoxErrorText";
- };
- new GuiTextCtrl() {
- text = "Sphere %";
- position = "5 176";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "0 100";
- ticks = "4";
- value = "30";
- position = "80 177";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullMaxSphereErrorText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Maximum sphere volume error %";
- internalName = "hullMaxSphereError";
- };
- new GuiTextCtrl() {
- text = "30";
- position = "320 176";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullMaxSphereErrorText";
- };
- new GuiTextCtrl() {
- text = "Capsule %";
- position = "5 197";
- extent = "70 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- };
- new GuiSliderCtrl() {
- range = "0 100";
- ticks = "4";
- value = "30";
- position = "80 198";
- extent = "1150 14";
- horizSizing = "width";
- profile = "ToolsGuiSliderBoxProfile";
- altCommand = "ShapeEdColWindow-->hullMaxCapsuleErrorText.setText( mFloor($ThisControl.getValue()) );";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Maximum capsule volume error %";
- internalName = "hullMaxCapsuleError";
- };
- new GuiTextCtrl() {
- text = "30";
- position = "320 197";
- extent = "25 16";
- profile = "ToolsGuiTextRightProfile";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullMaxCapsuleErrorText";
- };
- new GuiButtonCtrl() {
- text = "Update Hulls";
- position = "7 224";
- extent = "100 20";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdColWindow.editCollision();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Update the convex hull(s)";
- };
- new GuiButtonCtrl() {
- text = "Revert Changes";
- position = "115 224";
- extent = "100 20";
- profile = "ToolsGuiButtonProfile";
- command = "ShapeEdColWindow.update_onCollisionChanged();";
- tooltipProfile = "ToolsGuiToolTipProfile";
- tooltip = "Revert changes to settings";
- };
- new GuiBitmapCtrl() {
- BitmapAsset = "ToolsModule:inactive_overlay_image";
- position = "0 47";
- extent = "199 178";
- profile = "ToolsGuiDefaultProfile";
- visible = "0";
- tooltipProfile = "GuiToolTipProfile";
- internalName = "hullInactive";
- hidden = "1";
- };
- };
- };
- };
- };
- //--- OBJECT WRITE END ---
- new GuiControl(ShapeEdWaitGui,EditorGuiGroup) {
- isContainer = "1";
- Profile = "ToolsGuiOverlayProfile";
- HorizSizing = "right";
- VertSizing = "bottom";
- position = "0 0";
- Extent = "800 600";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- canSaveDynamicFields = "1";
- new GuiControl() {
- isContainer = "1";
- Profile = "editorMenu_wBorderProfile";
- HorizSizing = "center";
- VertSizing = "center";
- position = "277 271";
- Extent = "245 57";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- internalName = "Dialog";
- canSaveDynamicFields = "0";
- new GuiTextCtrl() {
- text = "";
- maxLength = "1024";
- Margin = "0 0 0 0";
- Padding = "0 0 0 0";
- AnchorTop = "1";
- AnchorBottom = "0";
- AnchorLeft = "1";
- AnchorRight = "0";
- isContainer = "0";
- Profile = "ToolsGuiTextBoldCenterProfile";
- HorizSizing = "width";
- VertSizing = "center";
- position = "5 19";
- Extent = "236 18";
- MinExtent = "8 2";
- canSave = "1";
- Visible = "1";
- tooltipprofile = "ToolsGuiToolTipProfile";
- hovertime = "1000";
- canSaveDynamicFields = "0";
- internalName = "message";
- };
- };
- };
- function ShapeEdWaitGui::show(%this, %text)
- {
- %this-->message.setText( %text );
- Canvas.pushDialog( %this );
- Canvas.repaint();
- }
- function ShapeEdWaitGui::hide(%this)
- {
- Canvas.popDialog( %this );
- }
- function ShapeEdWaitGui::onWake(%this)
- {
- %res = %this.getExtent();
- %resX = getWord( %res, 0 );
- %resY = getWord( %res, 1 );
-
- %dialog = %this-->Dialog;
- %dialogExtent = %dialog.getExtent();
- %dialogWidth = getWord( %dialogExtent, 0 );
- %dialogHeight = getWord( %dialogExtent, 1 );
- %dialogPostion = %dialog.getPosition();
-
- %posX = ( %resX / 2 ) - ( %dialogWidth / 2 );
- %posY = ( %resY / 2 ) - ( %dialogHeight / 2 );
- %dialog.setPosition( %posX, %posY );
- }
|