Hide settings at results screen

This commit is contained in:
Dean Herbert 2022-06-11 21:32:02 +09:00
parent d130e7ebff
commit c697dc90e4
1 changed files with 6 additions and 1 deletions

View File

@ -90,6 +90,8 @@ public class LatencyCertifierScreen : OsuScreen
private double lastPoll;
private int pollingMax;
private readonly FillFlowContainer settings;
[Resolved]
private GameHost host { get; set; } = null!;
@ -128,7 +130,7 @@ public LatencyCertifierScreen()
Anchor = Anchor.TopCentre,
Origin = Anchor.TopRight,
},
new FillFlowContainer
settings = new FillFlowContainer
{
Name = "Settings",
AutoSizeAxes = Axes.Y,
@ -256,6 +258,7 @@ private void showResults()
{
mainArea.Clear();
resultsArea.Clear();
settings.Hide();
var displayMode = host.Window?.CurrentDisplayMode.Value;
@ -437,6 +440,8 @@ private void changeDifficulty(int difficulty)
private void loadNextRound()
{
settings.Show();
attemptsAtCurrentDifficulty++;
statusText.Text = $"Level {DifficultyLevel}\nRound {attemptsAtCurrentDifficulty} of {totalRoundForNextResultsScreen}";