From 94e85fc45e435c1be8c3ba4d394343a6cd29426f Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 9 Aug 2024 01:25:47 +0200 Subject: [PATCH] Consider more UI elements as loading screens --- Questionable/Functions/GameFunctions.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Questionable/Functions/GameFunctions.cs b/Questionable/Functions/GameFunctions.cs index d52dd4697..4b0b5e13a 100644 --- a/Questionable/Functions/GameFunctions.cs +++ b/Questionable/Functions/GameFunctions.cs @@ -486,9 +486,16 @@ internal sealed unsafe class GameFunctions public bool IsLoadingScreenVisible() { - return _gameGui.TryGetAddonByName("FadeMiddle", out AtkUnitBase* fade) && - LAddon.IsAddonReady(fade) && - fade->IsVisible; + if (_gameGui.TryGetAddonByName("FadeMiddle", out AtkUnitBase* fade) && fade->IsVisible) + return true; + + if (_gameGui.TryGetAddonByName("FadeBack", out fade) && fade->IsVisible) + return true; + + if (_gameGui.TryGetAddonByName("NowLoading", out fade) && fade->IsVisible) + return true; + + return false; } public int GetFreeInventorySlots()