mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 14:37:30 +08:00
Only add as many values as are replaced
This commit is contained in:
parent
8804769da1
commit
2de5e3392e
@ -76,8 +76,13 @@ namespace osu.Game.Skinning.Components
|
|||||||
|
|
||||||
foreach (var type in Enum.GetValues<BeatmapAttribute>())
|
foreach (var type in Enum.GetValues<BeatmapAttribute>())
|
||||||
{
|
{
|
||||||
numberedTemplate = numberedTemplate.Replace($"{{{{{type}}}}}", $"{{{values.Count}}}");
|
string replaced = numberedTemplate.Replace($@"{{{{{type}}}}}", $@"{{{values.Count}}}");
|
||||||
values.Add(getValueString(type));
|
|
||||||
|
if (numberedTemplate != replaced)
|
||||||
|
{
|
||||||
|
numberedTemplate = replaced;
|
||||||
|
values.Add(getValueString(type));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
text.Text = LocalisableString.Format(numberedTemplate, values.ToArray());
|
text.Text = LocalisableString.Format(numberedTemplate, values.ToArray());
|
||||||
|
Loading…
Reference in New Issue
Block a user