mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Fix catcher not moving when fully hidden in "No Scope" mod
This commit is contained in:
parent
53cc71c2fe
commit
efbd9ba4b9
@ -26,6 +26,9 @@ namespace osu.Game.Rulesets.Catch.Mods
|
|||||||
var catchPlayfield = (CatchPlayfield)playfield;
|
var catchPlayfield = (CatchPlayfield)playfield;
|
||||||
bool shouldAlwaysShowCatcher = IsBreakTime.Value;
|
bool shouldAlwaysShowCatcher = IsBreakTime.Value;
|
||||||
float targetAlpha = shouldAlwaysShowCatcher ? 1 : ComboBasedAlpha;
|
float targetAlpha = shouldAlwaysShowCatcher ? 1 : ComboBasedAlpha;
|
||||||
|
|
||||||
|
// AlwaysPresent required for catcher to still act on input when fully hidden.
|
||||||
|
catchPlayfield.CatcherArea.AlwaysPresent = true;
|
||||||
catchPlayfield.CatcherArea.Alpha = (float)Interpolation.Lerp(catchPlayfield.CatcherArea.Alpha, targetAlpha, Math.Clamp(catchPlayfield.Time.Elapsed / TRANSITION_DURATION, 0, 1));
|
catchPlayfield.CatcherArea.Alpha = (float)Interpolation.Lerp(catchPlayfield.CatcherArea.Alpha, targetAlpha, Math.Clamp(catchPlayfield.Time.Elapsed / TRANSITION_DURATION, 0, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user