public string? DebugState { get; private set; }
- public Func<bool> IsQuestWindowOpen { private get; set; } = () => true;
+ public bool IsQuestWindowOpen => IsQuestWindowOpenFunction?.Invoke() ?? true;
+ public Func<bool>? IsQuestWindowOpenFunction { private get; set; } = () => true;
public void Reload()
{
}
}
- if (AutomationType == EAutomationType.Manual && !IsRunning && !IsQuestWindowOpen())
+ if (AutomationType == EAutomationType.Manual && !IsRunning && !IsQuestWindowOpen)
return;
UpdateCurrentQuest();
if (_clientState is not { IsLoggedIn: true, LocalPlayer: not null, IsPvPExcludingDen: false })
return;
+ if (!_questController.IsQuestWindowOpen)
+ return;
+
DrawCurrentQuest();
DrawHighlightedQuest();
_activeQuestComponent.Reload += OnReload;
_quickAccessButtonsComponent.Reload += OnReload;
- _questController.IsQuestWindowOpen = () => IsOpen;
+ _questController.IsQuestWindowOpenFunction = () => IsOpen;
}
public WindowConfig WindowConfig => _configuration.DebugWindowConfig;