diff options
Diffstat (limited to 'Plugin.cs')
| -rw-r--r-- | Plugin.cs | 13 |
1 files changed, 13 insertions, 0 deletions
| diff --git a/Plugin.cs b/Plugin.cs index df53e96..a9fb284 100644 --- a/Plugin.cs +++ b/Plugin.cs | |||
| @@ -12,6 +12,7 @@ namespace ManifoldGardenArchipelago | |||
| 12 | 12 | ||
| 13 | public static ArchipelagoManager archipelagoManager = new(); | 13 | public static ArchipelagoManager archipelagoManager = new(); |
| 14 | public static SlotSave slotSave = new(); | 14 | public static SlotSave slotSave = new(); |
| 15 | public static NotificationManager notificationManager = null; | ||
| 15 | 16 | ||
| 16 | private void Awake() | 17 | private void Awake() |
| 17 | { | 18 | { |
| @@ -26,6 +27,18 @@ namespace ManifoldGardenArchipelago | |||
| 26 | } | 27 | } |
| 27 | } | 28 | } |
| 28 | 29 | ||
| 30 | [HarmonyPatch(typeof(GameManager), nameof(GameManager.AttachUI))] | ||
| 31 | static class UIManagerAwakePatch | ||
| 32 | { | ||
| 33 | static void Postfix() | ||
| 34 | { | ||
| 35 | if (Plugin.notificationManager == null) | ||
| 36 | { | ||
| 37 | Plugin.notificationManager = NotificationManager.InitializeNotifications(GameManager.UI); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 29 | [HarmonyPatch(typeof(GameManager), "Update")] | 42 | [HarmonyPatch(typeof(GameManager), "Update")] |
| 30 | static class GameManagerUpdatePatch | 43 | static class GameManagerUpdatePatch |
| 31 | { | 44 | { |
