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:
parent
e9c4b67cf4
commit
3ce6d1fea1
@ -9,6 +9,5 @@ namespace osu.Game.Skinning
|
|||||||
ScoreCounter,
|
ScoreCounter,
|
||||||
ScoreText,
|
ScoreText,
|
||||||
AccuracyCounter,
|
AccuracyCounter,
|
||||||
AccuracyText
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user