Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public partial class RankedPlayMatchPanel : CompositeDrawable
private Drawable rightResultLight = null!;
private OsuSpriteText leftLifeText = null!;
private OsuSpriteText rightLifeText = null!;
private OsuSpriteText leftRatingChangeText = null!;
private OsuSpriteText rightRatingChangeText = null!;

public RankedPlayMatchPanel(RankedPlayRoomState state)
{
Expand Down Expand Up @@ -315,6 +317,68 @@ private void load()
UseFullGlyphHeight = false,
}
},
},
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{
new IconWithTooltip
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(10),
Colour = colourProvider.Foreground1,
Icon = FontAwesome.Solid.Columns,
TooltipText = "Elo Score",
},
new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreRight,
X = -15,
Colour = colourProvider.Foreground1,
Text = users[0].Info.RatingAfter.ToString(),
UseFullGlyphHeight = false,
},
new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft,
X = 15,
Colour = colourProvider.Foreground1,
Text = users[1].Info.RatingAfter.ToString(),
UseFullGlyphHeight = false,
}
},
},
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{
leftRatingChangeText = new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreRight,
X = -15,
Colour = colourProvider.Foreground1,
Text = $"({users[0].Info.RatingAfter - users[0].Info.Rating:+0;-0;+0})",
UseFullGlyphHeight = false,
},
rightRatingChangeText = new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft,
X = 15,
Colour = colourProvider.Foreground1,
Text = $"({users[1].Info.RatingAfter - users[1].Info.Rating:+0;-0;+0})",
UseFullGlyphHeight = false,
},
}

}
}
}
Expand Down Expand Up @@ -371,6 +435,9 @@ private void load()

leftLifeText.Colour = userLeft.Colour = Color4.White;
leftLifeText.Font = OsuFont.GetFont(weight: FontWeight.SemiBold);

leftRatingChangeText.Colour = colours.GreenDark;
rightRatingChangeText.Colour = colours.RedDark;
}
else if (rightWin)
{
Expand All @@ -379,6 +446,9 @@ private void load()

rightLifeText.Colour = userRight.Colour = Color4.White;
rightLifeText.Font = OsuFont.GetFont(weight: FontWeight.SemiBold);

leftRatingChangeText.Colour = colours.RedDark;
rightRatingChangeText.Colour = colours.GreenDark;
}
}

Expand Down
Loading