From 569261c04148c5f43df9654f2ceae886b40ec7aa Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 11 Oct 2024 16:26:08 +0200 Subject: [PATCH] Hide ActionManager info in quest window --- .../QuestComponents/CreationUtilsComponent.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Questionable/Windows/QuestComponents/CreationUtilsComponent.cs b/Questionable/Windows/QuestComponents/CreationUtilsComponent.cs index d1db774f2..e7b6c8616 100644 --- a/Questionable/Windows/QuestComponents/CreationUtilsComponent.cs +++ b/Questionable/Windows/QuestComponents/CreationUtilsComponent.cs @@ -157,14 +157,17 @@ internal sealed class CreationUtilsComponent } #endif -#if true - unsafe +#if false + if (_configuration.Advanced.AdditionalStatusInformation) { - var actionManager = ActionManager.Instance(); - ImGui.Text( - $"A1: {actionManager->CastActionId} ({actionManager->LastUsedActionSequence} → {actionManager->LastHandledActionSequence})"); - ImGui.Text($"A2: {actionManager->CastTimeElapsed} / {actionManager->CastTimeTotal}"); - ImGui.Text($"{_questController.TaskQueue.CurrentTaskExecutor?.ProgressContext}"); + unsafe + { + var actionManager = ActionManager.Instance(); + ImGui.Text( + $"A1: {actionManager->CastActionId} ({actionManager->LastUsedActionSequence} → {actionManager->LastHandledActionSequence})"); + ImGui.Text($"A2: {actionManager->CastTimeElapsed} / {actionManager->CastTimeTotal}"); + ImGui.Text($"{_questController.TaskQueue.CurrentTaskExecutor?.ProgressContext}"); + } } #endif