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:
parent
7bb984eb8d
commit
e4eccb86ba
@ -38,6 +38,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
new KiaiFlash
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Intensity = 0.25f,
|
||||
},
|
||||
new TrianglesPiece
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user