Skip to content

Commit

Permalink
fix title menu buttons being visible too early
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Mar 9, 2023
1 parent 0b039ce commit 8864157
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion QSB/Menus/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,12 @@ private static void SetButtonActive(GameObject button, bool active)
return;
}

var titleAnimationController = QSBWorldSync.GetUnityObject<TitleScreenManager>()._gfxController;

var activeAlpha = titleAnimationController.IsTitleAnimationComplete() ? 1 : 0;

button.SetActive(active);
button.GetComponent<CanvasGroup>().alpha = active ? 1 : 0;
button.GetComponent<CanvasGroup>().alpha = active ? activeAlpha : 0;
}

private void InitPauseMenus()
Expand Down

0 comments on commit 8864157

Please sign in to comment.