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); } }
public static void LaunchServerBrowser() { MpModeSelection.PresentViewController(ServerBrowserViewController, animationDirection: AnimationDirection.Horizontal); }