mirror of https://github.com/ppy/osu
Use better formatting for skin display (matching BeatmapMetadata)
This commit is contained in:
parent
c071fe6140
commit
f277b0c99f
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue