Skip to content

Commit d5fa8e5

Browse files
committed
Fix osu!mania scroll speed milliseconds having too much precision
Closes #23750.
1 parent 8962cba commit d5fa8e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

osu.Game.Rulesets.Mania/Configuration/ManiaRulesetConfigManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected override void InitialiseDefaults()
4343
speed => new SettingDescription(
4444
rawValue: speed,
4545
name: RulesetSettingsStrings.ScrollSpeed,
46-
value: RulesetSettingsStrings.ScrollSpeedTooltip(DrawableManiaRuleset.ComputeScrollTime(speed), speed)
46+
value: RulesetSettingsStrings.ScrollSpeedTooltip((int)DrawableManiaRuleset.ComputeScrollTime(speed), speed)
4747
)
4848
)
4949
};

osu.Game.Rulesets.Mania/ManiaSettingsSubsection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private void load()
4949

5050
private partial class ManiaScrollSlider : RoundedSliderBar<int>
5151
{
52-
public override LocalisableString TooltipText => RulesetSettingsStrings.ScrollSpeedTooltip(DrawableManiaRuleset.ComputeScrollTime(Current.Value), Current.Value);
52+
public override LocalisableString TooltipText => RulesetSettingsStrings.ScrollSpeedTooltip((int)DrawableManiaRuleset.ComputeScrollTime(Current.Value), Current.Value);
5353
}
5454
}
5555
}

osu.Game/Localisation/RulesetSettingsStrings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static class RulesetSettingsStrings
8282
/// <summary>
8383
/// "{0}ms (speed {1})"
8484
/// </summary>
85-
public static LocalisableString ScrollSpeedTooltip(double scrollTime, int scrollSpeed) => new TranslatableString(getKey(@"ruleset"), @"{0:0}ms (speed {1})", scrollTime, scrollSpeed);
85+
public static LocalisableString ScrollSpeedTooltip(int scrollTime, int scrollSpeed) => new TranslatableString(getKey(@"ruleset"), @"{0}ms (speed {1})", scrollTime, scrollSpeed);
8686

8787
private static string getKey(string key) => $@"{prefix}:{key}";
8888
}

0 commit comments

Comments
 (0)