mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Create the correct room subscreen
This commit is contained in:
parent
5b4197a9ef
commit
15480c006b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user