From 32caa8fd71fa2aa45f2c170f432c52716ce6463d Mon Sep 17 00:00:00 2001
From: Az <56699741+AlchlcDvl@users.noreply.github.com>
Date: Sat, 7 Nov 2026 16:48:13 -0500
Subject: [PATCH] undo a getter + deprecate some constructors
---
MiraAPI/Colors/VariableColor.cs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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,