1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 08:12:56 +08:00

Rename class and add xmldoc

This commit is contained in:
Dean Herbert 2021-01-26 19:15:19 +09:00
parent a5f3418e56
commit 64a3c712aa
2 changed files with 7 additions and 4 deletions

View File

@ -123,7 +123,7 @@ namespace osu.Game.Tournament.Components
if (!string.IsNullOrEmpty(mod)) if (!string.IsNullOrEmpty(mod))
{ {
AddInternal(new TournamentModDisplay(mod) AddInternal(new TournamentModIcon(mod)
{ {
Anchor = Anchor.CentreRight, Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,

View File

@ -14,16 +14,19 @@ using osuTK;
namespace osu.Game.Tournament.Components namespace osu.Game.Tournament.Components
{ {
public class TournamentModDisplay : CompositeDrawable /// <summary>
/// Mod icon displayed in tournament usages, allowing user overridden graphics.
/// </summary>
public class TournamentModIcon : CompositeDrawable
{ {
private readonly string modAcronym; private readonly string modAcronym;
[Resolved] [Resolved]
private RulesetStore rulesets { get; set; } private RulesetStore rulesets { get; set; }
public TournamentModDisplay(string mod) public TournamentModIcon(string modAcronym)
{ {
modAcronym = mod; this.modAcronym = modAcronym;
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]