public static void Postfix(CombatHUDPhaseDisplay __instance, bool isPlayer, Hostility hostility) { //SkillBasedInit.Logger.LogIfDebug($"CombatHUDPhaseDisplay:IndicateCurrentPhase:post - init"); __instance.FlagOutline.color = Color.white; __instance.NumText.color = Color.white; Color color = Mod.Config.FriendlyUnactivated; if (hostility == Hostility.ENEMY) { color = Mod.Config.EnemyUnactivated; } else { if (!isPlayer) { switch (hostility) { case Hostility.FRIENDLY: color = Mod.Config.AlliedUnactivated; break; case Hostility.NEUTRAL: color = Mod.Config.NeutralUnactivated; break; } } } __instance.FlagFillImage.color = color; }
public static void Postfix(CombatHUDPhaseDisplay __instance) { //SkillBasedInit.Logger.LogIfDebug($"CombatHUDPhaseDisplay:IndicateFuturePhase:post - init"); __instance.FlagOutline.color = Color.white; __instance.NumText.color = Color.white; Hostility hostility = __instance.Combat.HostilityMatrix.GetHostility(__instance.DisplayedActor.team, __instance.Combat.LocalPlayerTeam); bool isPlayer = __instance.DisplayedActor.team == __instance.Combat.LocalPlayerTeam; Color color = Mod.Config.FriendlyUnactivated; if (hostility == Hostility.ENEMY) { color = Mod.Config.EnemyUnactivated; } else { if (!isPlayer) { switch (hostility) { case Hostility.FRIENDLY: color = Mod.Config.AlliedUnactivated; break; case Hostility.NEUTRAL: color = Mod.Config.NeutralUnactivated; break; } } } __instance.FlagFillImage.color = color; }
public static void Postfix(CombatHUDPhaseDisplay __instance, ref TextMeshProUGUI ___NumText) { //SkillBasedInit.Logger.Log($"CombatHUDPhaseDisplay:RefreshInfo:post - Init"); ___NumText.enableWordWrapping = false; ___NumText.fontSize = 18; }