mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Always show placeholder on unknown / missing country
This commit is contained in:
parent
b026309e36
commit
e887f93eca
@ -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
|
||||
|
@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +165,6 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
userFlag = new UpdateableFlag
|
||||
{
|
||||
Size = new Vector2(28, 20),
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
userCountryContainer = new OsuHoverContainer
|
||||
{
|
||||
|
@ -99,7 +99,6 @@ namespace osu.Game.Overlays.Rankings.Tables
|
||||
new UpdateableFlag(GetCountryCode(item))
|
||||
{
|
||||
Size = new Vector2(28, 20),
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
CreateFlagContent(item)
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user