Files
Ez2Lazer/osu.Game/Localisation/ReplayFailIndicatorStrings.cs
Bartłomiej Dach 35a472ae39 Show indicator in replay player once replay fails
This indicator allows the player to either rewind to an earlier part of
the replay, or to proceed to results. It also plays a shortened variant
of the failure animation SFX.
2025-08-12 14:25:58 +02:00

24 lines
848 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Localisation;
namespace osu.Game.Localisation
{
public static class ReplayFailIndicatorStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.ReplayFailIndicator";
/// <summary>
/// "Replay failed"
/// </summary>
public static LocalisableString ReplayFailed => new TranslatableString(getKey(@"replay_failed"), @"Replay failed");
/// <summary>
/// "Go to results"
/// </summary>
public static LocalisableString GoToResults => new TranslatableString(getKey(@"go_to_results"), @"Go to results");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}