mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Rename OnlinePlayScreen.LoungeSubScreen
to Lounge
This commit is contained in:
parent
6bd51b32b4
commit
6d97f89399
@ -93,7 +93,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
|
|
||||||
public void Join(Room room, string? password)
|
public void Join(Room room, string? password)
|
||||||
{
|
{
|
||||||
LoungeSubScreen.Join(room, password);
|
Lounge.Join(room, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
|
@ -32,7 +32,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
// while leases may be taken out by a subscreen.
|
// while leases may be taken out by a subscreen.
|
||||||
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||||
|
|
||||||
protected LoungeSubScreen LoungeSubScreen;
|
protected LoungeSubScreen Lounge;
|
||||||
|
|
||||||
private MultiplayerWaveContainer waves;
|
private MultiplayerWaveContainer waves;
|
||||||
private ScreenStack screenStack;
|
private ScreenStack screenStack;
|
||||||
@ -90,7 +90,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
screenStack.ScreenPushed += screenPushed;
|
screenStack.ScreenPushed += screenPushed;
|
||||||
screenStack.ScreenExited += screenExited;
|
screenStack.ScreenExited += screenExited;
|
||||||
|
|
||||||
screenStack.Push(LoungeSubScreen = CreateLounge());
|
screenStack.Push(Lounge = CreateLounge());
|
||||||
|
|
||||||
apiState.BindTo(API.State);
|
apiState.BindTo(API.State);
|
||||||
apiState.BindValueChanged(onlineStateChanged, true);
|
apiState.BindValueChanged(onlineStateChanged, true);
|
||||||
@ -121,10 +121,10 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
|
|
||||||
Mods.SetDefault();
|
Mods.SetDefault();
|
||||||
|
|
||||||
if (LoungeSubScreen.IsCurrentScreen())
|
if (Lounge.IsCurrentScreen())
|
||||||
LoungeSubScreen.OnEntering(e);
|
Lounge.OnEntering(e);
|
||||||
else
|
else
|
||||||
LoungeSubScreen.MakeCurrent();
|
Lounge.MakeCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResuming(ScreenTransitionEvent e)
|
public override void OnResuming(ScreenTransitionEvent e)
|
||||||
@ -159,7 +159,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
|
|
||||||
public override bool OnExiting(ScreenExitEvent e)
|
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;
|
var subScreen = (Screen)screenStack.CurrentScreen;
|
||||||
if (subScreen.IsLoaded && subScreen.OnExiting(e))
|
if (subScreen.IsLoaded && subScreen.OnExiting(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user