mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Only show preempt time when limits are extended
This commit is contained in:
parent
bd633889e7
commit
323a4f4522
@ -77,7 +77,9 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
public partial class ApproachRateSlider : RoundedSliderBar<float>
|
public partial class ApproachRateSlider : RoundedSliderBar<float>
|
||||||
{
|
{
|
||||||
public override LocalisableString TooltipText =>
|
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)
|
private double getPreemptTime(float approachRate)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user