mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
fix naming
it originally was called "VariantColor" before i switched it to "VariableColor"
This commit is contained in:
4 files changed
+6
-6
No files matched your search
@@ -39,7 +39,7 @@ public static class PaletteManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <param name="colorId">The id of the color.</param>
|
/// <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>
|
/// <returns><c>true</c> if the color is a variable color; <c>false</c> otherwise.</returns>
|
||||||
|
|||||||
@@ -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.
|
/// Evaluates the dynamic main color based on the current in-game time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="time">The time to evaluate the color against.</param>
|
/// <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)
|
public Color EvaluateMainColor(float time)
|
||||||
{
|
{
|
||||||
return LocalSettingsTabSingleton<MiraApiSettings>.Instance.EnableVariableColors.Value
|
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.
|
/// Evaluates the dynamic shadow color based on the current in-game time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="time">The time to evaluate the color against.</param>
|
/// <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)
|
public Color EvaluateShadowColor(float time)
|
||||||
{
|
{
|
||||||
return LocalSettingsTabSingleton<MiraApiSettings>.Instance.EnableVariableColors.Value
|
return LocalSettingsTabSingleton<MiraApiSettings>.Instance.EnableVariableColors.Value
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ public sealed class VariableColorBehaviour : MonoBehaviour
|
|||||||
private static readonly Color VisorColor = Palette.VisorColor;
|
private static readonly Color VisorColor = Palette.VisorColor;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the current variant color.
|
/// Sets the current variable color.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="col">The new variant color.</param>
|
/// <param name="col">The new variable color.</param>
|
||||||
[HideFromIl2Cpp]
|
[HideFromIl2Cpp]
|
||||||
public void SetColor(VariableColor? col)
|
public void SetColor(VariableColor? col)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
public ConfigEntry<bool> EnableSabotageBlares { get; private set; } = config.Bind("MiraApi.Accessibility", "MiraApi.EnableSabotageBlare", true);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets whether variant colors will remain static or not.
|
/// Gets whether variable colors will remain static or not.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[LocalToggleSetting]
|
[LocalToggleSetting]
|
||||||
public ConfigEntry<bool> EnableVariableColors { get; private set; } = config.Bind("MiraApi.Accessibility", "MiraApi.EnableVariableColors", true);
|
public ConfigEntry<bool> EnableVariableColors { get; private set; } = config.Bind("MiraApi.Accessibility", "MiraApi.EnableVariableColors", true);
|
||||||
|
|||||||
Reference in new issue
Block a user