apply suggestions

This commit is contained in:
unknown
2020-01-31 06:41:50 +08:00
parent 0d3ccae1c2
commit 2274d70dac
4 changed files with 23 additions and 11 deletions

View File

@ -158,12 +158,18 @@ namespace osu.Game.Overlays.BeatmapSet
switch(type)
{
case MetadataType.Tags:
foreach (string tag in value.Split(" "))
textFlow.AddLink(tag + " ", LinkAction.OpenDirectWithSearch, tag, null, format);
string[] tags = value.Split(" ");
for (int i = 0; i <= tags.Length - 1; i++)
{
textFlow.AddLink(tags[i], LinkAction.SearchBeatmapSet, tags[i], null, format);
if (i != tags.Length - 1)
textFlow.AddText(" ", format);
}
break;
case MetadataType.Source:
textFlow.AddLink(value, LinkAction.OpenDirectWithSearch, value, null, format);
textFlow.AddLink(value, LinkAction.SearchBeatmapSet, value, null, format);
break;
default: