v1.0.8.23: Main Menu bar; Duty List transparent background

Made-with: Cursor
This commit is contained in:
2026-03-04 01:38:48 -05:00
parent 9f9d5e1781
commit 293f83dc36
15 changed files with 744 additions and 20 deletions
+5 -4
View File
@@ -334,7 +334,7 @@ namespace HSUI.Helpers
DrawGradientFilledRect(cursorPos, new Vector2(Math.Max(1, barSize.X * shield), h), color, drawList);
}
public static void DrawInWindow(string name, Vector2 pos, Vector2 size, bool needsInput, Action<ImDrawListPtr> drawAction)
public static void DrawInWindow(string name, Vector2 pos, Vector2 size, bool needsInput, Action<ImDrawListPtr> drawAction, bool allowInputInClipRect = false)
{
const ImGuiWindowFlags windowFlags = ImGuiWindowFlags.NoTitleBar |
ImGuiWindowFlags.NoScrollbar |
@@ -344,7 +344,7 @@ namespace HSUI.Helpers
bool inputs = InputsHelper.Instance?.IsProxyEnabled == true ? false : needsInput;
DrawInWindow(name, pos, size, inputs, false, windowFlags, drawAction);
DrawInWindow(name, pos, size, inputs, false, windowFlags, drawAction, allowInputInClipRect);
}
public static void DrawInWindow(
@@ -354,7 +354,8 @@ namespace HSUI.Helpers
bool needsInput,
bool needsWindow,
ImGuiWindowFlags windowFlags,
Action<ImDrawListPtr> drawAction)
Action<ImDrawListPtr> drawAction,
bool allowInputInClipRect = false)
{
if (!ClipRectsHelper.Instance.Enabled || ClipRectsHelper.Instance.Mode == WindowClippingMode.Performance)
@@ -408,7 +409,7 @@ namespace HSUI.Helpers
if (ClipRectsHelper.Instance.Mode == WindowClippingMode.Hide) { return; }
ImGuiWindowFlags flags = windowFlags;
if (needsInput && clipRect.Value.Contains(ImGui.GetMousePos()))
if (needsInput && !allowInputInClipRect && clipRect.Value.Contains(ImGui.GetMousePos()))
{
flags |= ImGuiWindowFlags.NoInputs;
}