fix naming

it originally was called "VariantColor" before i switched it to "VariableColor"
This commit is contained in:
Az committed 2026-09-30 10:28:26 -04:00
1 parent f3ddf8d2ab
commit cd753d554b
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ public static class PaletteManager
}
/// <summary>
/// Checks to see if the provided color ID belongs to a variant color.
/// Checks to see if the provided color ID belongs to a variable color.
/// </summary>
/// <param name="colorId">The id of the color.</param>
/// <returns><c>true</c> if the color is a variable color; <c>false</c> otherwise.</returns>
+2 -2
View File
@@ -49,7 +49,7 @@ public sealed class VariableColor(StringNames name, Func<float, Color> mainEvalu
/// Evaluates the dynamic main color based on the current in-game time.
/// </summary>
/// <param name="time">The time to evaluate the color against.</param>
/// <returns>The dynamically evaluated color, or the static <see cref="CustomColor.MainColor"/> if static variant colors are enabled in the user's settings.</returns>
/// <returns>The dynamically evaluated color, or the static <see cref="CustomColor.MainColor"/> if static variable colors are enabled in the user's settings.</returns>
public Color EvaluateMainColor(float time)
{
return LocalSettingsTabSingleton<MiraApiSettings>.Instance.EnableVariableColors.Value
@@ -61,7 +61,7 @@ public sealed class VariableColor(StringNames name, Func<float, Color> mainEvalu
/// Evaluates the dynamic shadow color based on the current in-game time.
/// </summary>
/// <param name="time">The time to evaluate the color against.</param>
/// <returns>The dynamically evaluated color, or the static <see cref="CustomColor.ShadowColor"/> if static variant colors are enabled in the user's settings.</returns>
/// <returns>The dynamically evaluated color, or the static <see cref="CustomColor.ShadowColor"/> if static variable colors are enabled in the user's settings.</returns>
public Color EvaluateShadowColor(float time)
{
return LocalSettingsTabSingleton<MiraApiSettings>.Instance.EnableVariableColors.Value
+2 -2
View File
@@ -22,9 +22,9 @@ public sealed class VariableColorBehaviour : MonoBehaviour
private static readonly Color VisorColor = Palette.VisorColor;
/// <summary>
/// Sets the current variant color.
/// Sets the current variable color.
/// </summary>
/// <param name="col">The new variant color.</param>
/// <param name="col">The new variable color.</param>
[HideFromIl2Cpp]
public void SetColor(VariableColor? col)
{
+1 -1
View File
@@ -235,7 +235,7 @@ public class MiraApiSettings(ConfigFile config) : LocalSettingsTab(config)
public ConfigEntry<bool> EnableSabotageBlares { get; private set; } = config.Bind("MiraApi.Accessibility", "MiraApi.EnableSabotageBlare", true);
/// <summary>
/// Gets whether variant colors will remain static or not.
/// Gets whether variable colors will remain static or not.
/// </summary>
[LocalToggleSetting]
public ConfigEntry<bool> EnableVariableColors { get; private set; } = config.Bind("MiraApi.Accessibility", "MiraApi.EnableVariableColors", true);