mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 20:38:33 +08:00
28 lines
776 B
C#
28 lines
776 B
C#
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||
|
// See the LICENCE file in the repository root for full licence text.
|
||
|
|
||
|
using osu.Framework.Allocation;
|
||
|
using osu.Framework.Extensions;
|
||
|
using osu.Game.Graphics;
|
||
|
using osu.Game.Rulesets.Scoring;
|
||
|
|
||
|
namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
||
|
{
|
||
|
public class HitResultStatistic : CounterStatistic
|
||
|
{
|
||
|
private readonly HitResult result;
|
||
|
|
||
|
public HitResultStatistic(HitResult result, int count)
|
||
|
: base(result.GetDescription(), count)
|
||
|
{
|
||
|
this.result = result;
|
||
|
}
|
||
|
|
||
|
[BackgroundDependencyLoader]
|
||
|
private void load(OsuColour colours)
|
||
|
{
|
||
|
HeaderText.Colour = colours.ForHitResult(result);
|
||
|
}
|
||
|
}
|
||
|
}
|