mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Rename {Multiplayer -> OnlinePlay}Screen
This commit is contained in:
parent
83fb7c7a1a
commit
4caf75850b
@ -42,7 +42,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
private CachedModelDependencyContainer<Room> dependencies;
|
||||
|
||||
[Resolved(canBeNull: true)]
|
||||
private MultiplayerScreen multiplayer { get; set; }
|
||||
private OnlinePlayScreen parentScreen { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private BeatmapManager beatmaps { get; set; }
|
||||
@ -242,7 +242,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
{
|
||||
new OsuMenuItem("Create copy", MenuItemType.Standard, () =>
|
||||
{
|
||||
multiplayer?.OpenNewRoom(Room.CreateCopy());
|
||||
parentScreen?.OpenNewRoom(Room.CreateCopy());
|
||||
})
|
||||
};
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
private BeatmapManager beatmapManager { get; set; }
|
||||
|
||||
[Resolved(canBeNull: true)]
|
||||
protected MultiplayerScreen Multiplayer { get; private set; }
|
||||
protected OnlinePlayScreen ParentScreen { get; private set; }
|
||||
|
||||
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
||||
|
||||
@ -88,7 +88,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
protected void StartPlay(Func<Player> player)
|
||||
{
|
||||
sampleStart?.Play();
|
||||
Multiplayer?.Push(new PlayerLoader(player));
|
||||
ParentScreen?.Push(new PlayerLoader(player));
|
||||
}
|
||||
|
||||
private void selectedItemChanged()
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Screens.OnlinePlay.Lounge;
|
||||
|
||||
namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
{
|
||||
public class Multiplayer : MultiplayerScreen
|
||||
public class Multiplayer : OnlinePlayScreen
|
||||
{
|
||||
[Resolved]
|
||||
private StatefulMultiplayerClient client { get; set; }
|
||||
|
@ -27,7 +27,7 @@ using osuTK;
|
||||
namespace osu.Game.Screens.OnlinePlay
|
||||
{
|
||||
[Cached]
|
||||
public abstract class MultiplayerScreen : OsuScreen
|
||||
public abstract class OnlinePlayScreen : OsuScreen
|
||||
{
|
||||
public override bool CursorVisible => (screenStack.CurrentScreen as IMultiplayerSubScreen)?.CursorVisible ?? true;
|
||||
|
||||
@ -67,7 +67,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
private readonly Drawable header;
|
||||
private readonly Drawable headerBackground;
|
||||
|
||||
protected MultiplayerScreen()
|
||||
protected OnlinePlayScreen()
|
||||
{
|
||||
Anchor = Anchor.Centre;
|
||||
Origin = Anchor.Centre;
|
@ -11,7 +11,7 @@ using osu.Game.Screens.OnlinePlay.Match;
|
||||
|
||||
namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
{
|
||||
public class Playlists : MultiplayerScreen
|
||||
public class Playlists : OnlinePlayScreen
|
||||
{
|
||||
protected override void UpdatePollingRate(bool isIdle)
|
||||
{
|
||||
|
@ -28,9 +28,6 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
[Resolved(typeof(Room), nameof(Room.RoomID))]
|
||||
private Bindable<int?> roomId { get; set; }
|
||||
|
||||
[Resolved(canBeNull: true)]
|
||||
private MultiplayerScreen multiplayer { get; set; }
|
||||
|
||||
private MatchSettingsOverlay settingsOverlay;
|
||||
private MatchLeaderboard leaderboard;
|
||||
|
||||
@ -124,7 +121,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
RequestShowResults = item =>
|
||||
{
|
||||
Debug.Assert(roomId.Value != null);
|
||||
multiplayer?.Push(new PlaylistsResultsScreen(null, roomId.Value.Value, item, false));
|
||||
ParentScreen?.Push(new PlaylistsResultsScreen(null, roomId.Value.Value, item, false));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user