mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 14:47:22 +09:00
Put multiplayer background inside a parallax container
This commit is contained in:
parent
0d95511222
commit
0b64af5e02
@ -38,6 +38,7 @@ namespace osu.Game.Screens.Multi
|
|||||||
private readonly OsuButton createButton;
|
private readonly OsuButton createButton;
|
||||||
private readonly LoungeSubScreen loungeSubScreen;
|
private readonly LoungeSubScreen loungeSubScreen;
|
||||||
private readonly ScreenStack screenStack;
|
private readonly ScreenStack screenStack;
|
||||||
|
private ParallaxContainer backgroundParallax;
|
||||||
|
|
||||||
private readonly IBindable<bool> isIdle = new BindableBool();
|
private readonly IBindable<bool> isIdle = new BindableBool();
|
||||||
|
|
||||||
@ -98,9 +99,13 @@ namespace osu.Game.Screens.Multi
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Padding = new MarginPadding { Top = Header.HEIGHT },
|
Padding = new MarginPadding { Top = Header.HEIGHT },
|
||||||
Children = new[]
|
Children = new CompositeDrawable[]
|
||||||
{
|
{
|
||||||
backgroundScreenStack = new BackgroundScreenStack { RelativeSizeAxes = Axes.Both },
|
backgroundParallax = new ParallaxContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Child = backgroundScreenStack = new BackgroundScreenStack { RelativeSizeAxes = Axes.Both },
|
||||||
|
},
|
||||||
screenStack = new ScreenStack(loungeSubScreen = new LoungeSubScreen()) { RelativeSizeAxes = Axes.Both },
|
screenStack = new ScreenStack(loungeSubScreen = new LoungeSubScreen()) { RelativeSizeAxes = Axes.Both },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user