mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Change low-hanging references of "room" to "playlist"
This commit is contained in:
parent
aec25e2d73
commit
3a46e210d4
@ -59,7 +59,7 @@ namespace osu.Game.Screens.Multi
|
||||
private OsuGameBase game { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; }
|
||||
protected IAPIProvider API { get; private set; }
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private OsuLogo logo { get; set; }
|
||||
@ -155,7 +155,7 @@ namespace osu.Game.Screens.Multi
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(IdleTracker idleTracker)
|
||||
{
|
||||
apiState.BindTo(api.State);
|
||||
apiState.BindTo(API.State);
|
||||
apiState.BindValueChanged(onlineStateChanged, true);
|
||||
|
||||
if (idleTracker != null)
|
||||
@ -269,7 +269,7 @@ namespace osu.Game.Screens.Multi
|
||||
/// Creates a new room.
|
||||
/// </summary>
|
||||
/// <returns>The created <see cref="Room"/>.</returns>
|
||||
protected virtual Room CreateNewRoom() => new Room { Name = { Value = $"{api.LocalUser}'s awesome room" } };
|
||||
protected abstract Room CreateNewRoom();
|
||||
|
||||
private void screenPushed(IScreen lastScreen, IScreen newScreen)
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
|
||||
|
||||
protected override Room CreateNewRoom()
|
||||
{
|
||||
var room = base.CreateNewRoom();
|
||||
var room = new Room { Name = { Value = $"{API.LocalUser}'s awesome room" } };
|
||||
room.Category.Value = RoomCategory.Realtime;
|
||||
return room;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Screens.Multi.Timeshift
|
||||
{
|
||||
Triangles.TriangleScale = 1.5f;
|
||||
|
||||
Text = "Create room";
|
||||
Text = "Create playlist";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
using osu.Game.Screens.Multi.Components;
|
||||
using osu.Game.Screens.Multi.Lounge;
|
||||
using osu.Game.Screens.Multi.Match;
|
||||
@ -45,6 +46,11 @@ namespace osu.Game.Screens.Multi.Timeshift
|
||||
Logger.Log($"Polling adjusted (listing: {timeshiftManager.TimeBetweenListingPolls.Value}, selection: {timeshiftManager.TimeBetweenSelectionPolls.Value})");
|
||||
}
|
||||
|
||||
protected override Room CreateNewRoom()
|
||||
{
|
||||
return new Room { Name = { Value = $"{API.LocalUser}'s awesome playlist" } };
|
||||
}
|
||||
|
||||
protected override RoomManager CreateRoomManager() => new TimeshiftRoomManager();
|
||||
|
||||
protected override LoungeSubScreen CreateLounge() => new TimeshiftLoungeSubScreen();
|
||||
|
Loading…
Reference in New Issue
Block a user