1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:33:01 +08:00

Fix ordering of methods in OsuSliderBar

This commit is contained in:
Dean Herbert 2023-02-08 14:00:45 +09:00
parent cec1f77e6c
commit 5cd111e6f1

View File

@ -17,18 +17,12 @@ namespace osu.Game.Graphics.UserInterface
public abstract partial class OsuSliderBar<T> : SliderBar<T>, IHasTooltip
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
{
private Sample sample = null!;
private double lastSampleTime;
private T lastSampleValue;
public bool PlaySamplesOnAdjust { get; set; } = true;
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
sample = audio.Samples.Get(@"UI/notch-tick");
}
/// <summary>
/// Whether to format the tooltip as a percentage or the actual value.
/// </summary>
public bool DisplayAsPercentage { get; set; }
public virtual LocalisableString TooltipText { get; private set; }
@ -37,10 +31,16 @@ namespace osu.Game.Graphics.UserInterface
/// </summary>
private const int max_decimal_digits = 5;
/// <summary>
/// Whether to format the tooltip as a percentage or the actual value.
/// </summary>
public bool DisplayAsPercentage { get; set; }
private Sample sample = null!;
private double lastSampleTime;
private T lastSampleValue;
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
sample = audio.Samples.Get(@"UI/notch-tick");
}
protected override void LoadComplete()
{