From 7401f69e187c0e94365c2b337d937754f4c5d4e5 Mon Sep 17 00:00:00 2001 From: Lilith Song Date: Sat, 24 Feb 2024 17:03:21 -0500 Subject: [PATCH] [PR] Fix window size so contents are all visible Fixed an issue where the command help section could be cut off at the bottom by limiting the maximum window size and making it scrollable. --- PositionalGuide/ConfigWindow.cs | 7 +++++-- PositionalGuide/PositionalGuide.csproj | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PositionalGuide/ConfigWindow.cs b/PositionalGuide/ConfigWindow.cs index 0c4af88..c3fa9d6 100644 --- a/PositionalGuide/ConfigWindow.cs +++ b/PositionalGuide/ConfigWindow.cs @@ -15,8 +15,8 @@ public class ConfigWindow: Window, IDisposable { public const float InactiveOptionAlpha = 0.5f; private const ImGuiWindowFlags flags = ImGuiWindowFlags.None - | ImGuiWindowFlags.NoScrollbar - | ImGuiWindowFlags.NoScrollWithMouse + //| ImGuiWindowFlags.NoScrollbar + //| ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.AlwaysAutoResize; private const int ptrMemWidth = sizeof(short); @@ -67,6 +67,9 @@ public ConfigWindow(Plugin core) : base(core.Name, flags) { }; this.AllowClickthrough = true; this.AllowPinning = true; + this.SizeConstraints = new() { + MaximumSize = new(700, 900), + }; this.conf = core.Config; diff --git a/PositionalGuide/PositionalGuide.csproj b/PositionalGuide/PositionalGuide.csproj index 252bbcb..943609c 100644 --- a/PositionalGuide/PositionalGuide.csproj +++ b/PositionalGuide/PositionalGuide.csproj @@ -2,7 +2,7 @@ PositionalGuide - 4.4.0 + 4.4.1 Provides drawn guidelines to see where you need to stand to hit enemies with positionals Copyleft VariableVixen 2022 https://github.com/PrincessRTFM/PositionalAssistant