private void OnCurrentValueSet(object sender, LayerPropertyEventArgs <ColorGradient> e) { // Don't allow color gradients to be null if (BaseValue == null) { BaseValue = DefaultValue ?? new ColorGradient(); } }
private void ResizeModeOnCurrentValueSet(object sender, LayerPropertyEventArgs <LayerResizeMode> e) { UpdateVisibility(); }
private void GradientTypeOnCurrentValueSet(object sender, LayerPropertyEventArgs <ColorType> e) { UpdateVisibility(); }
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(); }
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();