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:
parent
7bb984eb8d
commit
e4eccb86ba
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user