1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:52:55 +08:00

Remove unnecessary AccuracyText enum

All elements use "score" regardless.
This commit is contained in:
Dean Herbert 2020-10-16 17:36:15 +09:00
parent e9c4b67cf4
commit 3ce6d1fea1
3 changed files with 1 additions and 3 deletions

View File

@ -9,6 +9,5 @@ namespace osu.Game.Skinning
ScoreCounter, ScoreCounter,
ScoreText, ScoreText,
AccuracyCounter, AccuracyCounter,
AccuracyText
} }
} }

View File

@ -29,7 +29,7 @@ namespace osu.Game.Skinning
[Resolved(canBeNull: true)] [Resolved(canBeNull: true)]
private HUDOverlay hud { get; set; } private HUDOverlay hud { get; set; }
protected sealed override OsuSpriteText CreateSpriteText() => skin?.GetDrawableComponent(new HUDSkinComponent(HUDSkinComponents.AccuracyText)) as OsuSpriteText ?? new OsuSpriteText(); protected sealed override OsuSpriteText CreateSpriteText() => skin?.GetDrawableComponent(new HUDSkinComponent(HUDSkinComponents.ScoreText)) as OsuSpriteText ?? new OsuSpriteText();
protected override void Update() protected override void Update()
{ {

View File

@ -350,7 +350,6 @@ namespace osu.Game.Skinning
return new LegacyAccuracyCounter(this); return new LegacyAccuracyCounter(this);
case HUDSkinComponents.ScoreText: case HUDSkinComponents.ScoreText:
case HUDSkinComponents.AccuracyText:
return new LegacySpriteText(this, scorePrefix) return new LegacySpriteText(this, scorePrefix)
{ {
Spacing = new Vector2(-(GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2), 0) Spacing = new Vector2(-(GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2), 0)