1
0
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:
Tom94 2016-11-24 20:25:29 +01:00
parent d9de35141e
commit 495cb926f7

View File

@ -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);
}
}
}