1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Adjust gameplay area to match better

Also reduces size of score display to avoid hiding combos.
This commit is contained in:
Dean Herbert 2018-11-22 15:42:10 +09:00
parent cbf82f892d
commit 4e8c7a4dc0
3 changed files with 14 additions and 14 deletions

View File

@ -25,7 +25,7 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
private void load(LadderInfo ladder, TextureStore textures) private void load(LadderInfo ladder, TextureStore textures)
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
Height = 100; Height = 95;
Children = new Drawable[] Children = new Drawable[]
{ {
new TournamentLogo(), new TournamentLogo(),

View File

@ -45,20 +45,28 @@ namespace osu.Game.Tournament.Screens.Gameplay
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
new MatchHeader(), new MatchHeader(),
new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Y = 5,
Direction = FillDirection.Vertical,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Children = new Drawable[]
{
new Container new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Y = 5,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Children = new Drawable[]
{
new Box
{
// chroma key area for stable gameplay
Name = "chroma",
RelativeSizeAxes = Axes.X,
Height = 512,
Colour = new Color4(0, 255, 0, 255),
},
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Y = -4,
Children = new Drawable[] Children = new Drawable[]
{ {
new Circle new Circle
@ -73,7 +81,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
{ {
Name = "top bar blue", Name = "top bar blue",
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = 9, Height = 8,
Width = 0.5f, Width = 0.5f,
Colour = blue, Colour = blue,
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
@ -81,20 +89,12 @@ namespace osu.Game.Tournament.Screens.Gameplay
}, },
} }
}, },
new Box
{
// chroma key area for stable gameplay
Name = "chroma",
RelativeSizeAxes = Axes.X,
Height = 500,
Colour = new Color4(0, 255, 0, 255),
},
} }
}, },
scoreDisplay = new MatchScoreDisplay scoreDisplay = new MatchScoreDisplay
{ {
Y = -60, Y = -60,
Scale = new Vector2(0.86f), Scale = new Vector2(0.8f),
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre, Origin = Anchor.BottomCentre,
}, },

View File

@ -15,7 +15,7 @@ namespace osu.Game.Tournament.Screens.Showcase
public TournamentLogo() public TournamentLogo()
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
Height = 100; Height = 95;
Margin = new MarginPadding { Vertical = 5 }; Margin = new MarginPadding { Vertical = 5 };
} }