Ejemplo n.º 1
0
        private void DeactivateScreen(Screen screen)
        {
            var go = screen.gameObject;

            if (go.activeSelf)
            {
                _deactivatedScreens.Add(go);
                go.SetActive(false);
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private ViewController GetViewController(Screen screen)
 {
     return(screen.GetField <ViewController, Screen>("_rootViewController"));
 }