1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 16:02:58 +08:00

Add property Intensity

This commit is contained in:
mcendu 2019-12-21 20:53:02 +08:00
parent 7bb984eb8d
commit e4eccb86ba
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364
3 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
new KiaiFlash
{
RelativeSizeAxes = Axes.Both,
Intensity = 0.25f,
},
new TrianglesPiece
{

View File

@ -12,6 +12,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
{
public Drawable FlashComponent { get; set; }
public float Intensity { get; set; }
public KiaiFlash()
{
Blending = BlendingParameters.Additive;
@ -31,7 +33,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
if (effectPoint.KiaiMode)
{
FlashComponent
.FadeTo(0.25f, EarlyActivationMilliseconds, Easing.OutQuint)
.FadeTo(Intensity, EarlyActivationMilliseconds, Easing.OutQuint)
.Then()
.FadeOut(timingPoint.BeatLength - 80, Easing.OutSine);
}

View File

@ -55,6 +55,8 @@ namespace osu.Game.Rulesets.Osu.Skinning
Masking = true,
CornerRadius = Size.X / 2,
CornerExponent = 2,
Intensity = 0.1f
},
hitCircleText = new SkinnableSpriteText(new OsuSkinComponent(OsuSkinComponents.HitCircleText), _ => new OsuSpriteText
{