From 259ed03610fcb5ee425bebceb84aaa3d3c5c8341 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Tue, 21 Mar 2017 18:28:04 +0900 Subject: [PATCH] Reduce some container nesting. --- osu.Game.Modes.Taiko/UI/TaikoPlayfield.cs | 34 +++++++---------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/osu.Game.Modes.Taiko/UI/TaikoPlayfield.cs b/osu.Game.Modes.Taiko/UI/TaikoPlayfield.cs index 1b1b445995..b2248e2c3e 100644 --- a/osu.Game.Modes.Taiko/UI/TaikoPlayfield.cs +++ b/osu.Game.Modes.Taiko/UI/TaikoPlayfield.cs @@ -97,21 +97,13 @@ namespace osu.Game.Modes.Taiko.UI RelativeSizeAxes = Axes.Both, Children = new Drawable[] { - new Container + ringExplosionContainer = new Container { - Name = @"Hit target", - RelativeSizeAxes = Axes.Both, - Children = new Drawable[] - { - ringExplosionContainer = new Container - { - Anchor = Anchor.CentreLeft, - Origin = Anchor.Centre, - Size = new Vector2(TaikoHitObject.CIRCLE_RADIUS * 2), - Scale = new Vector2(PLAYFIELD_SCALE), - 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 //{ @@ -145,21 +137,15 @@ namespace osu.Game.Modes.Taiko.UI { RelativeSizeAxes = Axes.Both, }, - new Container + new InputDrum { 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, - Scale = new Vector2(0.9f) - }, - } + + Scale = new Vector2(0.9f) }, new Box {