mirror of
https://github.com/ppy/osu
synced 2025-02-03 20:02:16 +00:00
better method name
This commit is contained in:
parent
13f86f3e53
commit
8ecb4aa30b
@ -67,14 +67,14 @@ namespace osu.Game.Online.Chat
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
string beatmapString()
|
string getBeatmapPart()
|
||||||
{
|
{
|
||||||
string beatmapInfoString = localisation.GetLocalisedBindableString(beatmapInfo.GetDisplayTitleRomanisable()).Value;
|
string beatmapInfoString = localisation.GetLocalisedBindableString(beatmapInfo.GetDisplayTitleRomanisable()).Value;
|
||||||
|
|
||||||
return beatmapInfo.OnlineID > 0 ? $"[{api.WebsiteRootUrl}/b/{beatmapInfo.OnlineID} {beatmapInfoString}]" : beatmapInfoString;
|
return beatmapInfo.OnlineID > 0 ? $"[{api.WebsiteRootUrl}/b/{beatmapInfo.OnlineID} {beatmapInfoString}]" : beatmapInfoString;
|
||||||
}
|
}
|
||||||
|
|
||||||
string modString()
|
string getModPart()
|
||||||
{
|
{
|
||||||
if (selectedMods.Value.Count == 0)
|
if (selectedMods.Value.Count == 0)
|
||||||
{
|
{
|
||||||
@ -91,7 +91,7 @@ namespace osu.Game.Online.Chat
|
|||||||
return modS.ToString();
|
return modS.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
channelManager.PostMessage($"is {verb} {beatmapString()} {modString()}", true, target);
|
channelManager.PostMessage($"is {verb} {getBeatmapPart()} {getModPart()}", true, target);
|
||||||
Expire();
|
Expire();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user