From df5c75def46321986efd553012ef148a6461d0b7 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Fri, 21 Apr 2023 20:37:31 +0800 Subject: [PATCH] Remove container wrapper in the note playfield. --- osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs b/osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs index 0753ded24..558a463c7 100644 --- a/osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs +++ b/osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs @@ -7,7 +7,6 @@ using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; -using osu.Framework.Graphics.Containers; using osu.Game.Beatmaps; using osu.Game.Rulesets.Karaoke.Beatmaps; using osu.Game.Rulesets.Karaoke.Configuration; @@ -49,16 +48,10 @@ public KaraokePlayfield() x.RelativeSizeAxes = Axes.Both; })); - AddInternal(new Container + AddInternal(NotePlayfield = CreateNotePlayfield(9).With(x => { - Padding = new MarginPadding(50), - RelativeSizeAxes = Axes.Both, - Child = NotePlayfield = CreateNotePlayfield(9).With(x => - { - x.Alpha = 0; - x.RelativeSizeAxes = Axes.X; - }) - }); + x.RelativeSizeAxes = Axes.X; + })); AddNested(LyricPlayfield); AddNested(NotePlayfield);