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:
parent
bc89f8dc5b
commit
1baaae35a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user