Exemple #1
0
 private void Controller_LoadFinished(BeatmapContext arg1, CancellationToken arg2)
 {
     Execute.OnUiThread(() =>
     {
         /* Set Lyric */
         SetLyricSynchronously();
     });
 }
Exemple #2
0
        private async void Controller_LoadStarted(BeatmapContext beatmapCtx, CancellationToken ct)
        {
            _beatmapCtx = beatmapCtx;
            await CloseVideoAsync();

            Execute.OnUiThread(() =>
            {
                BackImage.Opacity      = 1;
                BlendBorder.Visibility = Visibility.Collapsed;
            });

            AppSettings.Default.Play.PropertyChanged -= Play_PropertyChanged;
        }
Exemple #3
0
        private async void Controller_VideoLoadRequested(BeatmapContext beatmapCtx, CancellationToken ct)
        {
            if (VideoElement == null)
            {
                return;
            }

            if (!SharedVm.Default.EnableVideo)
            {
                return;
            }

            await InitVideoAsync(beatmapCtx);
        }
Exemple #4
0
 private void Controller_InterfaceClearRequest()
 {
     _beatmapCtx = null;
 }
Exemple #5
0
 private void Controller_LoadError(BeatmapContext arg1, Exception arg2)
 {
     _beatmapCtx = null;
 }
Exemple #6
0
 private void Controller_BackgroundInfoLoaded(BeatmapContext beatmapCtx, CancellationToken ct)
 {
     BackImage.Source = beatmapCtx.BeatmapDetail.BackgroundPath == null
         ? null
         : new BitmapImage(new Uri(beatmapCtx.BeatmapDetail.BackgroundPath));
 }
Exemple #7
0
 private void Controller_LoadFinished(BeatmapContext bc, System.Threading.CancellationToken arg2)
 {
     Offset.Value = bc.BeatmapConfig.Offset ?? 0;
 }
Exemple #8
0
 public BeatmapInfoWindow(BeatmapContext info)
 {
     InitializeComponent();
     DataContext = info;
     _info       = info;
 }