From fd880f591992e0a84d4dacb9aac184fb8caa32a0 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 1 Jun 2025 22:03:33 +0200 Subject: [PATCH] Window tweaks --- Questionable/Controller/CommandHandler.cs | 4 ++-- Questionable/DalamudInitializer.cs | 2 +- .../Windows/QuestComponents/QuickAccessButtonsComponent.cs | 4 ++-- Questionable/Windows/QuestSelectionWindow.cs | 4 ++-- Questionable/Windows/QuestWindow.cs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Questionable/Controller/CommandHandler.cs b/Questionable/Controller/CommandHandler.cs index 78e699e4..2b72a1cf 100644 --- a/Questionable/Controller/CommandHandler.cs +++ b/Questionable/Controller/CommandHandler.cs @@ -98,7 +98,7 @@ internal sealed class CommandHandler : IDisposable break; case "start": - _questWindow.IsOpen = true; + _questWindow.IsOpenAndUncollapsed = true; _questController.Start("Start command"); break; @@ -177,7 +177,7 @@ internal sealed class CommandHandler : IDisposable if (!_configuration.IsPluginSetupComplete()) { if (string.IsNullOrEmpty(arguments)) - _oneTimeSetupWindow.IsOpen = true; + _oneTimeSetupWindow.IsOpenAndUncollapsed = true; else _chatGui.PrintError("Please complete the one-time setup first.", MessageTag, TagColor); return true; diff --git a/Questionable/DalamudInitializer.cs b/Questionable/DalamudInitializer.cs index fa00aebb..a975b817 100644 --- a/Questionable/DalamudInitializer.cs +++ b/Questionable/DalamudInitializer.cs @@ -108,7 +108,7 @@ internal sealed class DalamudInitializer : IDisposable if (_configuration.IsPluginSetupComplete()) _questWindow.ToggleOrUncollapse(); else - _oneTimeSetupWindow.IsOpen = true; + _oneTimeSetupWindow.IsOpenAndUncollapsed = true; } public void Dispose() diff --git a/Questionable/Windows/QuestComponents/QuickAccessButtonsComponent.cs b/Questionable/Windows/QuestComponents/QuickAccessButtonsComponent.cs index 27338177..8d610825 100644 --- a/Questionable/Windows/QuestComponents/QuickAccessButtonsComponent.cs +++ b/Questionable/Windows/QuestComponents/QuickAccessButtonsComponent.cs @@ -92,7 +92,7 @@ internal sealed class QuickAccessButtonsComponent ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.BookBookmark)) - _journalProgressWindow.IsOpen = true; + _journalProgressWindow.IsOpenAndUncollapsed = true; if (ImGui.IsItemHovered()) ImGui.SetTooltip("Journal Progress"); @@ -101,7 +101,7 @@ internal sealed class QuickAccessButtonsComponent { ImGui.SameLine(); if (DrawValidationIssuesButton()) - _questValidationWindow.IsOpen = true; + _questValidationWindow.IsOpenAndUncollapsed = true; } } diff --git a/Questionable/Windows/QuestSelectionWindow.cs b/Questionable/Windows/QuestSelectionWindow.cs index b25b94f5..78218562 100644 --- a/Questionable/Windows/QuestSelectionWindow.cs +++ b/Questionable/Windows/QuestSelectionWindow.cs @@ -103,7 +103,7 @@ internal sealed class QuestSelectionWindow : LWindow _offeredQuests = []; } - IsOpen = _quests.Count > 0; + IsOpenAndUncollapsed = _quests.Count > 0; } public unsafe void OpenForCurrentZone() @@ -125,7 +125,7 @@ internal sealed class QuestSelectionWindow : LWindow } _offeredQuests = []; - IsOpen = true; + IsOpenAndUncollapsed = true; } public override void OnClose() diff --git a/Questionable/Windows/QuestWindow.cs b/Questionable/Windows/QuestWindow.cs index 18f303c1..5723c0dd 100644 --- a/Questionable/Windows/QuestWindow.cs +++ b/Questionable/Windows/QuestWindow.cs @@ -64,7 +64,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig _interactionUiController = interactionUiController; #if DEBUG - IsOpen = true; + IsOpenAndUncollapsed = true; #endif SizeConstraints = new WindowSizeConstraints { @@ -92,7 +92,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig { Icon = FontAwesomeIcon.Cog, IconOffset = new Vector2(1.5f, 1), - Click = _ => configWindow.IsOpen = true, + Click = _ => configWindow.IsOpenAndUncollapsed = true, Priority = int.MinValue, ShowTooltip = () => { -- 2.30.2