Use better formatting for skin display (matching BeatmapMetadata)

This commit is contained in:
Dean Herbert 2020-05-24 22:30:56 +09:00
parent c071fe6140
commit f277b0c99f
1 changed files with 5 additions and 3 deletions

View File

@ -24,8 +24,6 @@ public class SkinInfo : IHasFiles<SkinFileInfo>, IEquatable<SkinInfo>, IHasPrima
public bool DeletePending { get; set; } public bool DeletePending { get; set; }
public string FullName => $"\"{Name}\" by {Creator}";
public static SkinInfo Default { get; } = new SkinInfo public static SkinInfo Default { get; } = new SkinInfo
{ {
Name = "osu!lazer", Name = "osu!lazer",
@ -34,6 +32,10 @@ public class SkinInfo : IHasFiles<SkinFileInfo>, IEquatable<SkinInfo>, IHasPrima
public bool Equals(SkinInfo other) => other != null && ID == other.ID; public bool Equals(SkinInfo other) => other != null && ID == other.ID;
public override string ToString() => FullName; public override string ToString()
{
string author = Creator == null ? string.Empty : $"({Creator})";
return $"{Name} {author}".Trim();
}
} }
} }