v1.0.8.24: Context menu visibility fix; Duty List objectives match by quest name

Made-with: Cursor
This commit is contained in:
2026-03-04 21:31:22 -05:00
parent 293f83dc36
commit 7c46a50b7e
8 changed files with 53 additions and 17 deletions
+25
View File
@@ -0,0 +1,25 @@
using HSUI.Interface;
namespace HSUI.Helpers
{
/// <summary>
/// Tracks which HUD element currently has its context menu open, so visibility can be ignored for that element
/// while the menu is open (e.g. "hide unless hovered" would otherwise hide the element when the mouse moves to the menu).
/// </summary>
public static class ContextMenuVisibilityHelper
{
private static HudElement? _elementWithContextMenuOpen;
/// <summary>Call when opening a context menu for this element.</summary>
public static void SetContextMenuOpen(HudElement? element)
{
_elementWithContextMenuOpen = element;
}
/// <summary>True if the given element currently has its context menu open.</summary>
public static bool IsContextMenuOpenFor(HudElement element)
{
return _elementWithContextMenuOpen != null && _elementWithContextMenuOpen == element;
}
}
}