예제 #1
0
        public void SetNoisePeriod(TextSlider slider)
        {
            var tool = Tools[(int)_selectedTool] as SelectionTool;

            if (tool != null)
            {
                tool.SelectionOptions.NoisePeriod = slider.value;
            }
        }
예제 #2
0
        public void SetStrength(TextSlider slider)
        {
            var tool = Tools[(int)_selectedTool] as ElevationToolOptions;

            if (tool != null)
            {
                tool.Strength = slider.value;
            }
        }
예제 #3
0
        public void SetBrushSize(TextSlider slider)
        {
            var tool = Tools[(int)_selectedTool] as SelectionTool;

            if (tool != null)
            {
                tool.SelectionOptions.BrushSize = slider.value;
            }
        }
예제 #4
0
        public void SetFalloff(TextSlider slider)
        {
            var tool = Tools[(int)_selectedTool] as SelectionTool;

            if (tool != null)
            {
                tool.SelectionOptions.Falloff = 1.0f / slider.value;
            }
        }
예제 #5
0
        public void SetElevationTarget(TextSlider slider)
        {
            var tool = Tools[(int)_selectedTool] as ElevationToolOptions;

            if (tool != null)
            {
                tool.TargetElevation = slider.value;
            }
        }