mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 20:33:21 +08:00
Use LocalisableDescription
for skin editor layers dropdown
This commit is contained in:
parent
1e7e2e0b1c
commit
9cd7f2b5d4
@ -34,6 +34,16 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString Gameplay => new TranslatableString(getKey(@"gameplay"), @"Gameplay");
|
||||
|
||||
/// <summary>
|
||||
/// "HUD"
|
||||
/// </summary>
|
||||
public static LocalisableString HUD => new TranslatableString(getKey(@"hud"), @"HUD");
|
||||
|
||||
/// <summary>
|
||||
/// "Playfield"
|
||||
/// </summary>
|
||||
public static LocalisableString Playfield => new TranslatableString(getKey(@"playfield"), @"Playfield");
|
||||
|
||||
/// <summary>
|
||||
/// "Settings ({0})"
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,8 @@
|
||||
// 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 System.ComponentModel;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Skinning
|
||||
{
|
||||
@ -10,13 +11,13 @@ namespace osu.Game.Skinning
|
||||
/// </summary>
|
||||
public enum GlobalSkinnableContainers
|
||||
{
|
||||
[Description("HUD")]
|
||||
[LocalisableDescription(typeof(SkinEditorStrings), nameof(SkinEditorStrings.HUD))]
|
||||
MainHUDComponents,
|
||||
|
||||
[Description("Song select")]
|
||||
[LocalisableDescription(typeof(SkinEditorStrings), nameof(SkinEditorStrings.SongSelect))]
|
||||
SongSelect,
|
||||
|
||||
[Description("Playfield")]
|
||||
[LocalisableDescription(typeof(SkinEditorStrings), nameof(SkinEditorStrings.Playfield))]
|
||||
Playfield
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user