mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 09:39:56 +00:00
make pause menu show correct buttons on scene load
This commit is contained in:
parent
20c27cfd10
commit
08b1f5bdd1
@ -91,8 +91,20 @@ namespace QSB.Menus
|
||||
|
||||
DisconnectButton = MenuApi.PauseMenu_MakeSimpleButton("DISCONNECT");
|
||||
DisconnectButton.onClick.AddListener(Disconnect);
|
||||
DisconnectButton.gameObject.SetActive(false);
|
||||
DisconnectButton.GetComponent<CanvasGroup>().alpha = 1f;
|
||||
|
||||
|
||||
if (QSBCore.IsInMultiplayer)
|
||||
{
|
||||
ClientButton.SetActive(false);
|
||||
HostButton.gameObject.SetActive(false);
|
||||
DisconnectButton.gameObject.SetActive(true);
|
||||
DisconnectButton.GetComponent<CanvasGroup>().alpha = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
DisconnectButton.gameObject.SetActive(false);
|
||||
DisconnectButton.GetComponent<CanvasGroup>().alpha = 1f;
|
||||
}
|
||||
}
|
||||
|
||||
private void MakeTitleMenus()
|
||||
|
Loading…
x
Reference in New Issue
Block a user