Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flashlight size multiplier printing with too many decimal digits #16751

Merged
merged 1 commit into from Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Catch/Mods/CatchModFlashlight.cs
Expand Up @@ -17,7 +17,7 @@ public class CatchModFlashlight : ModFlashlight<CatchHitObject>
public override double ScoreMultiplier => 1.12;

[SettingSource("Flashlight size", "Multiplier applied to the default flashlight size.")]
public override BindableNumber<float> SizeMultiplier { get; } = new BindableNumber<float>
public override BindableFloat SizeMultiplier { get; } = new BindableFloat
{
MinValue = 0.5f,
MaxValue = 1.5f,
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Mania/Mods/ManiaModFlashlight.cs
Expand Up @@ -18,7 +18,7 @@ public class ManiaModFlashlight : ModFlashlight<ManiaHitObject>
public override Type[] IncompatibleMods => new[] { typeof(ModHidden) };

[SettingSource("Flashlight size", "Multiplier applied to the default flashlight size.")]
public override BindableNumber<float> SizeMultiplier { get; } = new BindableNumber<float>
public override BindableFloat SizeMultiplier { get; } = new BindableFloat
{
MinValue = 0.5f,
MaxValue = 3f,
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu/Mods/OsuModFlashlight.cs
Expand Up @@ -31,7 +31,7 @@ public class OsuModFlashlight : ModFlashlight<OsuHitObject>, IApplicableToDrawab
};

[SettingSource("Flashlight size", "Multiplier applied to the default flashlight size.")]
public override BindableNumber<float> SizeMultiplier { get; } = new BindableNumber<float>
public override BindableFloat SizeMultiplier { get; } = new BindableFloat
{
MinValue = 0.5f,
MaxValue = 2f,
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Taiko/Mods/TaikoModFlashlight.cs
Expand Up @@ -18,7 +18,7 @@ public class TaikoModFlashlight : ModFlashlight<TaikoHitObject>
public override double ScoreMultiplier => 1.12;

[SettingSource("Flashlight size", "Multiplier applied to the default flashlight size.")]
public override BindableNumber<float> SizeMultiplier { get; } = new BindableNumber<float>
public override BindableFloat SizeMultiplier { get; } = new BindableFloat
{
MinValue = 0.5f,
MaxValue = 1.5f,
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModFlashlight.cs
Expand Up @@ -34,7 +34,7 @@ public abstract class ModFlashlight : Mod
public override string Description => "Restricted view area.";

[SettingSource("Flashlight size", "Multiplier applied to the default flashlight size.")]
public abstract BindableNumber<float> SizeMultiplier { get; }
public abstract BindableFloat SizeMultiplier { get; }

[SettingSource("Change size based on combo", "Decrease the flashlight size as combo increases.")]
public abstract BindableBool ComboBasedSize { get; }
Expand Down