Use SongBar height instead of hard-coded dimensions

This commit is contained in:
Bartłomiej Dach
2020-04-27 00:02:58 +02:00
parent 3c1730d0ca
commit b9e0fed467

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Tournament.Components; using osu.Game.Tournament.Components;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osuTK.Graphics; using osuTK.Graphics;
@ -22,15 +23,19 @@ namespace osu.Game.Tournament.Screens.Showcase
Loop = true, Loop = true,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
new Box new Container
{ {
// chroma key area for stable gameplay Padding = new MarginPadding { Bottom = SongBar.HEIGHT },
Name = "chroma", RelativeSizeAxes = Axes.Both,
Anchor = Anchor.TopCentre, Child = new Box
Origin = Anchor.TopCentre, {
Height = 695, // chroma key area for stable gameplay
Width = 1366, Name = "chroma",
Colour = new Color4(0, 255, 0, 255), Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.Both,
Colour = new Color4(0, 255, 0, 255),
}
} }
}); });
} }