From 2b71438cd02c71ed1e7f8c42deaef6e477a08617 Mon Sep 17 00:00:00 2001
From: XtraCube <72575280+XtraCube@users.noreply.github.com>
Date: Sun, 1 Sep 2024 15:53:33 -0400
Subject: [PATCH] fix button reset after meeting
---
.../ButtonResetPatches.cs} | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
rename MiraAPI/Patches/{MeetingHudPatches.cs => Hud/ButtonResetPatches.cs} (56%)
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)
{