mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
expose two Bindables with split logic instead of one with mixed logic
This commit is contained in:
@ -77,7 +77,8 @@ namespace osu.Game
|
||||
|
||||
public float ToolbarOffset => Toolbar.Position.Y + Toolbar.DrawHeight;
|
||||
|
||||
public readonly BindableBool AllowOverlays = new BindableBool();
|
||||
public readonly BindableBool HideOverlaysOnEnter = new BindableBool();
|
||||
public readonly BindableBool AllowOpeningOverlays = new BindableBool(true);
|
||||
|
||||
private OsuScreen screenStack;
|
||||
|
||||
@ -367,12 +368,12 @@ namespace osu.Game
|
||||
settings.StateChanged += _ => updateScreenOffset();
|
||||
notifications.StateChanged += _ => updateScreenOffset();
|
||||
|
||||
notifications.Enabled.BindTo(AllowOverlays);
|
||||
notifications.Enabled.BindTo(AllowOpeningOverlays);
|
||||
|
||||
AllowOverlays.ValueChanged += show =>
|
||||
HideOverlaysOnEnter.ValueChanged += hide =>
|
||||
{
|
||||
//central game screen change logic.
|
||||
if (!show)
|
||||
if (hide)
|
||||
{
|
||||
hideAllOverlays();
|
||||
musicController.State = Visibility.Hidden;
|
||||
|
Reference in New Issue
Block a user