1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 19:00:09 +08:00

Fix some mods showing tooltips when settings are default

This commit is contained in:
Dean Herbert
2025-08-29 14:08:18 +09:00
Unverified
parent f2f5cf19a2
commit e83f3d5e77
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -46,8 +46,10 @@ namespace osu.Game.Rulesets.Mods
{
get
{
yield return ("Roll speed", $"{SpinSpeed.Value:N2} rpm");
yield return ("Direction", Direction.Value.GetDescription());
if (!SpinSpeed.IsDefault)
yield return ("Roll speed", $"{SpinSpeed.Value:N2} rpm");
if (!Direction.IsDefault)
yield return ("Direction", Direction.Value.GetDescription());
}
}
@@ -55,7 +57,8 @@ namespace osu.Game.Rulesets.Mods
public virtual void Update(Playfield playfield)
{
playfieldAdjustmentContainer.Rotation = CurrentRotation = (Direction.Value == RotationDirection.Counterclockwise ? -1 : 1) * 360 * (float)(playfield.Time.Current / 60000 * SpinSpeed.Value);
playfieldAdjustmentContainer.Rotation =
CurrentRotation = (Direction.Value == RotationDirection.Counterclockwise ? -1 : 1) * 360 * (float)(playfield.Time.Current / 60000 * SpinSpeed.Value);
}
public void ApplyToDrawableRuleset(DrawableRuleset<TObject> drawableRuleset)
+2 -1
View File
@@ -41,7 +41,8 @@ namespace osu.Game.Rulesets.Mods
{
get
{
yield return ("Speed change", $"{InitialRate.Value:N2}x to {FinalRate.Value:N2}x");
if (!InitialRate.IsDefault || !FinalRate.IsDefault)
yield return ("Speed change", $"{InitialRate.Value:N2}x to {FinalRate.Value:N2}x");
if (!AdjustPitch.IsDefault)
yield return ("Adjust pitch", AdjustPitch.Value ? "On" : "Off");