mirror of
https://github.com/ppy/osu.git
synced 2025-03-12 10:27:20 +08:00
Merge pull request #28786 from Joehuu/sort-direction-caret-transition
Add caret transition to beatmap listing sort tab items
This commit is contained in:
commit
13c8370823
@ -126,7 +126,8 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
AlwaysPresent = true,
|
AlwaysPresent = true,
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Size = new Vector2(6)
|
Size = new Vector2(6),
|
||||||
|
Icon = FontAwesome.Solid.CaretDown,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +137,7 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
|
|
||||||
SortDirection.BindValueChanged(direction =>
|
SortDirection.BindValueChanged(direction =>
|
||||||
{
|
{
|
||||||
icon.Icon = direction.NewValue == Overlays.SortDirection.Ascending && Active.Value ? FontAwesome.Solid.CaretUp : FontAwesome.Solid.CaretDown;
|
icon.ScaleTo(direction.NewValue == Overlays.SortDirection.Ascending && Active.Value ? new Vector2(1f, -1f) : Vector2.One, 300, Easing.OutQuint);
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user