Create the correct room subscreen

This commit is contained in:
smoogipoo 2020-12-21 00:21:30 +09:00
parent 5b4197a9ef
commit 15480c006b
3 changed files with 12 additions and 2 deletions

View File

@ -13,7 +13,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Multiplayer; using osu.Game.Online.Multiplayer;
using osu.Game.Overlays; using osu.Game.Overlays;
using osu.Game.Screens.Multi.Lounge.Components; using osu.Game.Screens.Multi.Lounge.Components;
using osu.Game.Screens.Multi.Timeshift; using osu.Game.Screens.Multi.Match;
using osu.Game.Users; using osu.Game.Users;
namespace osu.Game.Screens.Multi.Lounge namespace osu.Game.Screens.Multi.Lounge
@ -192,9 +192,11 @@ namespace osu.Game.Screens.Multi.Lounge
selectedRoom.Value = room; selectedRoom.Value = room;
this.Push(new TimeshiftRoomSubScreen(room)); this.Push(CreateRoomSubScreen(room));
} }
protected abstract FilterControl CreateFilterControl(); protected abstract FilterControl CreateFilterControl();
protected abstract RoomSubScreen CreateRoomSubScreen(Room room);
} }
} }

View File

@ -1,13 +1,17 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Lounge; using osu.Game.Screens.Multi.Lounge;
using osu.Game.Screens.Multi.Lounge.Components; using osu.Game.Screens.Multi.Lounge.Components;
using osu.Game.Screens.Multi.Match;
namespace osu.Game.Screens.Multi.RealtimeMultiplayer namespace osu.Game.Screens.Multi.RealtimeMultiplayer
{ {
public class RealtimeLoungeSubScreen : LoungeSubScreen public class RealtimeLoungeSubScreen : LoungeSubScreen
{ {
protected override FilterControl CreateFilterControl() => new RealtimeFilterControl(); protected override FilterControl CreateFilterControl() => new RealtimeFilterControl();
protected override RoomSubScreen CreateRoomSubScreen(Room room) => new RealtimeMatchSubScreen(room);
} }
} }

View File

@ -1,13 +1,17 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Lounge; using osu.Game.Screens.Multi.Lounge;
using osu.Game.Screens.Multi.Lounge.Components; using osu.Game.Screens.Multi.Lounge.Components;
using osu.Game.Screens.Multi.Match;
namespace osu.Game.Screens.Multi.Timeshift namespace osu.Game.Screens.Multi.Timeshift
{ {
public class TimeshiftLoungeSubScreen : LoungeSubScreen public class TimeshiftLoungeSubScreen : LoungeSubScreen
{ {
protected override FilterControl CreateFilterControl() => new TimeshiftFilterControl(); protected override FilterControl CreateFilterControl() => new TimeshiftFilterControl();
protected override RoomSubScreen CreateRoomSubScreen(Room room) => new TimeshiftRoomSubScreen(room);
} }
} }