mirror of
https://github.com/ppy/osu
synced 2025-02-16 10:07:11 +00:00
Make CreateIcon a property
This commit is contained in:
parent
a7c22ebe88
commit
343166f158
@ -14,7 +14,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
public override string TooltipText => "followers";
|
||||
|
||||
protected override IconUsage CreateIcon() => FontAwesome.Solid.User;
|
||||
protected override IconUsage CreateIcon => FontAwesome.Solid.User;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
|
@ -14,7 +14,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
public override string TooltipText => "mapping subscribers";
|
||||
|
||||
protected override IconUsage CreateIcon() => FontAwesome.Solid.Bell;
|
||||
protected override IconUsage CreateIcon => FontAwesome.Solid.Bell;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Icon = CreateIcon(),
|
||||
Icon = CreateIcon,
|
||||
FillMode = FillMode.Fit,
|
||||
Size = new Vector2(50, 14)
|
||||
},
|
||||
@ -45,7 +45,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
};
|
||||
}
|
||||
|
||||
protected abstract IconUsage CreateIcon();
|
||||
protected abstract IconUsage CreateIcon { get; }
|
||||
|
||||
protected void SetValue(int value) => drawableText.Text = value.ToString("#,##0");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user