1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 16:13:20 +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 new KiaiFlash
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Intensity = 0.25f,
}, },
new TrianglesPiece new TrianglesPiece
{ {

View File

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

View File

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