Rename placeholder display flag property to make sense

This commit is contained in:
Salman Ahmed 2022-07-16 06:07:53 +03:00
parent 9c81241f4c
commit 4968859e69
5 changed files with 7 additions and 7 deletions

View File

@ -168,7 +168,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
new UpdateableFlag(score.User.Country) new UpdateableFlag(score.User.Country)
{ {
Size = new Vector2(19, 14), Size = new Vector2(19, 14),
ShowPlaceholderOnNull = false, ShowPlaceholderOnUnknown = false,
}, },
username, username,
new OsuSpriteText new OsuSpriteText

View File

@ -120,7 +120,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Size = new Vector2(19, 14), Size = new Vector2(19, 14),
Margin = new MarginPadding { Top = 3 }, // makes spacing look more even Margin = new MarginPadding { Top = 3 }, // makes spacing look more even
ShowPlaceholderOnNull = false, ShowPlaceholderOnUnknown = false,
}, },
} }
} }

View File

@ -137,7 +137,7 @@ namespace osu.Game.Overlays.Profile.Header
userFlag = new UpdateableFlag userFlag = new UpdateableFlag
{ {
Size = new Vector2(28, 20), Size = new Vector2(28, 20),
ShowPlaceholderOnNull = false, ShowPlaceholderOnUnknown = false,
}, },
userCountryText = new OsuSpriteText userCountryText = new OsuSpriteText
{ {

View File

@ -100,7 +100,7 @@ namespace osu.Game.Overlays.Rankings.Tables
new UpdateableFlag(GetCountry(item)) new UpdateableFlag(GetCountry(item))
{ {
Size = new Vector2(28, 20), Size = new Vector2(28, 20),
ShowPlaceholderOnNull = false, ShowPlaceholderOnUnknown = false,
}, },
CreateFlagContent(item) CreateFlagContent(item)
} }

View File

@ -22,9 +22,9 @@ namespace osu.Game.Users.Drawables
} }
/// <summary> /// <summary>
/// Whether to show a place holder on null country. /// Whether to show a place holder on unknown country.
/// </summary> /// </summary>
public bool ShowPlaceholderOnNull = true; public bool ShowPlaceholderOnUnknown = true;
/// <summary> /// <summary>
/// Perform an action in addition to showing the country ranking. /// Perform an action in addition to showing the country ranking.
@ -39,7 +39,7 @@ namespace osu.Game.Users.Drawables
protected override Drawable CreateDrawable(Country country) protected override Drawable CreateDrawable(Country country)
{ {
if (country == default && !ShowPlaceholderOnNull) if (country == default && !ShowPlaceholderOnUnknown)
return null; return null;
return new Container return new Container