1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

proxy backbutton instead

This commit is contained in:
David Zhao 2019-07-24 12:47:41 +09:00
parent 8220a51310
commit 38559685a9

View File

@ -394,18 +394,6 @@ namespace osu.Game
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
new VolumeControlReceptor
{
RelativeSizeAxes = Axes.Both,
ActionRequested = action => volume.Adjust(action),
ScrollActionRequested = (action, amount, isPrecise) => volume.Adjust(action, amount, isPrecise),
},
screenContainer = new ScalingContainer(ScalingMode.ExcludeOverlays)
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
screenStack = new OsuScreenStack { RelativeSizeAxes = Axes.Both },
backButton = new BackButton backButton = new BackButton
{ {
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
@ -416,6 +404,19 @@ namespace osu.Game
screenStack.Exit(); screenStack.Exit();
} }
}, },
new VolumeControlReceptor
{
RelativeSizeAxes = Axes.Both,
ActionRequested = action => volume.Adjust(action),
ScrollActionRequested = (action, amount, isPrecise) => volume.Adjust(action, amount, isPrecise),
},
screenContainer = new ScalingContainer(ScalingMode.ExcludeOverlays)
{
RelativeSizeAxes = Axes.Both,
Children = new[]
{
screenStack = new OsuScreenStack { RelativeSizeAxes = Axes.Both },
backButton.CreateProxy(),
logoContainer = new Container { RelativeSizeAxes = Axes.Both }, logoContainer = new Container { RelativeSizeAxes = Axes.Both },
} }
}, },