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:
parent
215b016f32
commit
f65eaa6566
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user