1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Always show placeholder on unknown / missing country

This commit is contained in:
Dean Herbert 2024-05-10 22:45:59 +08:00
parent b026309e36
commit e887f93eca
No known key found for this signature in database
5 changed files with 0 additions and 12 deletions

View File

@ -160,7 +160,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
new UpdateableFlag(score.User.CountryCode)
{
Size = new Vector2(19, 14),
ShowPlaceholderOnUnknown = false,
},
username,
#pragma warning disable 618

View File

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

View File

@ -165,7 +165,6 @@ namespace osu.Game.Overlays.Profile.Header
userFlag = new UpdateableFlag
{
Size = new Vector2(28, 20),
ShowPlaceholderOnUnknown = false,
},
userCountryContainer = new OsuHoverContainer
{

View File

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

View File

@ -27,11 +27,6 @@ namespace osu.Game.Users.Drawables
}
}
/// <summary>
/// Whether to show a placeholder on unknown country.
/// </summary>
public bool ShowPlaceholderOnUnknown = true;
/// <summary>
/// Perform an action in addition to showing the country ranking.
/// This should be used to perform auxiliary tasks and not as a primary action for clicking a flag (to maintain a consistent UX).
@ -57,9 +52,6 @@ namespace osu.Game.Users.Drawables
protected override Drawable? CreateDrawable(CountryCode countryCode)
{
if (countryCode == CountryCode.Unknown && !ShowPlaceholderOnUnknown)
return null;
return new Container
{
RelativeSizeAxes = Axes.Both,