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

Update flag sizes after switch to twemoji assets

The old flags used a size of 150x100, while the new assets based on
twemoji use a size of 150x108. Update existing usages to match this new
aspect ratio better.
This commit is contained in:
Bartłomiej Dach 2022-06-15 19:53:04 +02:00
parent c9cb4250bb
commit f88c568c8d
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
10 changed files with 10 additions and 10 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Tournament.Components
{ {
if (team == null) return; if (team == null) return;
Size = new Vector2(75, 50); Size = new Vector2(75, 54);
Masking = true; Masking = true;
CornerRadius = 5; CornerRadius = 5;
Child = flagSprite = new Sprite Child = flagSprite = new Sprite

View File

@ -310,7 +310,7 @@ namespace osu.Game.Tournament.Screens.Drawings.Components
public class ScrollingTeam : DrawableTournamentTeam public class ScrollingTeam : DrawableTournamentTeam
{ {
public const float WIDTH = 58; public const float WIDTH = 58;
public const float HEIGHT = 41; public const float HEIGHT = 44;
private readonly Box outline; private readonly Box outline;

View File

@ -183,7 +183,7 @@ namespace osu.Game.Online.Leaderboards
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Size = new Vector2(30f, 20f), Size = new Vector2(28, 20),
}, },
new DateLabel(Score.Date) new DateLabel(Score.Date)
{ {

View File

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

View File

@ -116,7 +116,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Size = new Vector2(19, 13), 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, ShowPlaceholderOnNull = false,
}, },

View File

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

View File

@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Rankings
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Size = new Vector2(30, 20) Size = new Vector2(28, 20)
}, },
countryName = new OsuSpriteText countryName = new OsuSpriteText
{ {

View File

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

View File

@ -125,7 +125,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Size = new Vector2(30, 20), Size = new Vector2(28, 20),
Country = user?.Country Country = user?.Country
}, },
new OsuSpriteText new OsuSpriteText

View File

@ -53,7 +53,7 @@ namespace osu.Game.Users
protected UpdateableFlag CreateFlag() => new UpdateableFlag(User.Country) protected UpdateableFlag CreateFlag() => new UpdateableFlag(User.Country)
{ {
Size = new Vector2(39, 26), Size = new Vector2(36, 26),
Action = Action, Action = Action,
}; };