Consider more UI elements as loading screens

This commit is contained in:
Liza 2024-08-09 01:25:47 +02:00
parent 3f947a5dd6
commit 94e85fc45e
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -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()