mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Move beatmap panels back to an X of 0 when they are unselected.
This commit is contained in:
parent
d9de35141e
commit
495cb926f7
@ -77,11 +77,11 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
foreach (BeatmapPanel panel in group.BeatmapPanels)
|
||||
{
|
||||
panel.MoveToX(-50, 500, EasingTypes.OutExpo);
|
||||
|
||||
if (panel == SelectedPanel)
|
||||
selectedY = currentY + panel.DrawHeight / 2 - DrawHeight / 2;
|
||||
|
||||
panel.MoveToX(-50, 500, EasingTypes.OutExpo);
|
||||
|
||||
movePanel(panel, true, ref currentY);
|
||||
}
|
||||
}
|
||||
@ -90,7 +90,10 @@ namespace osu.Game.Screens.Select
|
||||
group.Header.MoveToX(0, 500, EasingTypes.OutExpo);
|
||||
|
||||
foreach (BeatmapPanel panel in group.BeatmapPanels)
|
||||
{
|
||||
panel.MoveToX(0, 500, EasingTypes.OutExpo);
|
||||
movePanel(panel, false, ref currentY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user