public void GUIUpdate() { // _Colour._Red = wooSlider1.GetSliderValue(); // _Colour._Green = wooSlider2.GetSliderValue(); // _Colour._Blue = wooSlider3.GetSliderValue(); _GUIUpdateTarget.GUIUpdate(); UpdateSwatch(); }
private void ValueUpdated(bool trigger) { if (_MaterialSelection == null) { return; } _MaterialSelection._Defaults[0].RenderThumb(image1); _MaterialSelection._Defaults[1].RenderThumb(image2); _MaterialSelection._Defaults[2].RenderThumb(image3); _MaterialSelection._Defaults[3].RenderThumb(image4); _MaterialSelection._Defaults[4].RenderThumb(image5); _MaterialSelection._Defaults[5].RenderThumb(image6); _MaterialSelection._Defaults[6].RenderThumb(image7); _MaterialSelection._Defaults[7].RenderThumb(image8); _MaterialSelection._Defaults[8].RenderThumb(image9); _MaterialSelection._Defaults[9].RenderThumb(image10); _MaterialSelection._Defaults[10].RenderThumb(image11); _MaterialSelection._Defaults[11].RenderThumb(image12); _MaterialSelection._Defaults[12].RenderThumb(image13); _MaterialSelection._Defaults[13].RenderThumb(image14); _MaterialSelection._Defaults[14].RenderThumb(image15); _MaterialSelection._Defaults[15].RenderThumb(image16); _MaterialSelection._Defaults[16].RenderThumb(image17); _MaterialSelection._Defaults[17].RenderThumb(image18); _Selected.RenderThumb(current); if (trigger) { _GUIUpdateTarget.GUIUpdate(); } }
public void GUIUpdate() { _OrbitColours._StartColour = materialControl1.GetMaterial(); _OrbitColours._EndColour = materialControl2.GetMaterial(); _OrbitColours._Multiplier = wooSlider1.GetSliderValue(); _OrbitColours._Power = wooSlider2.GetSliderValue(); _OrbitColours._Offset = wooSlider3.GetSliderValue(); _GUIUpdateable.GUIUpdate(); }
private void button1_Click(object sender, RoutedEventArgs e) { ((MainWindow)System.Windows.Application.Current.MainWindow).StopPreview(); MaterialEditor ownedWindow = new MaterialEditor(_Material); ownedWindow.Owner = Window.GetWindow(this); ownedWindow.ShowDialog(); if (ownedWindow._OK) { _Material = ownedWindow._Material; _GUIUpdateable.GUIUpdate(); RenderMaterial(); } ((MainWindow)System.Windows.Application.Current.MainWindow).StartPreview(); }
private void ValueUpdated(bool trigger) { double value = wooSlider1.GetSliderValue(); if ((_Flags & FloatEditorFlags.Integer) > 0) { label1.Content = _LabelName + " : " + value.ToString("0"); } else { label1.Content = _LabelName + " : " + value.ToString("0.##"); } if (trigger) { _GUIUpdateTarget.GUIUpdate(); } }
public void ValueUpdated(bool updateGUI) { double range = _Max - _Min; grid.Width = this.ActualWidth; rectangle1.Width = this.ActualWidth; if (_Min < 0 && _Max > 0) { double controlMid = this.ActualWidth * (-_Min / range); double controlWidth = this.ActualWidth; if (_Value < 0) { Thickness marg = rectangle2.Margin; marg.Left = controlMid + _Value * controlWidth / range; rectangle2.Margin = marg; rectangle2.Width = -_Value * controlWidth / range; } else { Thickness marg = rectangle2.Margin; marg.Left = controlMid; rectangle2.Margin = marg; rectangle2.Width = _Value * controlWidth / range; } } else { Thickness marg = rectangle2.Margin; marg.Left = 0; rectangle2.Margin = marg; rectangle2.Width = (_Value - _Min) * this.ActualWidth / range; } if (updateGUI) { if (_GUIUpdateTarget != null) { _GUIUpdateTarget.GUIUpdate(); } } }
private void ValueUpdated(bool trigger) { double valuex = wooSlider1.GetSliderValue(); double valuey = wooSlider2.GetSliderValue(); double valuez = wooSlider3.GetSliderValue(); if ((_Flags & VectorEditorFlags.Integer) > 0) { label1.Content = _LabelName + " : {" + valuex.ToString("0") + ", " + valuey.ToString("0") + ", " + valuez.ToString("0") + "}"; } else { label1.Content = _LabelName + " : {" + valuex.ToString("0.##") + ", " + valuey.ToString("0.##") + ", " + valuez.ToString("0.##") + "}"; } if (trigger) { _GUIUpdateTarget.GUIUpdate(); } }