1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

quality: Simplify string

This commit is contained in:
tsrk 2023-02-06 20:07:16 +00:00
parent bc89f8dc5b
commit 1baaae35a9
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -102,8 +102,7 @@ namespace osu.Game.Users
{
private readonly ScoreInfo score;
private string username => score.User.Username;
private string playingVerb => score.BeatmapInfo.Ruleset.CreateInstance().PlayingVerb;
protected string Username => score.User.Username;
public BeatmapInfo BeatmapInfo => score.BeatmapInfo;
@ -112,15 +111,12 @@ namespace osu.Game.Users
this.score = score;
}
protected virtual string Verb => @"Watching";
public override string Status => @$"{Verb} {username} {playingVerb.ToLowerInvariant()}";
public override string LimitedStatus => $@"{Verb} a game";
public override string Status => $@"Watching {Username}";
}
public class Spectating : Watching
{
protected override string Verb => @"Spectating";
public override string Status => $@"Spectating {Username}";
public Spectating(ScoreInfo score)
: base(score)