1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 18:47:27 +08:00

Add new container level and unblock footer

This commit is contained in:
David Zhao 2019-07-25 11:11:20 +09:00
parent da3dc610ba
commit bbcc8f0721
2 changed files with 22 additions and 15 deletions

View File

@ -395,16 +395,6 @@ namespace osu.Game
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
backButton = new BackButton
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Action = () =>
{
if ((screenStack.CurrentScreen as IOsuScreen)?.AllowBackButton == true)
screenStack.Exit();
}
},
new VolumeControlReceptor new VolumeControlReceptor
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -416,9 +406,26 @@ namespace osu.Game
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Children = new[] Children = new[]
{ {
screenStack = new OsuScreenStack { RelativeSizeAxes = Axes.Both }, backButton = new BackButton
backButton.CreateProxy(), {
logoContainer = new Container { RelativeSizeAxes = Axes.Both }, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Action = () =>
{
if ((screenStack.CurrentScreen as IOsuScreen)?.AllowBackButton == true)
screenStack.Exit();
}
},
new Container
{
RelativeSizeAxes = Axes.Both,
Children = new[]
{
screenStack = new OsuScreenStack { RelativeSizeAxes = Axes.Both },
backButton.CreateProxy(),
logoContainer = new Container { RelativeSizeAxes = Axes.Both },
}
}
} }
}, },
overlayContent = new Container { RelativeSizeAxes = Axes.Both }, overlayContent = new Container { RelativeSizeAxes = Axes.Both },

View File

@ -104,8 +104,8 @@ namespace osu.Game.Screens.Select
updateModeLight(); updateModeLight();
} }
protected override bool OnMouseDown(MouseDownEvent e) => true; protected override bool OnMouseDown(MouseDownEvent e) => false;
protected override bool OnClick(ClickEvent e) => true; protected override bool OnClick(ClickEvent e) => false;
} }
} }