mirror of https://github.com/ppy/osu
Rename placeholder display flag property to make sense
This commit is contained in:
parent
9c81241f4c
commit
4968859e69
|
@ -168,7 +168,7 @@ private Drawable[] createContent(int index, ScoreInfo score)
|
|||
new UpdateableFlag(score.User.Country)
|
||||
{
|
||||
Size = new Vector2(19, 14),
|
||||
ShowPlaceholderOnNull = false,
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
username,
|
||||
new OsuSpriteText
|
||||
|
|
|
@ -120,7 +120,7 @@ public TopScoreUserSection()
|
|||
Origin = Anchor.CentreLeft,
|
||||
Size = new Vector2(19, 14),
|
||||
Margin = new MarginPadding { Top = 3 }, // makes spacing look more even
|
||||
ShowPlaceholderOnNull = false,
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ private void load(OverlayColourProvider colourProvider)
|
|||
userFlag = new UpdateableFlag
|
||||
{
|
||||
Size = new Vector2(28, 20),
|
||||
ShowPlaceholderOnNull = false,
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
userCountryText = new OsuSpriteText
|
||||
{
|
||||
|
|
|
@ -100,7 +100,7 @@ protected sealed override Drawable CreateHeader(int index, TableColumn column)
|
|||
new UpdateableFlag(GetCountry(item))
|
||||
{
|
||||
Size = new Vector2(28, 20),
|
||||
ShowPlaceholderOnNull = false,
|
||||
ShowPlaceholderOnUnknown = false,
|
||||
},
|
||||
CreateFlagContent(item)
|
||||
}
|
||||
|
|
|
@ -22,9 +22,9 @@ public Country Country
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether to show a place holder on null country.
|
||||
/// Whether to show a place holder on unknown country.
|
||||
/// </summary>
|
||||
public bool ShowPlaceholderOnNull = true;
|
||||
public bool ShowPlaceholderOnUnknown = true;
|
||||
|
||||
/// <summary>
|
||||
/// Perform an action in addition to showing the country ranking.
|
||||
|
@ -39,7 +39,7 @@ public UpdateableFlag(Country country = default)
|
|||
|
||||
protected override Drawable CreateDrawable(Country country)
|
||||
{
|
||||
if (country == default && !ShowPlaceholderOnNull)
|
||||
if (country == default && !ShowPlaceholderOnUnknown)
|
||||
return null;
|
||||
|
||||
return new Container
|
||||
|
|
Loading…
Reference in New Issue