2023-10-26 13:58:47 +08: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.
|
|
|
|
|
2023-11-08 06:48:21 +08:00
|
|
|
using osu.Framework.Bindables;
|
2023-10-26 13:58:47 +08:00
|
|
|
using osu.Framework.Graphics;
|
2023-11-08 06:48:21 +08:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Configuration;
|
2023-10-26 13:58:47 +08:00
|
|
|
using osu.Game.Skinning;
|
2023-11-08 06:48:21 +08:00
|
|
|
using osuTK;
|
2023-10-26 13:58:47 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
|
|
{
|
|
|
|
public partial class ArgonAccuracyCounter : GameplayAccuracyCounter, ISerialisableDrawable
|
|
|
|
{
|
2023-11-08 06:48:21 +08:00
|
|
|
[SettingSource("Wireframe opacity", "Controls the opacity of the wire frames behind the digits.")]
|
|
|
|
public BindableFloat WireframeOpacity { get; } = new BindableFloat(0.4f)
|
|
|
|
{
|
|
|
|
Precision = 0.01f,
|
|
|
|
MinValue = 0,
|
|
|
|
MaxValue = 1,
|
|
|
|
};
|
|
|
|
|
2023-10-26 13:58:47 +08:00
|
|
|
public bool UsesFixedAnchor { get; set; }
|
|
|
|
|
2023-11-08 06:48:21 +08:00
|
|
|
protected override IHasText CreateText() => new ArgonCounterTextComponent(Anchor.TopLeft, "ACCURACY", new Vector2(-4, 0))
|
|
|
|
{
|
|
|
|
WireframeOpacity = { BindTarget = WireframeOpacity },
|
|
|
|
};
|
2023-10-26 13:58:47 +08:00
|
|
|
}
|
|
|
|
}
|