Exemplo n.º 1
0
        internal IEnumerator RefreshButtonFlow()
        {
            Loader.Instance.RefreshSongs();
            yield return(new WaitUntil(() => Loader.AreSongsLoaded == true));

            PlaylistCollectionOverride.refreshPlaylists();
        }
Exemplo n.º 2
0
        internal IEnumerator RefreshButtonFlow()
        {
            if (!Loader.AreSongsLoading)
            {
                Loader.Instance.RefreshSongs(fullRefresh: false);
            }

            yield return(new WaitUntil(() => Loader.AreSongsLoaded == true));

            int numPlaylists = PlaylistCollectionOverride.RefreshPlaylists();

            _progressBar.enabled = true;
            _progressBar.ShowMessage(string.Format("\n{0} playlists loaded.", numPlaylists), MESSAGE_TIME);
        }
Exemplo n.º 3
0
        internal IEnumerator RefreshButtonFlow()
        {
            if (!Loader.AreSongsLoading)
            {
                Loader.Instance.RefreshSongs();
            }
            yield return(new WaitUntil(() => Loader.AreSongsLoaded == true));

            StartCoroutine(PlaylistCollectionOverride.RefreshPlaylists());
            yield return(new WaitWhile(() => !this.ArePlaylistsLoaded || this.ArePlaylistsLoading));

            _progressBar.enabled = true;
            _progressBar.ShowMessage(string.Format("\n{0} playlists loaded.", LoadPlaylistScript.Current.Count), MESSAGE_TIME);
        }
Exemplo n.º 4
0
 internal void RefreshButtonFlow()
 {
     PlaylistCollectionOverride.refreshPlaylists();
 }