1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Inline variable

This commit is contained in:
Dean Herbert 2020-10-16 17:35:35 +09:00
parent 05f1017c28
commit e9c4b67cf4

View File

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