1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 02:09:54 +08:00

Display mod name, if SettingDescription is empty.

This commit is contained in:
wezwery
2025-03-15 17:12:11 +02:00
Unverified
parent c20b836d9c
commit ed61f87eed
@@ -221,18 +221,18 @@ namespace osu.Game.Online.Leaderboards
string description = mod.SettingDescription;
if (!string.IsNullOrEmpty(description))
if (string.IsNullOrEmpty(description))
description = mod.Name;
container.Add(new OsuSpriteText
{
container.Add(new OsuSpriteText
{
RelativeSizeAxes = Axes.Y,
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = mod.SettingDescription,
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
Margin = new MarginPadding { Top = 1 },
});
}
RelativeSizeAxes = Axes.Y,
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = description,
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
Margin = new MarginPadding { Top = 1 },
});
}
}
}