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 @@ private void load(LadderInfo ladder, TextureStore textures)
if (!string.IsNullOrEmpty(mod))
{
AddInternal(new TournamentModDisplay(mod)
AddInternal(new TournamentModIcon(mod)
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,

View File

@ -14,16 +14,19 @@
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;
[Resolved]
private RulesetStore rulesets { get; set; }
public TournamentModDisplay(string mod)
public TournamentModIcon(string modAcronym)
{
modAcronym = mod;
this.modAcronym = modAcronym;
}
[BackgroundDependencyLoader]