Change gathering editor window to auto-resize

This commit is contained in:
Liza 2024-09-20 00:35:54 +02:00
parent d520c4cb11
commit 878d4db618
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -35,7 +35,7 @@ internal sealed class EditorWindow : Window
public EditorWindow(RendererPlugin plugin, EditorCommands editorCommands, IDataManager dataManager, public EditorWindow(RendererPlugin plugin, EditorCommands editorCommands, IDataManager dataManager,
ITargetManager targetManager, IClientState clientState, IObjectTable objectTable) ITargetManager targetManager, IClientState clientState, IObjectTable objectTable)
: base("Gathering Path Editor###QuestionableGatheringPathEditor", : base("Gathering Path Editor###QuestionableGatheringPathEditor",
ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNavFocus) ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.AlwaysAutoResize)
{ {
_plugin = plugin; _plugin = plugin;
_editorCommands = editorCommands; _editorCommands = editorCommands;
@ -46,7 +46,7 @@ internal sealed class EditorWindow : Window
SizeConstraints = new WindowSizeConstraints SizeConstraints = new WindowSizeConstraints
{ {
MinimumSize = new Vector2(300, 300), MinimumSize = new Vector2(300, 100),
}; };
RespectCloseHotkey = false; RespectCloseHotkey = false;