diff --git a/MiraAPI/Colors/VariableColor.cs b/MiraAPI/Colors/VariableColor.cs index 6a6eae1c..4f178471 100644 --- a/MiraAPI/Colors/VariableColor.cs +++ b/MiraAPI/Colors/VariableColor.cs @@ -40,7 +40,7 @@ public sealed class VariableColor( /// /// Gets a delegate that takes in a time value and returns the dynamic shadow color. /// - public Func ShadowEvaluator => shadowEvaluator ?? (t => mainEvaluator(t).DarkenAbsolute(0.24f)); + public Func ShadowEvaluator { get; } = shadowEvaluator ?? (t => mainEvaluator(t).DarkenAbsolute(0.24f)); /// public VariableColor( @@ -91,6 +91,7 @@ public sealed class VariableColor( } /// + [Obsolete("Use the constructor that takes in a CustomColorBrightness parameter. This will be removed in a future version.")] public VariableColor( StringNames nameId, Func mainEvaluator, @@ -103,6 +104,7 @@ public sealed class VariableColor( } /// + [Obsolete("Use the constructor that takes in a CustomColorBrightness parameter. This will be removed in a future version.")] public VariableColor( StringNames nameId, Func mainEvaluator, @@ -113,6 +115,7 @@ public sealed class VariableColor( } /// + [Obsolete("Use the constructor that takes in a CustomColorBrightness parameter. This will be removed in a future version.")] public VariableColor( string rawId, Func mainEvaluator, @@ -125,6 +128,7 @@ public sealed class VariableColor( } /// + [Obsolete("Use the constructor that takes in a CustomColorBrightness parameter. This will be removed in a future version.")] public VariableColor( string rawId, Func mainEvaluator,