mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:12:57 +08:00
Add back left offset for selected set
This commit is contained in:
parent
3cfc0dc82d
commit
5c2f134665
@ -702,20 +702,10 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
visibleItems.Add(set);
|
visibleItems.Add(set);
|
||||||
yPositions.Add(currentY);
|
yPositions.Add(currentY);
|
||||||
//lastSet = set;
|
|
||||||
|
|
||||||
// TODO: move this logic to DCBS too.
|
|
||||||
// set.MoveToX(set.Item.State.Value == CarouselItemState.Selected ? -100 : 0, 500, Easing.OutExpo);
|
|
||||||
// set.MoveToY(currentY, 750, Easing.OutExpo);
|
|
||||||
currentY += set.TotalHeight + panel_padding;
|
currentY += set.TotalHeight + panel_padding;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
continue;
|
|
||||||
//
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -153,9 +152,11 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
beatmapSetState.BindValueChanged(setSelected, true);
|
beatmapSetState.BindValueChanged(setSelected, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSelected(ValueChangedEvent<CarouselItemState> obj)
|
private void setSelected(ValueChangedEvent<CarouselItemState> selected)
|
||||||
{
|
{
|
||||||
switch (obj.NewValue)
|
BorderContainer.MoveToX(selected.NewValue == CarouselItemState.Selected ? -100 : 0, 500, Easing.OutExpo);
|
||||||
|
|
||||||
|
switch (selected.NewValue)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
foreach (var beatmap in beatmapContainer)
|
foreach (var beatmap in beatmapContainer)
|
||||||
|
Loading…
Reference in New Issue
Block a user