mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
apply feedback
-don't directly set AllowOverlay Bindable this should be done specifically where needed -remove AllowOverlay Bindable from ButtonSystem -remove unnecessary xmldoc
This commit is contained in:
@ -8,7 +8,6 @@ using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Audio.Sample;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
@ -20,7 +19,6 @@ using osu.Game.Input.Bindings;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using OpenTK.Input;
|
||||
using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Screens.Menu
|
||||
{
|
||||
@ -28,8 +26,6 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
public event Action<MenuState> StateChanged;
|
||||
|
||||
private readonly Bindable<OverlayActivation> allowOverlays = new Bindable<OverlayActivation>();
|
||||
|
||||
public Action OnEdit;
|
||||
public Action OnExit;
|
||||
public Action OnDirect;
|
||||
@ -134,11 +130,8 @@ namespace osu.Game.Screens.Menu
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(AudioManager audio, OsuGame game)
|
||||
private void load(AudioManager audio)
|
||||
{
|
||||
if (game != null)
|
||||
allowOverlays.BindTo(game.AllowOverlays);
|
||||
|
||||
sampleBack = audio.Sample.Get(@"Menu/button-back-select");
|
||||
}
|
||||
|
||||
@ -329,7 +322,6 @@ namespace osu.Game.Screens.Menu
|
||||
case MenuState.Exit:
|
||||
case MenuState.Initial:
|
||||
logoTracking = false;
|
||||
allowOverlays.Value = OverlayActivation.Disabled;
|
||||
|
||||
logoDelayedAction = Scheduler.AddDelayed(() =>
|
||||
{
|
||||
@ -338,9 +330,6 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
logo.MoveTo(new Vector2(0.5f), 800, Easing.OutExpo);
|
||||
logo.ScaleTo(1, 800, Easing.OutExpo);
|
||||
|
||||
if(state != MenuState.Exit)
|
||||
allowOverlays.Value = OverlayActivation.All;
|
||||
}, 150);
|
||||
break;
|
||||
case MenuState.TopLevel:
|
||||
|
@ -20,6 +20,7 @@ namespace osu.Game.Screens.Menu
|
||||
private Color4 iconColour;
|
||||
|
||||
protected override bool HideOverlaysOnEnter => true;
|
||||
protected override OverlayActivation OverlayActivationLevel => OverlayActivation.Disabled;
|
||||
|
||||
public override bool CursorVisible => false;
|
||||
|
||||
@ -93,8 +94,6 @@ namespace osu.Game.Screens.Menu
|
||||
LoadComponentAsync(intro = new Intro());
|
||||
|
||||
iconColour = colours.Yellow;
|
||||
|
||||
AllowOverlays.Value = OverlayActivation.Disabled;
|
||||
}
|
||||
|
||||
protected override void OnEntering(Screen last)
|
||||
|
@ -33,6 +33,7 @@ namespace osu.Game.Screens.Menu
|
||||
private SampleChannel seeya;
|
||||
|
||||
protected override bool HideOverlaysOnEnter => true;
|
||||
protected override OverlayActivation OverlayActivationLevel => OverlayActivation.Disabled;
|
||||
|
||||
public override bool CursorVisible => false;
|
||||
|
||||
@ -77,8 +78,6 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
welcome = audio.Sample.Get(@"welcome");
|
||||
seeya = audio.Sample.Get(@"seeya");
|
||||
|
||||
AllowOverlays.Value = OverlayActivation.Disabled;
|
||||
}
|
||||
|
||||
protected override void OnEntering(Screen last)
|
||||
|
@ -10,7 +10,6 @@ using osu.Framework.Input;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Screens.Backgrounds;
|
||||
using osu.Game.Screens.Charts;
|
||||
using osu.Game.Screens.Direct;
|
||||
@ -80,8 +79,6 @@ namespace osu.Game.Screens.Menu
|
||||
}
|
||||
|
||||
preloadSongSelect();
|
||||
|
||||
AllowOverlays.Value = OverlayActivation.Disabled;
|
||||
}
|
||||
|
||||
private void preloadSongSelect()
|
||||
|
Reference in New Issue
Block a user