Update SettingsSubsection.Header to accept a LocalisableString

This commit is contained in:
Dean Herbert
2021-07-15 12:50:34 +09:00
parent 687c9aa33d
commit 5b91111eda
29 changed files with 75 additions and 34 deletions

View File

@ -0,0 +1,19 @@
// 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 MouseSettingsStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.MouseSettings";
/// <summary>
/// "Mouse"
/// </summary>
public static LocalisableString Mouse => new TranslatableString(getKey(@"mouse"), @"Mouse");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}