Skip to content

Commit

Permalink
Make macro sets addressable too (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Feb 4, 2024
1 parent 97e6ca3 commit 1865ba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OpenDreamClient/Interface/DreamInterfaceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1865ba5

Please sign in to comment.