@@ -65,7 +65,8 @@ public partial class LeaderboardScoreV2 : OsuClickableContainer, IHasContextMenu
65
65
private Colour4 backgroundColour ;
66
66
private ColourInfo totalScoreBackgroundGradient ;
67
67
68
- private static readonly Vector2 shear = new Vector2 ( 0.15f , 0 ) ;
68
+ // TODO: once https://github.com/ppy/osu/pull/28183 is merged, probably use OsuGame.SHEAR
69
+ public static readonly Vector2 SHEAR = new Vector2 ( 0.15f , 0 ) ;
69
70
70
71
[ Resolved ]
71
72
private OverlayColourProvider colourProvider { get ; set ; } = null ! ;
@@ -112,7 +113,7 @@ public LeaderboardScoreV2(ScoreInfo score, int? rank, bool isPersonalBest = fals
112
113
this . rank = rank ;
113
114
this . isPersonalBest = isPersonalBest ;
114
115
115
- Shear = shear ;
116
+ Shear = SHEAR ;
116
117
RelativeSizeAxes = Axes . X ;
117
118
Height = height ;
118
119
}
@@ -245,7 +246,7 @@ private void updateModDisplay()
245
246
{
246
247
RelativeSizeAxes = Axes . Both ,
247
248
User = score . User ,
248
- Shear = - shear ,
249
+ Shear = - SHEAR ,
249
250
Anchor = Anchor . BottomLeft ,
250
251
Origin = Anchor . BottomLeft ,
251
252
Colour = ColourInfo . GradientHorizontal ( Colour4 . White . Opacity ( 0.5f ) , Colour4 . FromHex ( @"222A27" ) . Opacity ( 1 ) ) ,
@@ -276,7 +277,7 @@ private void updateModDisplay()
276
277
Anchor = Anchor . Centre ,
277
278
Origin = Anchor . Centre ,
278
279
Scale = new Vector2 ( 1.1f ) ,
279
- Shear = - shear ,
280
+ Shear = - SHEAR ,
280
281
RelativeSizeAxes = Axes . Both ,
281
282
} )
282
283
{
@@ -316,7 +317,7 @@ private void updateModDisplay()
316
317
{
317
318
flagBadgeAndDateContainer = new FillFlowContainer
318
319
{
319
- Shear = - shear ,
320
+ Shear = - SHEAR ,
320
321
Direction = FillDirection . Horizontal ,
321
322
Spacing = new Vector2 ( 5 ) ,
322
323
AutoSizeAxes = Axes . Both ,
@@ -340,7 +341,7 @@ private void updateModDisplay()
340
341
nameLabel = new TruncatingSpriteText
341
342
{
342
343
RelativeSizeAxes = Axes . X ,
343
- Shear = - shear ,
344
+ Shear = - SHEAR ,
344
345
Text = user . Username ,
345
346
Font = OsuFont . GetFont ( size : 20 , weight : FontWeight . SemiBold )
346
347
}
@@ -356,7 +357,7 @@ private void updateModDisplay()
356
357
Name = @"Statistics container" ,
357
358
Padding = new MarginPadding { Right = 40 } ,
358
359
Spacing = new Vector2 ( 25 , 0 ) ,
359
- Shear = - shear ,
360
+ Shear = - SHEAR ,
360
361
Anchor = Anchor . CentreRight ,
361
362
Origin = Anchor . CentreRight ,
362
363
AutoSizeAxes = Axes . Both ,
@@ -414,7 +415,7 @@ private void updateModDisplay()
414
415
} ,
415
416
RankContainer = new Container
416
417
{
417
- Shear = - shear ,
418
+ Shear = - SHEAR ,
418
419
Anchor = Anchor . CentreRight ,
419
420
Origin = Anchor . CentreRight ,
420
421
RelativeSizeAxes = Axes . Y ,
@@ -472,15 +473,15 @@ private void updateModDisplay()
472
473
Anchor = Anchor . TopRight ,
473
474
Origin = Anchor . TopRight ,
474
475
UseFullGlyphHeight = false ,
475
- Shear = - shear ,
476
+ Shear = - SHEAR ,
476
477
Current = scoreManager . GetBindableTotalScoreString ( score ) ,
477
478
Font = OsuFont . GetFont ( size : 30 , weight : FontWeight . Light ) ,
478
479
} ,
479
480
modsContainer = new FillFlowContainer
480
481
{
481
482
Anchor = Anchor . TopRight ,
482
483
Origin = Anchor . TopRight ,
483
- Shear = - shear ,
484
+ Shear = - SHEAR ,
484
485
AutoSizeAxes = Axes . Both ,
485
486
Direction = FillDirection . Horizontal ,
486
487
Spacing = new Vector2 ( 2f , 0f ) ,
@@ -665,7 +666,7 @@ public RankLabel(int? rank)
665
666
666
667
Child = new OsuSpriteText
667
668
{
668
- Shear = - shear ,
669
+ Shear = - SHEAR ,
669
670
Anchor = Anchor . Centre ,
670
671
Origin = Anchor . Centre ,
671
672
Font = OsuFont . GetFont ( size : 20 , weight : FontWeight . SemiBold , italics : true ) ,
0 commit comments