mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 00:42:55 +08:00
add description
This commit is contained in:
parent
8beb168be9
commit
d60349c7c6
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System.ComponentModel;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
@ -11,7 +12,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
public abstract partial class GameplayAccuracyCounter : PercentageCounter
|
public abstract partial class GameplayAccuracyCounter : PercentageCounter
|
||||||
{
|
{
|
||||||
[SettingSource("Accuracy Display Mode")]
|
[SettingSource("Accuracy Display Mode", "Which Accuracy will display")]
|
||||||
public Bindable<AccuracyType> AccuracyDisplay { get; } = new Bindable<AccuracyType>();
|
public Bindable<AccuracyType> AccuracyDisplay { get; } = new Bindable<AccuracyType>();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -23,7 +24,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
switch (mod.NewValue)
|
switch (mod.NewValue)
|
||||||
{
|
{
|
||||||
case AccuracyType.Current:
|
case AccuracyType.Rolling:
|
||||||
Current.BindTo(scoreProcessor.Accuracy);
|
Current.BindTo(scoreProcessor.Accuracy);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -40,8 +41,13 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
public enum AccuracyType
|
public enum AccuracyType
|
||||||
{
|
{
|
||||||
Current,
|
[Description("Rolling")]
|
||||||
|
Rolling,
|
||||||
|
|
||||||
|
[Description("Best achievable")]
|
||||||
Increase,
|
Increase,
|
||||||
|
|
||||||
|
[Description("Worst achievable")]
|
||||||
Decrease
|
Decrease
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user