コード例 #1
0
 private static void OnFilterSongRequestsShot()
 {
     songListControls.FilterExtras(); // this seems to fix duplicated songs;
     if (!requestFilterActive)
     {
         requestFilterActive = true;
         requestButtonSelectedIndicator.SetActive(true);
         ShowAdditionalGUI();
     }
     else
     {
         DisableFilter();
     }
     songSelect.ShowSongList();
 }
コード例 #2
0
        private static void OnFilterHit(string filterId)
        {
            songListControls.FilterExtras(); // this seems to fix duplicated songs
            Filter filter = filters[filterId];

            if (!filter.IsActive)
            {
                filter.IsActive    = true;
                filterStateChanged = true;
                filter.ButtonSelectedIndicator.SetActive(true);
                filter.OnHit();

                DisableCustomFilters(filterId);
            }
            else
            {
                DisableCustomFilters();
            }
            songSelect.ShowSongList();
        }