new-horizons/NewHorizons/Patches/ShipLogPatches/UIStyleManagerPatches.cs
2023-03-18 13:30:22 -04:00

26 lines
759 B
C#

using HarmonyLib;
using NewHorizons.Builder.ShipLog;
using UnityEngine;
namespace NewHorizons.Patches.ShipLogPatches
{
[HarmonyPatch(typeof(UIStyleManager))]
public static class UIStyleManagerPatches
{
[HarmonyPrefix]
[HarmonyPatch(nameof(UIStyleManager.GetCuriosityColor))]
public static bool UIStyleManager_GetCuriosityColor(UIStyleManager __instance, CuriosityName __0, bool __1, ref Color __result)
{
if ((int)__0 < 7)
{
return true;
}
else
{
__result = RumorModeBuilder.GetCuriosityColor(__0, __1, __instance._neutralColor, __instance._neutralHighlight);
return false;
}
}
}
}