mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 04:12:56 +08:00
Further simplify tooltip text creation
This commit is contained in:
parent
dd36942508
commit
58b6acde10
@ -15,14 +15,14 @@ namespace osu.Game.Users.Drawables
|
||||
{
|
||||
private readonly CountryCode countryCode;
|
||||
|
||||
public LocalisableString TooltipText => countryCode == CountryCode.Unknown ? string.Empty : description;
|
||||
public LocalisableString TooltipText => tooltipText;
|
||||
|
||||
private readonly string description;
|
||||
private readonly string tooltipText;
|
||||
|
||||
public DrawableFlag(CountryCode countryCode)
|
||||
{
|
||||
this.countryCode = countryCode;
|
||||
description = countryCode.GetDescription();
|
||||
tooltipText = countryCode == CountryCode.Unknown ? string.Empty : countryCode.GetDescription();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
Reference in New Issue
Block a user