private void DeactivateScreen(Screen screen) { var go = screen.gameObject; if (go.activeSelf) { _deactivatedScreens.Add(go); go.SetActive(false); } }
internal void ShowView(bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling) { if (leftScreen == null) { leftScreen = Resources.FindObjectsOfTypeAll <HMUI.Screen>().FirstOrDefault(x => x.gameObject.name == "LeftScreen"); } foreach (ModalView modalView in leftScreen.GetComponentsInChildren <ModalView>()) { modalView.OnDisable(); } BeatSaberUI.MainFlowCoordinator.InvokeMethod <object, FlowCoordinator>("SetLeftScreenViewController", menuButtonsViewController, ViewController.AnimationType.None); }
private ViewController GetViewController(Screen screen) { return(screen.GetField <ViewController, Screen>("_rootViewController")); }