mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 01:48:22 +08:00
Tidy up constants
This commit is contained in:
parent
ff70f99da2
commit
5953674737
@ -45,7 +45,6 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
|
|||||||
new KiaiFlash
|
new KiaiFlash
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
FlashOpacity = 0.25f,
|
|
||||||
},
|
},
|
||||||
triangles = new TrianglesPiece
|
triangles = new TrianglesPiece
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,9 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
|
|||||||
{
|
{
|
||||||
public class KiaiFlash : BeatSyncedContainer
|
public class KiaiFlash : BeatSyncedContainer
|
||||||
{
|
{
|
||||||
public float FlashOpacity = 1f;
|
private const double fade_length = 80;
|
||||||
|
|
||||||
|
private const float flash_opacity = 0.25f;
|
||||||
|
|
||||||
public KiaiFlash()
|
public KiaiFlash()
|
||||||
{
|
{
|
||||||
@ -30,14 +32,12 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
|
|||||||
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
|
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
|
||||||
{
|
{
|
||||||
if (!effectPoint.KiaiMode)
|
if (!effectPoint.KiaiMode)
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
Child
|
Child
|
||||||
.FadeTo(FlashOpacity, EarlyActivationMilliseconds, Easing.OutQuint)
|
.FadeTo(flash_opacity, EarlyActivationMilliseconds, Easing.OutQuint)
|
||||||
.Then()
|
.Then()
|
||||||
.FadeOut(timingPoint.BeatLength - 80, Easing.OutSine);
|
.FadeOut(timingPoint.BeatLength - fade_length, Easing.OutSine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user