From 6494004f64d93381768e95eec04a886ac53df838 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger <fefferburbia@gmail.com> Date: Mon, 24 Feb 2025 12:19:59 -0500 Subject: Created basic notifications They don't look great yet but hey we can see items being sent out or received in game now! --- Plugin.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Plugin.cs') diff --git a/Plugin.cs b/Plugin.cs index df53e96..a9fb284 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -12,6 +12,7 @@ namespace ManifoldGardenArchipelago public static ArchipelagoManager archipelagoManager = new(); public static SlotSave slotSave = new(); + public static NotificationManager notificationManager = null; private void Awake() { @@ -26,6 +27,18 @@ namespace ManifoldGardenArchipelago } } + [HarmonyPatch(typeof(GameManager), nameof(GameManager.AttachUI))] + static class UIManagerAwakePatch + { + static void Postfix() + { + if (Plugin.notificationManager == null) + { + Plugin.notificationManager = NotificationManager.InitializeNotifications(GameManager.UI); + } + } + } + [HarmonyPatch(typeof(GameManager), "Update")] static class GameManagerUpdatePatch { -- cgit 1.4.1