1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Rename confirmation dialog class to mention revert not reset

This commit is contained in:
Dean Herbert 2023-03-07 18:01:13 +09:00
parent 55467fcbe3
commit 26ef7c2637

View File

@ -153,7 +153,7 @@ namespace osu.Game.Overlays.SkinEditor
Items = new[] Items = new[]
{ {
new EditorMenuItem(Web.CommonStrings.ButtonsSave, MenuItemType.Standard, () => Save()), new EditorMenuItem(Web.CommonStrings.ButtonsSave, MenuItemType.Standard, () => Save()),
new EditorMenuItem(CommonStrings.RevertToDefault, MenuItemType.Destructive, () => dialogOverlay?.Push(new ResetConfirmDialog(revert))), new EditorMenuItem(CommonStrings.RevertToDefault, MenuItemType.Destructive, () => dialogOverlay?.Push(new RevertConfirmDialog(revert))),
new EditorMenuItemSpacer(), new EditorMenuItemSpacer(),
new EditorMenuItem(CommonStrings.Exit, MenuItemType.Standard, () => skinEditorOverlay?.Hide()), new EditorMenuItem(CommonStrings.Exit, MenuItemType.Standard, () => skinEditorOverlay?.Hide()),
}, },
@ -630,9 +630,9 @@ namespace osu.Game.Overlays.SkinEditor
} }
} }
public partial class ResetConfirmDialog : DangerousActionDialog public partial class RevertConfirmDialog : DangerousActionDialog
{ {
public ResetConfirmDialog(Action revert) public RevertConfirmDialog(Action revert)
{ {
HeaderText = SkinEditorStrings.RevertToDefaultDescription; HeaderText = SkinEditorStrings.RevertToDefaultDescription;
BodyText = SkinEditorStrings.ResetDialogue; BodyText = SkinEditorStrings.ResetDialogue;