1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-17 08:33:13 +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 }, Padding = new MarginPadding { Left = hit_target_offset },
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{
new Container
{
Name = @"Hit target",
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{ {
ringExplosionContainer = new Container<RingExplosion> ringExplosionContainer = new Container<RingExplosion>
{ {
@ -111,8 +105,6 @@ namespace osu.Game.Modes.Taiko.UI
Scale = new Vector2(PLAYFIELD_SCALE), Scale = new Vector2(PLAYFIELD_SCALE),
BlendingMode = BlendingMode.Additive BlendingMode = BlendingMode.Additive
}, },
}
},
//barLineContainer = new Container<DrawableBarLine> //barLineContainer = new Container<DrawableBarLine>
//{ //{
// RelativeSizeAxes = Axes.Both, // RelativeSizeAxes = Axes.Both,
@ -145,22 +137,16 @@ namespace osu.Game.Modes.Taiko.UI
{ {
RelativeSizeAxes = Axes.Both, 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 new InputDrum
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
RelativePositionAxes = Axes.X,
Position = new Vector2(0.10f, 0),
Scale = new Vector2(0.9f) Scale = new Vector2(0.9f)
}, },
}
},
new Box new Box
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,