Make app switcher disappear when opening album

This commit is contained in:
MacBuilder
2025-11-09 00:20:48 +01:00
parent 5d0a9f999a
commit a80aed8eb7
4 changed files with 12 additions and 395 deletions

File diff suppressed because one or more lines are too long

View File

@@ -168,11 +168,11 @@ namespace UI.CardSystem
// If album exits while in Overworld, show AppSwitcher. If not, keep it hidden.
if (PlayerHudManager.Instance.currentUIMode == PlayerHudManager.UIMode.Overworld)
{
PlayerHudManager.Instance.appSwitcher.SetActive(true);
PlayerHudManager.Instance.ToggleAppSwitcher(true);
}
else
{
PlayerHudManager.Instance.appSwitcher.SetActive(false);
PlayerHudManager.Instance.ToggleAppSwitcher(false);
}
}

View File

@@ -45,6 +45,8 @@ namespace UI.CardSystem
{
openAlbumButton.onClick.RemoveListener(OnOpenAlbumClicked);
}
Debug.Log("ALBUM: CardAlbumDestroyed");
}
private void OnOpenAlbumClicked()
@@ -71,6 +73,7 @@ namespace UI.CardSystem
PlayerHudManager.Instance.appSwitcher.SetActive(false);
}
}
PlayerHudManager.Instance.ToggleAppSwitcher(false);
// If we're already on the album main page, do nothing
}

View File

@@ -145,5 +145,10 @@ public class PlayerHudManager : ManagedBehaviour
}
}
public void ToggleAppSwitcher(bool boo)
{
appSwitcher.SetActive(boo);
}
}