diff --git a/MiraAPI/Patches/MeetingHudPatches.cs b/MiraAPI/Patches/Hud/ButtonResetPatches.cs similarity index 56% rename from MiraAPI/Patches/MeetingHudPatches.cs rename to MiraAPI/Patches/Hud/ButtonResetPatches.cs index 6abe4c0..b9756ce 100644 --- a/MiraAPI/Patches/MeetingHudPatches.cs +++ b/MiraAPI/Patches/Hud/ButtonResetPatches.cs @@ -1,20 +1,20 @@ using HarmonyLib; using MiraAPI.Hud; -namespace MiraAPI.Patches; +namespace MiraAPI.Patches.Hud; /// -/// Harmony patches for the MeetingHud class. +/// Reset button patches /// -[HarmonyPatch(typeof(MeetingHud))] -public static class MeetingHudPatches +[HarmonyPatch] +public static class ButtonResetPatches { /// /// Resets the cooldown and effect of all custom buttons when the meeting starts. /// [HarmonyPostfix] - [HarmonyPatch(nameof(MeetingHud.Start))] - public static void StartPostfix() + [HarmonyPatch(typeof(MeetingHud), nameof(MeetingHud.Start))] + public static void MeetingHudStartPostfix() { foreach (var customActionButton in CustomButtonManager.CustomButtons) { @@ -23,11 +23,11 @@ public static class MeetingHudPatches } /// - /// Resets the cooldown and effect of all custom buttons when the voting is complete. + /// Resets the cooldown and effect of all custom buttons after the exile screen is closed. /// [HarmonyPostfix] - [HarmonyPatch(nameof(MeetingHud.VotingComplete))] - public static void VotingCompletePostfix() + [HarmonyPatch(typeof(ExileController), nameof(ExileController.ReEnableGameplay))] + public static void ExileControllerReEnableGameplayPostfix() { foreach (var customActionButton in CustomButtonManager.CustomButtons) {