mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08:00
Moved drumroll container and removed rewound notes
This commit is contained in:
parent
26779a57b4
commit
2600518b1b
@ -119,7 +119,14 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Padding = new MarginPadding { Left = HIT_TARGET_OFFSET },
|
||||
Masking = true,
|
||||
Child = HitObjectContainer
|
||||
Children = new Drawable[]
|
||||
{
|
||||
HitObjectContainer,
|
||||
drumRollHitContainer = new ScrollingHitObjectContainer
|
||||
{
|
||||
Name = "Drumroll hit"
|
||||
}
|
||||
}
|
||||
},
|
||||
kiaiExplosionContainer = new Container<KiaiHitExplosion>
|
||||
{
|
||||
@ -135,14 +142,6 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Margin = new MarginPadding { Left = HIT_TARGET_OFFSET },
|
||||
Blending = BlendingParameters.Additive
|
||||
},
|
||||
drumRollHitContainer = new ScrollingHitObjectContainer
|
||||
{
|
||||
Name = "Drumroll hit",
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
FillMode = FillMode.Stretch,
|
||||
Margin = new MarginPadding { Left = HIT_TARGET_OFFSET },
|
||||
Width = 1.0f
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -282,6 +281,20 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (Time.Elapsed < 0)
|
||||
{
|
||||
foreach (DrawableHit taikoHit in drumRollHitContainer.Objects)
|
||||
{
|
||||
taikoHit.RemoveProxiedContent();
|
||||
drumRollHitContainer.Remove(taikoHit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class ProxyContainer : LifetimeManagementContainer
|
||||
{
|
||||
public new MarginPadding Padding
|
||||
|
Loading…
Reference in New Issue
Block a user