From 323a4f4522040f92dc8023b65b5add32198a01ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Thu, 7 Sep 2023 08:30:02 +0200 Subject: [PATCH] Only show preempt time when limits are extended --- osu.Game.Rulesets.Osu/Mods/OsuModDifficultyAdjust.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/Mods/OsuModDifficultyAdjust.cs b/osu.Game.Rulesets.Osu/Mods/OsuModDifficultyAdjust.cs index be41355846..f35b1abc42 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuModDifficultyAdjust.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuModDifficultyAdjust.cs @@ -77,7 +77,9 @@ namespace osu.Game.Rulesets.Osu.Mods public partial class ApproachRateSlider : RoundedSliderBar { public override LocalisableString TooltipText => - $"{base.TooltipText} ({getPreemptTime(Current.Value):0} ms)"; + (Current as BindableNumber)?.MinValue < 0 + ? $"{base.TooltipText} ({getPreemptTime(Current.Value):0} ms)" + : base.TooltipText; private double getPreemptTime(float approachRate) {