// 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 = ""; 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 ); }