mirror of
https://github.com/ppy/osu
synced 2024-12-09 08:30:36 +00:00
Use SongBar height instead of hard-coded dimensions
This commit is contained in:
parent
3c1730d0ca
commit
b9e0fed467
@ -3,6 +3,7 @@
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Tournament.Components;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osuTK.Graphics;
|
||||
@ -22,15 +23,19 @@ namespace osu.Game.Tournament.Screens.Showcase
|
||||
Loop = true,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
new Box
|
||||
new Container
|
||||
{
|
||||
// chroma key area for stable gameplay
|
||||
Name = "chroma",
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Height = 695,
|
||||
Width = 1366,
|
||||
Colour = new Color4(0, 255, 0, 255),
|
||||
Padding = new MarginPadding { Bottom = SongBar.HEIGHT },
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = new Box
|
||||
{
|
||||
// chroma key area for stable gameplay
|
||||
Name = "chroma",
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = new Color4(0, 255, 0, 255),
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user