From 3de284d96b3dad8c1fa5418821ac9a9a19174c02 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Tue, 30 Jul 2024 04:47:06 +0200 Subject: [PATCH] Change overlay draw conditions --- Questionable/Windows/DebugOverlay.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Questionable/Windows/DebugOverlay.cs b/Questionable/Windows/DebugOverlay.cs index 5d60f4a75..20b572fe2 100644 --- a/Questionable/Windows/DebugOverlay.cs +++ b/Questionable/Windows/DebugOverlay.cs @@ -48,12 +48,7 @@ internal sealed class DebugOverlay : Window public ushort? HighlightedQuest { get; set; } - public override bool DrawConditions() - { - return _configuration.Advanced.DebugOverlay && _clientState is - { IsLoggedIn: true, LocalPlayer: not null, IsPvPExcludingDen: false } && - !_condition[ConditionFlag.OccupiedInCutSceneEvent]; - } + public override bool DrawConditions() => _configuration.Advanced.DebugOverlay; public override void PreDraw() { @@ -62,6 +57,12 @@ internal sealed class DebugOverlay : Window public override void Draw() { + if (_condition[ConditionFlag.OccupiedInCutSceneEvent]) + return; + + if (_clientState is not { IsLoggedIn: true, LocalPlayer: not null, IsPvPExcludingDen: false }) + return; + DrawCurrentQuest(); DrawHighlightedQuest(); }