mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:36:10 +08:00
Use existing strings
This commit is contained in:
parent
87650044bb
commit
8777d5349b
@ -54,11 +54,6 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString View => new TranslatableString(getKey(@"view"), @"View");
|
public static LocalisableString View => new TranslatableString(getKey(@"view"), @"View");
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// "Background dim"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString BackgroundDim => new TranslatableString(getKey(@"background_dim"), @"Background dim");
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Waveform opacity"
|
/// "Waveform opacity"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -79,11 +74,6 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString SetPreviewPointToCurrent => new TranslatableString(getKey(@"set_preview_point_to_current"), @"Set preview point to current time");
|
public static LocalisableString SetPreviewPointToCurrent => new TranslatableString(getKey(@"set_preview_point_to_current"), @"Set preview point to current time");
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// "Save"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString Save => new TranslatableString(getKey(@"save"), @"Save");
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Export package"
|
/// "Export package"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -154,11 +144,6 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString TimelineTicks => new TranslatableString(getKey(@"timeline_ticks"), @"Ticks");
|
public static LocalisableString TimelineTicks => new TranslatableString(getKey(@"timeline_ticks"), @"Ticks");
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// "BPM"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString TimelineBpm => new TranslatableString(getKey(@"timeline_bpm"), @"BPM");
|
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
private readonly Dictionary<float, TernaryStateRadioMenuItem> menuItemLookup = new Dictionary<float, TernaryStateRadioMenuItem>();
|
private readonly Dictionary<float, TernaryStateRadioMenuItem> menuItemLookup = new Dictionary<float, TernaryStateRadioMenuItem>();
|
||||||
|
|
||||||
public BackgroundDimMenuItem(Bindable<float> backgroundDim)
|
public BackgroundDimMenuItem(Bindable<float> backgroundDim)
|
||||||
: base(EditorStrings.BackgroundDim)
|
: base(GameplaySettingsStrings.BackgroundDim)
|
||||||
{
|
{
|
||||||
Items = new[]
|
Items = new[]
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Sprites;
|
|||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Localisation;
|
using osu.Game.Localisation;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
|
using osu.Game.Resources.Localisation.Web;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||||
@ -86,7 +87,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
},
|
},
|
||||||
controlPointsCheckbox = new OsuCheckbox
|
controlPointsCheckbox = new OsuCheckbox
|
||||||
{
|
{
|
||||||
LabelText = EditorStrings.TimelineBpm,
|
LabelText = BeatmapsetsStrings.ShowStatsBpm,
|
||||||
Current = { Value = true },
|
Current = { Value = true },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ using osu.Game.Screens.Edit.Verify;
|
|||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
using CommonStrings = osu.Game.Resources.Localisation.Web.CommonStrings;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit
|
namespace osu.Game.Screens.Edit
|
||||||
{
|
{
|
||||||
@ -951,7 +952,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
private List<MenuItem> createFileMenuItems() => new List<MenuItem>
|
private List<MenuItem> createFileMenuItems() => new List<MenuItem>
|
||||||
{
|
{
|
||||||
new EditorMenuItem(EditorStrings.Save, MenuItemType.Standard, () => Save()),
|
new EditorMenuItem(CommonStrings.ButtonsSave, MenuItemType.Standard, () => Save()),
|
||||||
new EditorMenuItem(EditorStrings.ExportPackage, MenuItemType.Standard, exportBeatmap) { Action = { Disabled = !RuntimeInfo.IsDesktop } },
|
new EditorMenuItem(EditorStrings.ExportPackage, MenuItemType.Standard, exportBeatmap) { Action = { Disabled = !RuntimeInfo.IsDesktop } },
|
||||||
new EditorMenuItemSpacer(),
|
new EditorMenuItemSpacer(),
|
||||||
createDifficultyCreationMenu(),
|
createDifficultyCreationMenu(),
|
||||||
|
Loading…
Reference in New Issue
Block a user