From 07511d9e5fe02f08781c10ce66141435fb3d95e5 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 6 Nov 2023 17:31:04 -0500 Subject: [PATCH] Set a default size for the preferences window and make it undockable --- Fushigi/ui/widgets/Preferences.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Fushigi/ui/widgets/Preferences.cs b/Fushigi/ui/widgets/Preferences.cs index e65afb69..fe429e0f 100644 --- a/Fushigi/ui/widgets/Preferences.cs +++ b/Fushigi/ui/widgets/Preferences.cs @@ -10,9 +10,11 @@ class Preferences static readonly Vector4 errCol = new Vector4(1f, 0, 0, 1); static bool romfsTouched = false; static bool modRomfsTouched = false; + public static void Draw(ref bool continueDisplay) { - if (ImGui.Begin("Preferences")) + ImGui.SetNextWindowSize(new Vector2(700, 250), ImGuiCond.Once); + if (ImGui.Begin("Preferences", ImGuiWindowFlags.NoDocking)) { var romfs = UserSettings.GetRomFSPath(); var mod = UserSettings.GetModRomFSPath();