mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 13:47:38 +08:00
Localise some music action toasts
This commit is contained in:
parent
545cfc7bf1
commit
7b37b15976
@ -6,9 +6,11 @@ using osu.Framework.Bindables;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
|
using osu.Game.Localisation;
|
||||||
using osu.Game.Overlays.OSD;
|
using osu.Game.Overlays.OSD;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Music
|
namespace osu.Game.Overlays.Music
|
||||||
@ -43,7 +45,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GlobalAction.MusicNext:
|
case GlobalAction.MusicNext:
|
||||||
musicController.NextTrack(() => onScreenDisplay?.Display(new MusicActionToast("Next track", e.Action)));
|
musicController.NextTrack(() => onScreenDisplay?.Display(new MusicActionToast(GlobalActionKeyBindingStrings.MusicNext, e.Action)));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -57,7 +59,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PreviousTrackResult.Previous:
|
case PreviousTrackResult.Previous:
|
||||||
onScreenDisplay?.Display(new MusicActionToast("Previous track", e.Action));
|
onScreenDisplay?.Display(new MusicActionToast(GlobalActionKeyBindingStrings.MusicPrev, e.Action));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -76,7 +78,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
{
|
{
|
||||||
private readonly GlobalAction action;
|
private readonly GlobalAction action;
|
||||||
|
|
||||||
public MusicActionToast(string value, GlobalAction action)
|
public MusicActionToast(LocalisableString value, GlobalAction action)
|
||||||
: base("Music Playback", value, string.Empty)
|
: base("Music Playback", value, string.Empty)
|
||||||
{
|
{
|
||||||
this.action = action;
|
this.action = action;
|
||||||
|
Loading…
Reference in New Issue
Block a user