From 809f1bc2e8c29392f8257ec9c908940b659c595f Mon Sep 17 00:00:00 2001 From: O Thiago Date: Sat, 24 Sep 2022 14:51:01 -0400 Subject: [PATCH] Adds settings to customize flashlight --- osu.Game/Rulesets/Mods/ModFlashlight.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osu.Game/Rulesets/Mods/ModFlashlight.cs b/osu.Game/Rulesets/Mods/ModFlashlight.cs index 6d7706cde2..17a48558b5 100644 --- a/osu.Game/Rulesets/Mods/ModFlashlight.cs +++ b/osu.Game/Rulesets/Mods/ModFlashlight.cs @@ -39,6 +39,12 @@ namespace osu.Game.Rulesets.Mods [SettingSource("Change size based on combo", "Decrease the flashlight size as combo increases.")] public abstract BindableBool ComboBasedSize { get; } + [SettingSource("Final change size combo", "Changes on which combo the flashlight size reaches it final combo based size.")] + public abstract BindableInt FinalChangeSizeCombo { get; } + + [SettingSource("Final flashlight size", "The final multiplier fully applied when the final change size combo is reached.")] + public abstract BindableInt FinalFlashlightSize { get; } + /// /// The default size of the flashlight in ruleset-appropriate dimensions. /// and will apply their adjustments on top of this size. @@ -105,12 +111,16 @@ namespace osu.Game.Rulesets.Mods private readonly float defaultFlashlightSize; private readonly float sizeMultiplier; private readonly bool comboBasedSize; + private readonly int finalChangeSizeCombo; + private readonly int finalFlashlightSize; protected Flashlight(ModFlashlight modFlashlight) { defaultFlashlightSize = modFlashlight.DefaultFlashlightSize; sizeMultiplier = modFlashlight.SizeMultiplier.Value; comboBasedSize = modFlashlight.ComboBasedSize.Value; + finalChangeSizeCombo = modFlashlight.FinalChangeSizeCombo.Value; + finalFlashlightSize = modFlashlight.FinalFlashlightSize.Value; } [BackgroundDependencyLoader]