mirror of
https://github.com/osukey/osukey.git
synced 2025-07-24 03:40:04 +09:00
Make HitExplosion circular again, keep it masked to the stage.
This commit is contained in:
@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// A circle explodes from the hit target to indicate a hitobject has been hit.
|
/// A circle explodes from the hit target to indicate a hitobject has been hit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class HitExplosion : Container
|
internal class HitExplosion : CircularContainer
|
||||||
{
|
{
|
||||||
public readonly TaikoJudgement Judgement;
|
public readonly TaikoJudgement Judgement;
|
||||||
|
|
||||||
@ -30,11 +30,10 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
|
|
||||||
Judgement = judgement;
|
Judgement = judgement;
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.Y;
|
Anchor = Anchor.Centre;
|
||||||
Width = TaikoPlayfield.HIT_TARGET_OFFSET + TaikoHitObject.DEFAULT_CIRCLE_DIAMETER;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
Anchor = Anchor.CentreLeft;
|
Size = new Vector2(TaikoPlayfield.HIT_TARGET_OFFSET + TaikoHitObject.DEFAULT_CIRCLE_DIAMETER);
|
||||||
Origin = Anchor.CentreLeft;
|
|
||||||
|
|
||||||
RelativePositionAxes = Axes.Both;
|
RelativePositionAxes = Axes.Both;
|
||||||
|
|
||||||
@ -63,7 +62,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
ScaleTo(new Vector2(2f, 1), 1000, EasingTypes.OutQuint);
|
ScaleTo(3f, 1000, EasingTypes.OutQuint);
|
||||||
FadeOut(500);
|
FadeOut(500);
|
||||||
|
|
||||||
Expire();
|
Expire();
|
||||||
@ -74,7 +73,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void VisualiseSecondHit()
|
public void VisualiseSecondHit()
|
||||||
{
|
{
|
||||||
ResizeTo(new Vector2(TaikoPlayfield.HIT_TARGET_OFFSET + TaikoHitObject.DEFAULT_STRONG_CIRCLE_DIAMETER, 1), 50);
|
ResizeTo(new Vector2(TaikoPlayfield.HIT_TARGET_OFFSET + TaikoHitObject.DEFAULT_STRONG_CIRCLE_DIAMETER), 50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,11 +90,6 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
Margin = new MarginPadding { Left = left_area_size },
|
Margin = new MarginPadding { Left = left_area_size },
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
hitExplosionContainer = new Container<HitExplosion>
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Y,
|
|
||||||
BlendingMode = BlendingMode.Additive
|
|
||||||
},
|
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
Name = "Masked elements",
|
Name = "Masked elements",
|
||||||
@ -103,6 +98,11 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
Masking = true,
|
Masking = true,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
hitExplosionContainer = new Container<HitExplosion>
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Y,
|
||||||
|
BlendingMode = BlendingMode.Additive,
|
||||||
|
},
|
||||||
barLineContainer = new Container<DrawableBarLine>
|
barLineContainer = new Container<DrawableBarLine>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Reference in New Issue
Block a user