mirror of https://github.com/ppy/osu
Only show preempt time when limits are extended
This commit is contained in:
parent
bd633889e7
commit
323a4f4522
|
@ -77,7 +77,9 @@ protected override RoundedSliderBar<float> CreateSlider(BindableNumber<float> cu
|
|||
public partial class ApproachRateSlider : RoundedSliderBar<float>
|
||||
{
|
||||
public override LocalisableString TooltipText =>
|
||||
$"{base.TooltipText} ({getPreemptTime(Current.Value):0} ms)";
|
||||
(Current as BindableNumber<float>)?.MinValue < 0
|
||||
? $"{base.TooltipText} ({getPreemptTime(Current.Value):0} ms)"
|
||||
: base.TooltipText;
|
||||
|
||||
private double getPreemptTime(float approachRate)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue