Handle ties in team vs. results screen

This commit is contained in:
Bartłomiej Dach
2021-08-12 20:38:24 +02:00
parent d9190607e4
commit 53b4cdfb02
3 changed files with 31 additions and 6 deletions

View File

@ -5,15 +5,20 @@ using osu.Framework.Localisation;
namespace osu.Game.Localisation
{
public static class MultiplayerResultsScreenStrings
public static class MultiplayerTeamResultsScreenStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerResultsScreen";
private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerTeamResultsScreen";
/// <summary>
/// "Team {0} wins!"
/// </summary>
public static LocalisableString TeamWins(string winner) => new TranslatableString(getKey(@"team_wins"), @"Team {0} wins!", winner);
/// <summary>
/// "The teams are tied!"
/// </summary>
public static LocalisableString TheTeamsAreTied => new TranslatableString(getKey(@"the_teams_are_tied"), @"The teams are tied!");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}