mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 13:22:55 +08:00
Refactor to string interpolation
This commit is contained in:
parent
581f190856
commit
ac6cce5911
@ -242,7 +242,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
title.Clear();
|
title.Clear();
|
||||||
artist.Clear();
|
artist.Clear();
|
||||||
|
|
||||||
title.AddLink(titleText, LinkAction.SearchBeatmapSet, "title=\"\"" + titleText + "\"\"");
|
title.AddLink(titleText, LinkAction.SearchBeatmapSet, $@"title=""""{titleText}""""");
|
||||||
|
|
||||||
title.AddArbitraryDrawable(Empty().With(d => d.Width = 5));
|
title.AddArbitraryDrawable(Empty().With(d => d.Width = 5));
|
||||||
title.AddArbitraryDrawable(externalLink = new ExternalLinkButton());
|
title.AddArbitraryDrawable(externalLink = new ExternalLinkButton());
|
||||||
@ -259,7 +259,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
title.AddArbitraryDrawable(new SpotlightBeatmapBadge());
|
title.AddArbitraryDrawable(new SpotlightBeatmapBadge());
|
||||||
}
|
}
|
||||||
|
|
||||||
artist.AddLink(artistText, LinkAction.SearchBeatmapSet, "artist=\"\"" + artistText + "\"\"");
|
artist.AddLink(artistText, LinkAction.SearchBeatmapSet, $@"artist=""""{artistText}""""");
|
||||||
|
|
||||||
if (setInfo.NewValue.TrackId != null)
|
if (setInfo.NewValue.TrackId != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user