1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 17:53:22 +08:00

Reduce some container nesting.

This commit is contained in:
smoogipooo 2017-03-21 18:28:04 +09:00
parent e2b510f3f0
commit 259ed03610

View File

@ -96,12 +96,6 @@ namespace osu.Game.Modes.Taiko.UI
Padding = new MarginPadding { Left = hit_target_offset },
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Container
{
Name = @"Hit target",
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
ringExplosionContainer = new Container<RingExplosion>
{
@ -111,8 +105,6 @@ namespace osu.Game.Modes.Taiko.UI
Scale = new Vector2(PLAYFIELD_SCALE),
BlendingMode = BlendingMode.Additive
},
}
},
//barLineContainer = new Container<DrawableBarLine>
//{
// RelativeSizeAxes = Axes.Both,
@ -145,22 +137,16 @@ namespace osu.Game.Modes.Taiko.UI
{
RelativeSizeAxes = Axes.Both,
},
new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativePositionAxes = Axes.X,
Position = new Vector2(0.10f, 0),
Children = new Drawable[]
{
new InputDrum
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativePositionAxes = Axes.X,
Position = new Vector2(0.10f, 0),
Scale = new Vector2(0.9f)
},
}
},
new Box
{
Anchor = Anchor.TopRight,