public void GUIUpdate() { RenderOptions old = (RenderOptions)_Parent.GetClone(); _Parent._SunHeight = floatEditor1.GetSliderValue(); _Parent._SunDirection = floatEditor2.GetSliderValue(); _Parent._HeadLightStrength = floatEditor3.GetSliderValue(); _Parent._Headlight = checkBox1.IsChecked.HasValue ? checkBox1.IsChecked.Value : false; _Parent._FogStrength = floatEditor4.GetSliderValue(); _Parent._FogSamples = (int)(floatEditor5.GetSliderValue() + 0.5); _Parent._FogColour = colourSelector1.GetColour(); if (_Parent._HeadLightStrength != old._HeadLightStrength || _Parent._Headlight != old._Headlight) { ((MainWindow)System.Windows.Application.Current.MainWindow).SetDirty(); } else { ((MainWindow)System.Windows.Application.Current.MainWindow).SetCameraDirty(); } }
public void GUIUpdate() { RenderOptions old = (RenderOptions)_Parent.GetClone(); _Parent._DistanceMinimum = floatEditor3.GetSliderValue(); _Parent._DistanceIterations = floatEditor1.GetSliderValue(); _Parent._StepSize = floatEditor2.GetSliderValue(); _Parent._DistanceExtents = floatEditor4.GetSliderValue(); _Parent._FractalIterationCount = (int)(floatEditor5.GetSliderValue() + 0.5); _Parent._ColourIterationCount = (int)(floatEditor6.GetSliderValue() + 0.5); if (_Parent._DistanceMinimum != old._DistanceMinimum || _Parent._DistanceIterations != old._DistanceIterations || _Parent._StepSize != old._StepSize || _Parent._FractalIterationCount != old._FractalIterationCount || _Parent._ColourIterationCount != old._ColourIterationCount) { ((MainWindow)System.Windows.Application.Current.MainWindow).SetDirty(); } else { ((MainWindow)System.Windows.Application.Current.MainWindow).SetCameraDirty(); } }