private void OnCurrentValueSet(object sender, LayerPropertyEventArgs <ColorGradient> e)
 {
     // Don't allow color gradients to be null
     if (BaseValue == null)
     {
         BaseValue = DefaultValue ?? new ColorGradient();
     }
 }
예제 #2
0
 private void ResizeModeOnCurrentValueSet(object sender, LayerPropertyEventArgs <LayerResizeMode> e)
 {
     UpdateVisibility();
 }
예제 #3
0
 private void GradientTypeOnCurrentValueSet(object sender, LayerPropertyEventArgs <ColorType> e)
 {
     UpdateVisibility();
 }
예제 #4
0
 private void OnCurrentValueSet(object?sender, LayerPropertyEventArgs e)
 {
     // Don't allow the int range to be null
     BaseValue ??= DefaultValue ?? new IntRange(0, 0);
 }
 private void NoiseTypeCurrentValueSet(object sender, LayerPropertyEventArgs e)
 {
     Cellular.IsHidden = NoiseType.CurrentValue != FastNoiseLite.NoiseType.Cellular;
 }
 private void SpawnPositionOnCurrentValueSet(object sender, LayerPropertyEventArgs e)
 {
     UpdateVisibility();
 }
예제 #7
0
 private void ColorModeOnCurrentValueSet(object sender, LayerPropertyEventArgs e)
 {
     UpdateVisibility();
 }
 private void EnableColorAnimationOnCurrentValueSet(object sender, LayerPropertyEventArgs e)
 {
     Color.IsHidden  = EnableColorAnimation.CurrentValue;
     Colors.IsHidden = !EnableColorAnimation.CurrentValue;
 }
 private void CaptureOnLayerPropertyOnCurrentValueSet(object sender, LayerPropertyEventArgs e) => RecreateCaptureZone();