1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Hide settings at results screen

This commit is contained in:
Dean Herbert 2022-06-11 21:32:02 +09:00
parent d130e7ebff
commit c697dc90e4

View File

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