mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:43:04 +08:00
Apply suggestions
This commit is contained in:
parent
f2b5be27c8
commit
601b840713
@ -66,8 +66,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
if (newBeat < 0)
|
if (newBeat < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TrackAmplitudes amp = beatmap.Value.Track.CurrentAmplitudes;
|
TrackAmplitudes amp = beatmap.Value.Track.CurrentAmplitudes;
|
||||||
if (newBeat % (kiai ? 2 : (int)timeSignature) == 0)
|
if (kiai ? newBeat % 2 == 0 : newBeat % (int)timeSignature) == 0)
|
||||||
{
|
{
|
||||||
leftBox.ClearTransforms();
|
leftBox.ClearTransforms();
|
||||||
leftBox.FadeTo(Math.Max(0, (amp.LeftChannel - amplitude_dead_zone) / (kiai ? kiai_multiplier : alpha_multiplier)), 65);
|
leftBox.FadeTo(Math.Max(0, (amp.LeftChannel - amplitude_dead_zone) / (kiai ? kiai_multiplier : alpha_multiplier)), 65);
|
||||||
@ -75,6 +76,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
leftBox.FadeOut(beatLength, EasingTypes.In);
|
leftBox.FadeOut(beatLength, EasingTypes.In);
|
||||||
leftBox.DelayReset();
|
leftBox.DelayReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kiai ? newBeat % 2 == 1 : newBeat % (int)timeSignature == 0)
|
if (kiai ? newBeat % 2 == 1 : newBeat % (int)timeSignature == 0)
|
||||||
{
|
{
|
||||||
rightBox.ClearTransforms();
|
rightBox.ClearTransforms();
|
||||||
|
Loading…
Reference in New Issue
Block a user