1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-05 17:02:58 +08:00

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,16 +23,20 @@ namespace osu.Game.Tournament.Screens.Showcase
Loop = true, Loop = true,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
new Box new Container
{
Padding = new MarginPadding { Bottom = SongBar.HEIGHT },
RelativeSizeAxes = Axes.Both,
Child = new Box
{ {
// chroma key area for stable gameplay // chroma key area for stable gameplay
Name = "chroma", Name = "chroma",
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Height = 695, RelativeSizeAxes = Axes.Both,
Width = 1366,
Colour = new Color4(0, 255, 0, 255), Colour = new Color4(0, 255, 0, 255),
} }
}
}); });
} }
} }