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