mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
fix weird handling of dialogOverlay in tourney client
This commit is contained in:
parent
fa480cc27b
commit
3c05246baf
@ -43,7 +43,6 @@ namespace osu.Game.Tournament
|
|||||||
|
|
||||||
private readonly DialogOverlay dialogOverlay = new DialogOverlay();
|
private readonly DialogOverlay dialogOverlay = new DialogOverlay();
|
||||||
private DependencyContainer dependencies;
|
private DependencyContainer dependencies;
|
||||||
private Container topMostOverlayContent;
|
|
||||||
|
|
||||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) =>
|
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) =>
|
||||||
dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
|
dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
|
||||||
@ -102,13 +101,11 @@ namespace osu.Game.Tournament
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = new TournamentSceneManager()
|
Child = new TournamentSceneManager()
|
||||||
},
|
},
|
||||||
topMostOverlayContent = new Container { RelativeSizeAxes = Axes.Both }
|
new Container { RelativeSizeAxes = Axes.Both, Child = dialogOverlay }
|
||||||
}, drawables =>
|
}, drawables =>
|
||||||
{
|
{
|
||||||
loadingSpinner.Hide();
|
loadingSpinner.Hide();
|
||||||
loadingSpinner.Expire();
|
loadingSpinner.Expire();
|
||||||
|
|
||||||
topMostOverlayContent.Add(dialogOverlay);
|
|
||||||
AddRange(drawables);
|
AddRange(drawables);
|
||||||
|
|
||||||
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
||||||
|
Loading…
Reference in New Issue
Block a user