1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 03:03:21 +08:00

Move player settings out of right flow

This commit is contained in:
Dean Herbert 2024-11-27 17:09:13 +09:00
parent 9c707ed341
commit 782ce24ca6
No known key found for this signature in database

View File

@ -146,7 +146,6 @@ namespace osu.Game.Screens.Play
Children = new Drawable[]
{
ModDisplay = CreateModsContainer(),
PlayerSettingsOverlay = CreatePlayerSettingsOverlay(),
}
},
bottomRightElements = new FillFlowContainer
@ -164,6 +163,7 @@ namespace osu.Game.Screens.Play
HoldToQuit = CreateHoldForMenuButton(),
}
},
PlayerSettingsOverlay = new PlayerSettingsOverlay(),
LeaderboardFlow = new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
@ -173,7 +173,7 @@ namespace osu.Game.Screens.Play
},
};
hideTargets = new List<Drawable> { mainComponents, topRightElements };
hideTargets = new List<Drawable> { mainComponents, topRightElements, PlayerSettingsOverlay };
if (rulesetComponents != null)
hideTargets.Add(rulesetComponents);
@ -389,8 +389,6 @@ namespace osu.Game.Screens.Play
Origin = Anchor.TopRight,
};
protected PlayerSettingsOverlay CreatePlayerSettingsOverlay() => new PlayerSettingsOverlay();
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (e.Repeat)