mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 13:47:19 +09:00
32 lines
913 B
C#
32 lines
913 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|
{
|
|
public class DrawableTotalScore : DrawableScore
|
|
{
|
|
public DrawableTotalScore(Score score)
|
|
: base(score)
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
RightFlowContainer.Add(new OsuSpriteText
|
|
{
|
|
Text = Score.TotalScore.ToString("#,###"),
|
|
Anchor = Anchor.TopRight,
|
|
Origin = Anchor.TopRight,
|
|
TextSize = 18,
|
|
Font = "Exo2.0-BoldItalic",
|
|
});
|
|
}
|
|
}
|
|
}
|