mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Nuke calculating everything
The whole component is pointless so I'm just going to nuke for now I guess. Kind of makes the whole refactor effort pointless but oh well? To expand on this, the implementation was actually incorrect as pointed out at https://github.com/ppy/osu/pull/18819#pullrequestreview-1017886035.
This commit is contained in:
@ -53,7 +53,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
private Action<BeatmapInfo> hideRequested;
|
||||
|
||||
private Triangles triangles;
|
||||
|
||||
private StarCounter starCounter;
|
||||
private DifficultyIcon difficultyIcon;
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private BeatmapSetOverlay beatmapOverlay { get; set; }
|
||||
@ -113,7 +115,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
Origin = Anchor.CentreLeft,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new CalculatingDifficultyIcon(beatmapInfo)
|
||||
difficultyIcon = new DifficultyIcon(beatmapInfo)
|
||||
{
|
||||
ShowTooltip = false,
|
||||
Scale = new Vector2(1.8f),
|
||||
@ -217,6 +219,8 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
starDifficultyBindable.BindValueChanged(d =>
|
||||
{
|
||||
starCounter.Current = (float)(d.NewValue?.Stars ?? 0);
|
||||
if (d.NewValue != null)
|
||||
difficultyIcon.Current.Value = d.NewValue.Value;
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user