mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Use SongBar height instead of hard-coded dimensions
This commit is contained in:
@ -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),
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user