public void SetNoisePeriod(TextSlider slider) { var tool = Tools[(int)_selectedTool] as SelectionTool; if (tool != null) { tool.SelectionOptions.NoisePeriod = slider.value; } }
public void SetStrength(TextSlider slider) { var tool = Tools[(int)_selectedTool] as ElevationToolOptions; if (tool != null) { tool.Strength = slider.value; } }
public void SetBrushSize(TextSlider slider) { var tool = Tools[(int)_selectedTool] as SelectionTool; if (tool != null) { tool.SelectionOptions.BrushSize = slider.value; } }
public void SetFalloff(TextSlider slider) { var tool = Tools[(int)_selectedTool] as SelectionTool; if (tool != null) { tool.SelectionOptions.Falloff = 1.0f / slider.value; } }
public void SetElevationTarget(TextSlider slider) { var tool = Tools[(int)_selectedTool] as ElevationToolOptions; if (tool != null) { tool.TargetElevation = slider.value; } }