Show scroll dragger, change behaviour when selecting playing song

This commit is contained in:
DrabWeb
2017-04-09 03:52:48 -03:00
parent 215b016f32
commit f65eaa6566
2 changed files with 8 additions and 2 deletions

View File

@ -104,9 +104,15 @@ namespace osu.Game.Overlays
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Top = player_height + 10 },
//todo: this is the logic I expect, but maybe not others
OnSelect = (set) =>
{
if ((current?.BeatmapSetInfo?.ID ?? -1) != set.ID) play(set.Beatmaps[0], true);
if (set.ID == (current?.BeatmapSetInfo?.ID ?? -1))
{
current?.Track?.Seek(0);
}
play(set.Beatmaps[0], true);
},
},
playerContainer = new Container