1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Merge pull request #24701 from frenzibyte/remove-flashlight-slider-dim-transform

Apply flashlight slider dim immediately to match osu!(stable)
This commit is contained in:
Dean Herbert 2023-09-04 16:35:30 +09:00 committed by GitHub
commit 0da37e4e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,8 @@ namespace osu.Game.Rulesets.Osu.Mods
public void OnSliderTrackingChange(ValueChangedEvent<bool> e) public void OnSliderTrackingChange(ValueChangedEvent<bool> e)
{ {
// If a slider is in a tracking state, a further dim should be applied to the (remaining) visible portion of the playfield over a brief duration. // If a slider is in a tracking state, a further dim should be applied to the (remaining) visible portion of the playfield.
this.TransformTo(nameof(FlashlightDim), e.NewValue ? 0.8f : 0.0f, 50); FlashlightDim = e.NewValue ? 0.8f : 0.0f;
} }
protected override bool OnMouseMove(MouseMoveEvent e) protected override bool OnMouseMove(MouseMoveEvent e)