1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +08:00

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

View File

@ -111,7 +111,7 @@ namespace osu.Game.Overlays
search.HoldFocus = true;
songList.ScrollContainer.ScrollDraggerVisible = false;
songList.ScrollContainer.ScrollDraggerVisible = true;
ResizeTo(new Vector2(1f), transition_duration, EasingTypes.OutQuint);
}