mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 10:17:19 +08:00
Fix lookup check not being updated to use prefix
This commit is contained in:
parent
df1db8611c
commit
05f1017c28
@ -325,9 +325,9 @@ namespace osu.Game.Skinning
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private const string score_font = "score";
|
private string scorePrefix => GetConfig<LegacySkinConfiguration.LegacySetting, string>(LegacySkinConfiguration.LegacySetting.ScorePrefix)?.Value ?? "score";
|
||||||
|
|
||||||
private bool hasScoreFont => this.HasFont(score_font);
|
private bool hasScoreFont => this.HasFont(scorePrefix);
|
||||||
|
|
||||||
public override Drawable GetDrawableComponent(ISkinComponent component)
|
public override Drawable GetDrawableComponent(ISkinComponent component)
|
||||||
{
|
{
|
||||||
@ -351,7 +351,6 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
case HUDSkinComponents.ScoreText:
|
case HUDSkinComponents.ScoreText:
|
||||||
case HUDSkinComponents.AccuracyText:
|
case HUDSkinComponents.AccuracyText:
|
||||||
string scorePrefix = GetConfig<LegacySkinConfiguration.LegacySetting, string>(LegacySkinConfiguration.LegacySetting.ScorePrefix)?.Value ?? "score";
|
|
||||||
int scoreOverlap = GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2;
|
int scoreOverlap = GetConfig<LegacySkinConfiguration.LegacySetting, int>(LegacySkinConfiguration.LegacySetting.ScoreOverlap)?.Value ?? -2;
|
||||||
return new LegacySpriteText(this, scorePrefix)
|
return new LegacySpriteText(this, scorePrefix)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user