v1.0.8.23: Main Menu bar; Duty List transparent background
Made-with: Cursor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user