From 1865ba56bfa86f617693b11acfe41ce4e5ab4807 Mon Sep 17 00:00:00 2001 From: Amy <3855802+amylizzle@users.noreply.github.com> Date: Sun, 4 Feb 2024 05:35:20 +0000 Subject: [PATCH] Make macro sets addressable too (#1649) --- OpenDreamClient/Interface/DreamInterfaceManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenDreamClient/Interface/DreamInterfaceManager.cs b/OpenDreamClient/Interface/DreamInterfaceManager.cs index 4e7788cd00..17098ab18e 100644 --- a/OpenDreamClient/Interface/DreamInterfaceManager.cs +++ b/OpenDreamClient/Interface/DreamInterfaceManager.cs @@ -324,6 +324,9 @@ public void FrameUpdate(FrameEventArgs frameEventArgs) { } else if (Menus.TryGetValue(windowId, out var menu)) { if (menu.MenuElements.TryGetValue(elementId, out var menuElement)) return menuElement; + } else if(MacroSets.TryGetValue(windowId, out var macroSet)) { + if (macroSet.Macros.TryGetValue(elementId, out var macroElement)) + return macroElement; } if (window != null) {