mirror of
https://github.com/ppy/osu.git
synced 2025-03-14 12:47:21 +08:00
Bind game-wide mods bindable to mod select overlay in new song select screen
This commit is contained in:
parent
e57a0029f1
commit
58c7d1e772
@ -64,18 +64,29 @@ namespace osu.Game.Screens.SelectV2
|
||||
public override void OnEntering(ScreenTransitionEvent e)
|
||||
{
|
||||
this.FadeIn();
|
||||
|
||||
modSelectOverlay.SelectedMods.BindTo(Mods);
|
||||
|
||||
base.OnEntering(e);
|
||||
}
|
||||
|
||||
public override void OnResuming(ScreenTransitionEvent e)
|
||||
{
|
||||
this.FadeIn();
|
||||
|
||||
// required due to https://github.com/ppy/osu-framework/issues/3218
|
||||
modSelectOverlay.SelectedMods.Disabled = false;
|
||||
modSelectOverlay.SelectedMods.BindTo(Mods);
|
||||
|
||||
base.OnResuming(e);
|
||||
}
|
||||
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
{
|
||||
this.Delay(400).FadeOut();
|
||||
|
||||
modSelectOverlay.SelectedMods.UnbindFrom(Mods);
|
||||
|
||||
base.OnSuspending(e);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user