Fix code quality issues

This commit is contained in:
Henry Lin 2022-01-17 21:32:13 +08:00
parent c49cd60487
commit eddf453294
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,6 @@
// 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.
namespace osu.Game.Rulesets.Difficulty
{
/// <summary>

View File

@ -24,8 +24,6 @@ public class PerformanceStatistic : StatisticDisplay, IHasCustomTooltip<Performa
private RollingCounter<int> counter;
private PerformanceAttributes attributes;
public PerformanceStatistic(ScoreInfo score)
: base("PP")
{
@ -43,7 +41,7 @@ private void setPerformanceValue(PerformanceAttributes pp)
{
if (pp != null)
{
attributes = pp;
TooltipContent = pp;
performance.Value = (int)Math.Round(pp.Total, MidpointRounding.AwayFromZero);
}
}
@ -68,6 +66,6 @@ protected override void Dispose(bool isDisposing)
public ITooltip<PerformanceAttributes> GetCustomTooltip() => new PerformanceStatisticTooltip();
public PerformanceAttributes TooltipContent => attributes;
public PerformanceAttributes TooltipContent { get; private set; }
}
}

View File

@ -1,5 +1,6 @@
// 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 System;
using System.Globalization;
using System.Linq;