mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Add common Export
string and use in editor
This commit is contained in:
parent
e7a9175aea
commit
d11e56b8bb
@ -39,6 +39,11 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString Default => new TranslatableString(getKey(@"default"), @"Default");
|
public static LocalisableString Default => new TranslatableString(getKey(@"default"), @"Default");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Export"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString Export => new TranslatableString(getKey(@"export"), @"Export");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Width"
|
/// "Width"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -34,11 +34,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>
|
|
||||||
/// "Export package"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString ExportPackage => new TranslatableString(getKey(@"export_package"), @"Export package");
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Legacy format (.osz)"
|
/// "Legacy format (.osz)"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -425,7 +425,7 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
if (Score.Files.Count > 0)
|
if (Score.Files.Count > 0)
|
||||||
{
|
{
|
||||||
items.Add(new OsuMenuItem("Export", MenuItemType.Standard, () => scoreManager.Export(Score)));
|
items.Add(new OsuMenuItem(Localisation.CommonStrings.Export, MenuItemType.Standard, () => scoreManager.Export(Score)));
|
||||||
items.Add(new OsuMenuItem(CommonStrings.ButtonsDelete, MenuItemType.Destructive, () => dialogOverlay?.Push(new LocalScoreDeleteDialog(Score))));
|
items.Add(new OsuMenuItem(CommonStrings.ButtonsDelete, MenuItemType.Destructive, () => dialogOverlay?.Push(new LocalScoreDeleteDialog(Score))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1016,7 +1016,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
new EditorMenuItem(EditorStrings.ExportLegacyFormat, MenuItemType.Standard, exportLegacyBeatmap) { Action = { Disabled = !RuntimeInfo.IsDesktop } },
|
new EditorMenuItem(EditorStrings.ExportLegacyFormat, MenuItemType.Standard, exportLegacyBeatmap) { Action = { Disabled = !RuntimeInfo.IsDesktop } },
|
||||||
};
|
};
|
||||||
|
|
||||||
return new EditorMenuItem(EditorStrings.ExportPackage) { Items = exportItems };
|
return new EditorMenuItem(CommonStrings.Export) { Items = exportItems };
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exportBeatmap()
|
private void exportBeatmap()
|
||||||
|
Loading…
Reference in New Issue
Block a user