mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 21:47:31 +09: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 readonly ScoreInfo score;
|
||||||
|
|
||||||
private string username => score.User.Username;
|
protected string Username => score.User.Username;
|
||||||
private string playingVerb => score.BeatmapInfo.Ruleset.CreateInstance().PlayingVerb;
|
|
||||||
|
|
||||||
public BeatmapInfo BeatmapInfo => score.BeatmapInfo;
|
public BeatmapInfo BeatmapInfo => score.BeatmapInfo;
|
||||||
|
|
||||||
@ -112,15 +111,12 @@ namespace osu.Game.Users
|
|||||||
this.score = score;
|
this.score = score;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual string Verb => @"Watching";
|
public override string Status => $@"Watching {Username}";
|
||||||
|
|
||||||
public override string Status => @$"{Verb} {username} {playingVerb.ToLowerInvariant()}";
|
|
||||||
public override string LimitedStatus => $@"{Verb} a game";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Spectating : Watching
|
public class Spectating : Watching
|
||||||
{
|
{
|
||||||
protected override string Verb => @"Spectating";
|
public override string Status => $@"Spectating {Username}";
|
||||||
|
|
||||||
public Spectating(ScoreInfo score)
|
public Spectating(ScoreInfo score)
|
||||||
: base(score)
|
: base(score)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user