예제 #1
0
        public static void LaunchServerBrowser()
        {
            ViewController viewToMount;

            if (Plugin.Config.UseNativeBrowserPreview)
            {
                // Native browser preview (in development)
                NativeServerBrowser.SetUp();

                viewToMount = NativeServerBrowser.ViewController;
            }
            else
            {
                // Original custom BSML based browser
                if (_serverBrowserViewController == null)
                {
                    _serverBrowserViewController = BeatSaberUI.CreateViewController <ServerBrowserViewController>();
                }

                viewToMount = _serverBrowserViewController;
            }

            if (viewToMount != null)
            {
                MpModeSelection.PresentViewController(viewToMount);
            }
        }
예제 #2
0
 public static void LaunchServerBrowser()
 {
     MpModeSelection.PresentViewController(ServerBrowserViewController, animationDirection: AnimationDirection.Horizontal);
 }