Example #1
0
        private void AdjustMass2DEraseShapeSizeForMouseWheelScroll(Event e)
        {
            Object2DMassEraseSettings mass2DEraseSettings = _settings.Mass2DEraseSettings;
            int sizeAdjustAmount = (int)(-e.delta.y * mass2DEraseSettings.ScrollWheelCircleRadiusAdjustmentSpeed);

            UndoEx.RecordForToolAction(mass2DEraseSettings);
            mass2DEraseSettings.CircleShapeRadius += sizeAdjustAmount;

            SceneView.RepaintAll();
            Octave3DWorldBuilder.ActiveInstance.Inspector.EditorWindow.Repaint();
        }
        private void EnsureWidthAndHeightAreUpToDate()
        {
            Object2DMassEraseSettings objectMassEraseSettings = ObjectEraserSettings.Get().Mass2DEraseSettings;

            SetWidthHeight(objectMassEraseSettings.CircleShapeRadius, objectMassEraseSettings.CircleShapeRadius);
        }
Example #3
0
 public Object2DMassEraseSettingsView(Object2DMassEraseSettings settings)
 {
     _settings = settings;
 }