Skip to content

Commit

Permalink
Remove container wrapper in the note playfield.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Apr 21, 2023
1 parent cba351d commit df5c75d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions osu.Game.Rulesets.Karaoke/UI/KaraokePlayfield.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit df5c75d

Please sign in to comment.