mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 14:10:48 +08:00
Localise "hold for menu" & "press for menu" in HoldForMenuButton (#36381)
This commit is contained in:
committed by
GitHub
Unverified
parent
7608ed4d87
commit
cf73f8f9e6
@@ -174,6 +174,16 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString SelectedMods => new TranslatableString(getKey(@"selected_mods"), @"Selected Mods");
|
||||
|
||||
/// <summary>
|
||||
/// "hold for menu"
|
||||
/// </summary>
|
||||
public static LocalisableString HoldForMenu => new TranslatableString(getKey(@"hold_for_menu"), @"hold for menu");
|
||||
|
||||
/// <summary>
|
||||
/// "press for menu"
|
||||
/// </summary>
|
||||
public static LocalisableString PressForMenu => new TranslatableString(getKey(@"press_for_menu"), @"press for menu");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Localisation;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@@ -93,8 +94,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
button.HoldActivationDelay.BindValueChanged(v =>
|
||||
{
|
||||
text.Text = v.NewValue > 0
|
||||
? "hold for menu"
|
||||
: "press for menu";
|
||||
? UserInterfaceStrings.HoldForMenu
|
||||
: UserInterfaceStrings.PressForMenu;
|
||||
}, true);
|
||||
|
||||
touchActive = sessionStatics.GetBindable<bool>(Static.TouchInputActive);
|
||||
|
||||
Reference in New Issue
Block a user