mirror of
https://github.com/ppy/osu.git
synced 2025-01-17 05:43:20 +08:00
Reduce some container nesting.
This commit is contained in:
parent
e2b510f3f0
commit
259ed03610
@ -97,21 +97,13 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
ringExplosionContainer = new Container<RingExplosion>
|
||||||
{
|
{
|
||||||
Name = @"Hit target",
|
Anchor = Anchor.CentreLeft,
|
||||||
RelativeSizeAxes = Axes.Both,
|
Origin = Anchor.Centre,
|
||||||
Children = new Drawable[]
|
Size = new Vector2(TaikoHitObject.CIRCLE_RADIUS * 2),
|
||||||
{
|
Scale = new Vector2(PLAYFIELD_SCALE),
|
||||||
ringExplosionContainer = new Container<RingExplosion>
|
BlendingMode = BlendingMode.Additive
|
||||||
{
|
|
||||||
Anchor = Anchor.CentreLeft,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Size = new Vector2(TaikoHitObject.CIRCLE_RADIUS * 2),
|
|
||||||
Scale = new Vector2(PLAYFIELD_SCALE),
|
|
||||||
BlendingMode = BlendingMode.Additive
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
//barLineContainer = new Container<DrawableBarLine>
|
//barLineContainer = new Container<DrawableBarLine>
|
||||||
//{
|
//{
|
||||||
@ -145,21 +137,15 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
new Container
|
new InputDrum
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
|
||||||
RelativePositionAxes = Axes.X,
|
RelativePositionAxes = Axes.X,
|
||||||
Position = new Vector2(0.10f, 0),
|
Position = new Vector2(0.10f, 0),
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
Scale = new Vector2(0.9f)
|
||||||
new InputDrum
|
|
||||||
{
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Scale = new Vector2(0.9f)
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user