Adjust gameplay screen size

This commit is contained in:
Dean Herbert 2018-11-18 12:39:25 +09:00
parent 925532508c
commit 5621101d40
2 changed files with 9 additions and 6 deletions

View File

@ -15,6 +15,7 @@
using osu.Game.Tournament.Screens.Ladder.Components;
using osu.Game.Tournament.Screens.MapPool;
using osu.Game.Tournament.Screens.TeamWin;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Game.Tournament.Screens.Gameplay
@ -48,6 +49,7 @@ private void load(LadderInfo ladder, TextureStore textures, MatchIPCInfo ipc, Ma
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Y = 5,
Direction = FillDirection.Vertical,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
@ -63,7 +65,7 @@ private void load(LadderInfo ladder, TextureStore textures, MatchIPCInfo ipc, Ma
{
Name = "top bar red",
RelativeSizeAxes = Axes.X,
Height = 10,
Height = 8,
Width = 0.5f,
Colour = red,
},
@ -71,7 +73,7 @@ private void load(LadderInfo ladder, TextureStore textures, MatchIPCInfo ipc, Ma
{
Name = "top bar blue",
RelativeSizeAxes = Axes.X,
Height = 10,
Height = 9,
Width = 0.5f,
Colour = blue,
Anchor = Anchor.TopRight,
@ -84,14 +86,15 @@ private void load(LadderInfo ladder, TextureStore textures, MatchIPCInfo ipc, Ma
// chroma key area for stable gameplay
Name = "chroma",
RelativeSizeAxes = Axes.X,
Height = 480,
Height = 500,
Colour = new Color4(0, 255, 0, 255),
},
}
},
scoreDisplay = new MatchScoreDisplay
{
Y = -65,
Y = -60,
Scale = new Vector2(0.86f),
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
},
@ -168,7 +171,7 @@ void contract()
case TourneyState.Idle:
contract();
if (lastState == TourneyState.Ranking)
if (lastState == TourneyState.Ranking && !warmup.Value)
{
if (currentMatch.Value?.Completed == true)
scheduledOperation = Scheduler.AddDelayed(() => { sceneManager?.SetScreen(typeof(TeamWinScreen)); }, 4000);

View File

@ -38,7 +38,7 @@ public class TournamentSceneManager : OsuScreen
{
RelativeSizeAxes = Axes.X,
Y = 100,
Size = new Vector2(0.45f, 120),
Size = new Vector2(0.45f, 112),
Margin = new MarginPadding(10),
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,