mirror of
https://github.com/ppy/osu.git
synced 2025-02-26 14:23:00 +08:00
Move activity setup to BDL.
This commit is contained in:
parent
790a2ca97d
commit
55070556a7
@ -137,6 +137,9 @@ namespace osu.Game.Screens
|
|||||||
private void load(OsuGame osu, AudioManager audio)
|
private void load(OsuGame osu, AudioManager audio)
|
||||||
{
|
{
|
||||||
sampleExit = audio.Samples.Get(@"UI/screen-back");
|
sampleExit = audio.Samples.Get(@"UI/screen-back");
|
||||||
|
|
||||||
|
if (Activity.Value == null)
|
||||||
|
Activity.Value = InitialActivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResuming(IScreen last)
|
public override void OnResuming(IScreen last)
|
||||||
@ -161,9 +164,6 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
backgroundStack?.Push(localBackground = CreateBackground());
|
backgroundStack?.Push(localBackground = CreateBackground());
|
||||||
|
|
||||||
if (Activity.Value == null)
|
|
||||||
Activity.Value = InitialActivity;
|
|
||||||
|
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user