Hide Create Character button until the player is signed in.
The login overlay showed the create flow for guests because the button was only hidden during asset loading, not when auth status is anonymous.
@@ -2724,6 +2724,8 @@ function updateAuthUi (authStatus)
2724
2724
}
2725
2725
if (exportLink)
2726
2726
{ exportLink.hidden = !authStatus?.authenticated; }
2727
if (createCharacterOpen)
2728
{ createCharacterOpen.hidden = !authStatus?.authenticated; }
2727
2729
if (authStatus?.authenticated && !session)
2728
2730
{
2729
2731
statusEl.textContent = `Signed in as ${formatAccountLabel(authStatus)}`;
@@ -2724,6 +2724,8 @@ function updateAuthUi (authStatus)2724
}2724
}2725
if (exportLink)2725
if (exportLink)2726
{ exportLink.hidden = !authStatus?.authenticated; }2726
{ exportLink.hidden = !authStatus?.authenticated; }2727
if (createCharacterOpen)2728
{ createCharacterOpen.hidden = !authStatus?.authenticated; }2727
if (authStatus?.authenticated && !session)2729
if (authStatus?.authenticated && !session)2728
{2730
{2729
statusEl.textContent = `Signed in as ${formatAccountLabel(authStatus)}`;2731
statusEl.textContent = `Signed in as ${formatAccountLabel(authStatus)}`;