using HarmonyLib; namespace IdleSpectator; /// /// Keep the power bar hidden for the whole Idle Spectator session, even if focus /// briefly drops between targets (vanilla only hides it while a focus unit is set). /// [HarmonyPatch(typeof(CanvasMain), nameof(CanvasMain.isBottomBarShowing))] internal static class CanvasMainPatches { [HarmonyPostfix] private static void KeepPowerBarHiddenWhileIdleSpectating(ref bool __result) { if (SpectatorMode.Active) { __result = false; } } }