Handle multiple song previews playing in different beatmap categories on profile

This commit is contained in:
TocoToucan
2018-04-07 13:29:46 +03:00
parent 81981acc68
commit 640be621ac
2 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
@ -19,6 +20,8 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
private DirectPanel currentlyPlaying;
public event Action<DirectGridPanel> BeatmapAdded;
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, string header, string missing = "None... yet.")
: base(user, header, missing)
{
@ -63,6 +66,7 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
currentlyPlaying = panel;
};
BeatmapAdded?.Invoke(panel);
}
};