1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Rename OnlinePlayScreen.LoungeSubScreen to Lounge

This commit is contained in:
Marvin Schürz 2023-10-04 08:37:22 +02:00
parent 6bd51b32b4
commit 6d97f89399
2 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
public void Join(Room room, string? password)
{
LoungeSubScreen.Join(room, password);
Lounge.Join(room, password);
}
protected override void Dispose(bool isDisposing)

View File

@ -32,7 +32,7 @@ namespace osu.Game.Screens.OnlinePlay
// while leases may be taken out by a subscreen.
public override bool DisallowExternalBeatmapRulesetChanges => true;
protected LoungeSubScreen LoungeSubScreen;
protected LoungeSubScreen Lounge;
private MultiplayerWaveContainer waves;
private ScreenStack screenStack;
@ -90,7 +90,7 @@ namespace osu.Game.Screens.OnlinePlay
screenStack.ScreenPushed += screenPushed;
screenStack.ScreenExited += screenExited;
screenStack.Push(LoungeSubScreen = CreateLounge());
screenStack.Push(Lounge = CreateLounge());
apiState.BindTo(API.State);
apiState.BindValueChanged(onlineStateChanged, true);
@ -121,10 +121,10 @@ namespace osu.Game.Screens.OnlinePlay
Mods.SetDefault();
if (LoungeSubScreen.IsCurrentScreen())
LoungeSubScreen.OnEntering(e);
if (Lounge.IsCurrentScreen())
Lounge.OnEntering(e);
else
LoungeSubScreen.MakeCurrent();
Lounge.MakeCurrent();
}
public override void OnResuming(ScreenTransitionEvent e)
@ -159,7 +159,7 @@ namespace osu.Game.Screens.OnlinePlay
public override bool OnExiting(ScreenExitEvent e)
{
while (screenStack.CurrentScreen != null && screenStack.CurrentScreen is not Lounge.LoungeSubScreen)
while (screenStack.CurrentScreen != null && screenStack.CurrentScreen is not LoungeSubScreen)
{
var subScreen = (Screen)screenStack.CurrentScreen;
if (subScreen.IsLoaded && subScreen.OnExiting(e))