1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

apply suggestions

This commit is contained in:
Nathan Alo 2021-08-14 22:39:12 +08:00
parent a553942a7f
commit 4ed06a1021
6 changed files with 12 additions and 12 deletions

View File

@ -226,7 +226,7 @@ namespace osu.Game.Rulesets
/// <summary>
/// The playing verb to be shown in the <see cref="UserActivity.SoloGame.Status"/>.
/// </summary>
public virtual string PlayingVerb => "Playing solo";
public virtual string PlayingVerb => "Playing";
/// <summary>
/// A list of available variant ids.

View File

@ -11,7 +11,6 @@ using osu.Game.Online.Rooms;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Screens.Select;
using osu.Game.Users;
namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
@ -20,13 +19,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
[Resolved]
private MultiplayerClient client { get; set; }
[Resolved]
private Room room { get; set; }
private LoadingLayer loadingLayer;
protected override UserActivity InitialActivity => new UserActivity.InLobby(room);
/// <summary>
/// Construct a new instance of multiplayer song select.
/// </summary>

View File

@ -17,7 +17,6 @@ using osu.Game.Scoring;
using osu.Game.Screens.Play;
using osu.Game.Screens.Play.HUD;
using osu.Game.Screens.Ranking;
using osu.Game.Users;
using osuTK;
namespace osu.Game.Screens.OnlinePlay.Multiplayer
@ -26,8 +25,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
protected override bool PauseOnFocusLost => false;
protected override UserActivity InitialActivity => new UserActivity.MultiplayerGame(Beatmap.Value.BeatmapInfo, Ruleset.Value);
// Disallow fails in multiplayer for now.
protected override bool CheckModsAllowFailure() => false;

View File

@ -17,6 +17,7 @@ using osu.Game.Overlays.Mods;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Screens.Select;
using osu.Game.Users;
using osu.Game.Utils;
namespace osu.Game.Screens.OnlinePlay
@ -32,6 +33,11 @@ namespace osu.Game.Screens.OnlinePlay
[Resolved(typeof(Room), nameof(Room.Playlist))]
protected BindableList<PlaylistItem> Playlist { get; private set; }
[Resolved]
private Room room { get; set; }
protected override UserActivity InitialActivity => new UserActivity.InLobby(room);
protected readonly Bindable<IReadOnlyList<Mod>> FreeMods = new Bindable<IReadOnlyList<Mod>>(Array.Empty<Mod>());
[CanBeNull]

View File

@ -6,6 +6,7 @@ using osu.Framework.Bindables;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
using osu.Game.Scoring;
using osu.Game.Users;
namespace osu.Game.Screens.Play
{
@ -19,6 +20,8 @@ namespace osu.Game.Screens.Play
protected readonly PlaylistItem PlaylistItem;
protected override UserActivity InitialActivity => new UserActivity.MultiplayerGame(Beatmap.Value.BeatmapInfo, Ruleset.Value);
protected RoomSubmittingPlayer(PlaylistItem playlistItem, PlayerConfiguration configuration = null)
: base(configuration)
{

View File

@ -74,7 +74,7 @@ namespace osu.Game.Users
public class InLobby : UserActivity
{
public override string Status => @"In a multiplayer lobby";
public override string Status => @"In a lobby";
public readonly Room Room;