@@ -42,9 +42,10 @@ public partial class TopHeaderContainer : CompositeDrawable
42
42
private ExternalLinkButton openUserExternally = null ! ;
43
43
private OsuSpriteText titleText = null ! ;
44
44
private UpdateableFlag userFlag = null ! ;
45
- private UpdateableTeamFlag teamFlag = null ! ;
46
45
private OsuHoverContainer userCountryContainer = null ! ;
47
46
private OsuSpriteText userCountryText = null ! ;
47
+ private UpdateableTeamFlag teamFlag = null ! ;
48
+ private OsuSpriteText teamText = null ! ;
48
49
private GroupBadgeFlow groupBadgeFlow = null ! ;
49
50
private ToggleCoverButton coverToggle = null ! ;
50
51
private PreviousUsernamesDisplay previousUsernamesDisplay = null ! ;
@@ -155,33 +156,58 @@ private void load(OverlayColourProvider colourProvider, OsuConfigManager configM
155
156
titleText = new OsuSpriteText
156
157
{
157
158
Font = OsuFont . GetFont ( size : 16 , weight : FontWeight . Regular ) ,
158
- Margin = new MarginPadding { Bottom = 5 }
159
+ Margin = new MarginPadding { Bottom = 3 } ,
159
160
} ,
160
161
new FillFlowContainer
161
162
{
163
+ Margin = new MarginPadding { Top = 3 } ,
162
164
AutoSizeAxes = Axes . Both ,
163
165
Direction = FillDirection . Horizontal ,
166
+ Spacing = new Vector2 ( 10 , 0 ) ,
164
167
Children = new Drawable [ ]
165
168
{
166
- userFlag = new UpdateableFlag
167
- {
168
- Size = new Vector2 ( 28 , 20 ) ,
169
- } ,
170
- teamFlag = new UpdateableTeamFlag
169
+ new FillFlowContainer
171
170
{
172
- Size = new Vector2 ( 40 , 20 ) ,
171
+ AutoSizeAxes = Axes . Both ,
172
+ Direction = FillDirection . Horizontal ,
173
+ Spacing = new Vector2 ( 4 , 0 ) ,
174
+ Children = new Drawable [ ]
175
+ {
176
+ userFlag = new UpdateableFlag
177
+ {
178
+ Size = new Vector2 ( 28 , 20 ) ,
179
+ } ,
180
+ userCountryContainer = new OsuHoverContainer
181
+ {
182
+ AutoSizeAxes = Axes . Both ,
183
+ Anchor = Anchor . CentreLeft ,
184
+ Origin = Anchor . CentreLeft ,
185
+ Child = userCountryText = new OsuSpriteText
186
+ {
187
+ Font = OsuFont . GetFont ( size : 14f , weight : FontWeight . Regular ) ,
188
+ } ,
189
+ } ,
190
+ }
173
191
} ,
174
- userCountryContainer = new OsuHoverContainer
192
+ new FillFlowContainer
175
193
{
176
194
AutoSizeAxes = Axes . Both ,
177
- Anchor = Anchor . CentreLeft ,
178
- Origin = Anchor . CentreLeft ,
179
- Margin = new MarginPadding { Left = 5 } ,
180
- Child = userCountryText = new OsuSpriteText
195
+ Direction = FillDirection . Horizontal ,
196
+ Spacing = new Vector2 ( 4 , 0 ) ,
197
+ Children = new Drawable [ ]
181
198
{
182
- Font = OsuFont . GetFont ( size : 14f , weight : FontWeight . Regular ) ,
183
- } ,
184
- } ,
199
+ teamFlag = new UpdateableTeamFlag
200
+ {
201
+ Size = new Vector2 ( 40 , 20 ) ,
202
+ } ,
203
+ teamText = new OsuSpriteText
204
+ {
205
+ Anchor = Anchor . CentreLeft ,
206
+ Origin = Anchor . CentreLeft ,
207
+ Font = OsuFont . GetFont ( size : 14f , weight : FontWeight . Regular ) ,
208
+ } ,
209
+ }
210
+ }
185
211
}
186
212
} ,
187
213
}
@@ -220,9 +246,10 @@ private void updateUser(UserProfileData? data)
220
246
usernameText . Text = user ? . Username ?? string . Empty ;
221
247
openUserExternally . Link = $@ "{ api . Endpoints . WebsiteUrl } /users/{ user ? . Id ?? 0 } ";
222
248
userFlag . CountryCode = user ? . CountryCode ?? default ;
223
- teamFlag . Team = user ? . Team ;
224
249
userCountryText . Text = ( user ? . CountryCode ?? default ) . GetDescription ( ) ;
225
250
userCountryContainer . Action = ( ) => rankingsOverlay ? . ShowCountry ( user ? . CountryCode ?? default ) ;
251
+ teamFlag . Team = user ? . Team ;
252
+ teamText . Text = user ? . Team ? . Name ?? string . Empty ;
226
253
supporterTag . SupportLevel = user ? . SupportLevel ?? 0 ;
227
254
titleText . Text = user ? . Title ?? string . Empty ;
228
255
titleText . Colour = Color4Extensions . FromHex ( user ? . Colour ?? "fff" ) ;
0 commit comments