1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 07:17:18 +08:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
804 B
C#
Raw Normal View History

2020-03-18 17:21:57 +09:00
// 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.Game.Graphics;
using osu.Game.Rulesets.Scoring;
2020-10-07 15:35:04 +09:00
using osu.Game.Scoring;
2020-03-18 17:21:57 +09:00
namespace osu.Game.Screens.Ranking.Expanded.Statistics
{
public partial class HitResultStatistic : CounterStatistic
{
2020-10-07 16:17:08 +09:00
public readonly HitResult Result;
2020-03-18 17:21:57 +09:00
2020-10-07 15:35:04 +09:00
public HitResultStatistic(HitResultDisplayStatistic result)
: base(result.DisplayName, result.Count, result.MaxCount)
2020-03-18 17:21:57 +09:00
{
2020-10-07 16:17:08 +09:00
Result = result.Result;
2020-03-18 17:21:57 +09:00
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
2020-10-07 16:17:08 +09:00
HeaderText.Colour = colours.ForHitResult(Result);
2020-03-18 17:21:57 +09:00
}
}
}