Use existing strings

This commit is contained in:
ansel 2023-01-15 14:39:34 +03:00
parent 87650044bb
commit 8777d5349b
4 changed files with 5 additions and 18 deletions

View File

@ -54,11 +54,6 @@ public static class EditorStrings
/// </summary>
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>
/// "Waveform opacity"
/// </summary>
@ -79,11 +74,6 @@ public static class EditorStrings
/// </summary>
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>
/// "Export package"
/// </summary>
@ -154,11 +144,6 @@ public static class EditorStrings
/// </summary>
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}";
}
}

View File

@ -16,7 +16,7 @@ internal class BackgroundDimMenuItem : MenuItem
private readonly Dictionary<float, TernaryStateRadioMenuItem> menuItemLookup = new Dictionary<float, TernaryStateRadioMenuItem>();
public BackgroundDimMenuItem(Bindable<float> backgroundDim)
: base(EditorStrings.BackgroundDim)
: base(GameplaySettingsStrings.BackgroundDim)
{
Items = new[]
{

View File

@ -11,6 +11,7 @@
using osu.Game.Graphics.UserInterface;
using osu.Game.Localisation;
using osu.Game.Overlays;
using osu.Game.Resources.Localisation.Web;
using osuTK;
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
@ -86,7 +87,7 @@ private void load(OverlayColourProvider colourProvider)
},
controlPointsCheckbox = new OsuCheckbox
{
LabelText = EditorStrings.TimelineBpm,
LabelText = BeatmapsetsStrings.ShowStatsBpm,
Current = { Value = true },
},
}

View File

@ -51,6 +51,7 @@
using osu.Game.Screens.Play;
using osu.Game.Users;
using osuTK.Input;
using CommonStrings = osu.Game.Resources.Localisation.Web.CommonStrings;
namespace osu.Game.Screens.Edit
{
@ -951,7 +952,7 @@ private void updateLastSavedHash()
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 EditorMenuItemSpacer(),
createDifficultyCreationMenu(),