internal void HandleDidSelectSong(BeatSaverSharp.Beatmap song, Texture2D cover = null)
 {
     _songDetailView.ClearData();
     _songDescriptionView.ClearData();
     if (!_songDetailView.isInViewControllerHierarchy)
     {
         PushViewControllerToNavigationController(_moreSongsNavigationcontroller, _songDetailView);
     }
     SetRightScreenViewController(_songDescriptionView);
     _songDescriptionView.Initialize(song);
     _songDetailView.Initialize(song, cover);
 }
Exemple #2
0
 internal void HandleDidSelectSong(StrongBox <BeatSaverSharp.Beatmap> song, Texture2D cover = null)
 {
     _songDetailView.ClearData();
     _songDescriptionView.ClearData();
     if (!_moreSongsView.MultiSelectEnabled)
     {
         if (!_songDetailView.isInViewControllerHierarchy)
         {
             PushViewControllerToNavigationController(_moreSongsNavigationcontroller, _songDetailView);
         }
         SetRightScreenViewController(_songDescriptionView);
         _songDetailView.Initialize(song, cover);
     }
     else
     {
         int    count   = _moreSongsView._multiSelectSongs.Count;
         string grammar = count > 1 ? "Songs" : "Song";
         _multiSelectDetailView.MultiDownloadText = $"Add {count} {grammar} To Queue";
     }
 }
Exemple #3
0
        private void HandleDidSelectSong(StrongBox <Beatmap> song, Sprite cover = null)
        {
            _songDetailView.ClearData();
            _songDescriptionView.ClearData();

            if (!_moreSongsView.MultiSelectEnabled)
            {
                if (!_songDetailView.isInViewControllerHierarchy)
                {
                    PushViewControllerToNavigationController(_moreSongsNavigationController, _songDetailView);
                }

                SetRightScreenViewController(_songDescriptionView, ViewController.AnimationType.None);
                _songDetailView.Initialize(song, cover);
            }
            else
            {
                var count   = _moreSongsView.MultiSelectSongs.Count;
                var grammar = count > 1 ? "Songs" : "Song";

                _multiSelectDetailView.MultiDownloadText = $"Add {count} {grammar} To Queue";
            }
        }