1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Rename DeleteConfirmationDialog.cs into DangerousActionDialog.cs

This commit is contained in:
mk56-spn 2023-02-27 21:57:59 +01:00
parent 00a00ead22
commit 90227a6496
11 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Collections namespace osu.Game.Collections
{ {
public partial class DeleteCollectionDialog : DeleteConfirmationDialog public partial class DeleteCollectionDialog : DangerousActionDialog
{ {
public DeleteCollectionDialog(Live<BeatmapCollection> collection, Action deleteAction) public DeleteCollectionDialog(Live<BeatmapCollection> collection, Action deleteAction)
{ {

View File

@ -12,14 +12,14 @@ namespace osu.Game.Overlays.Dialog
/// Differs from <see cref="ConfirmDialog"/> in that the confirmation button is a "dangerous" one /// Differs from <see cref="ConfirmDialog"/> in that the confirmation button is a "dangerous" one
/// (requires the confirm button to be held). /// (requires the confirm button to be held).
/// </summary> /// </summary>
public abstract partial class DeleteConfirmationDialog : PopupDialog public abstract partial class DangerousActionDialog : PopupDialog
{ {
/// <summary> /// <summary>
/// The action which performs the deletion. /// The action which performs the deletion.
/// </summary> /// </summary>
protected Action? DeleteAction { get; set; } protected Action? DeleteAction { get; set; }
protected DeleteConfirmationDialog() protected DangerousActionDialog()
{ {
HeaderText = DeleteConfirmationDialogStrings.HeaderText; HeaderText = DeleteConfirmationDialogStrings.HeaderText;

View File

@ -7,7 +7,7 @@ using osu.Game.Rulesets.Mods;
namespace osu.Game.Overlays.Mods namespace osu.Game.Overlays.Mods
{ {
public partial class DeleteModPresetDialog : DeleteConfirmationDialog public partial class DeleteModPresetDialog : DangerousActionDialog
{ {
public DeleteModPresetDialog(Live<ModPreset> modPreset) public DeleteModPresetDialog(Live<ModPreset> modPreset)
{ {

View File

@ -6,7 +6,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Settings.Sections.Maintenance namespace osu.Game.Overlays.Settings.Sections.Maintenance
{ {
public partial class MassDeleteConfirmationDialog : DeleteConfirmationDialog public partial class MassDeleteConfirmationDialog : DangerousActionDialog
{ {
public MassDeleteConfirmationDialog(Action deleteAction) public MassDeleteConfirmationDialog(Action deleteAction)
{ {

View File

@ -631,7 +631,7 @@ namespace osu.Game.Overlays.SkinEditor
} }
} }
public partial class ResetConfirmDialog : DeleteConfirmationDialog public partial class ResetConfirmDialog : DangerousActionDialog
{ {
public ResetConfirmDialog(Action reset) public ResetConfirmDialog(Action reset)
{ {

View File

@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Edit namespace osu.Game.Screens.Edit
{ {
public partial class DeleteDifficultyConfirmationDialog : DeleteConfirmationDialog public partial class DeleteDifficultyConfirmationDialog : DangerousActionDialog
{ {
public DeleteDifficultyConfirmationDialog(BeatmapInfo beatmapInfo, Action deleteAction) public DeleteDifficultyConfirmationDialog(BeatmapInfo beatmapInfo, Action deleteAction)
{ {

View File

@ -10,7 +10,7 @@ using osu.Game.Scoring;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public partial class BeatmapClearScoresDialog : DeleteConfirmationDialog public partial class BeatmapClearScoresDialog : DangerousActionDialog
{ {
[Resolved] [Resolved]
private ScoreManager scoreManager { get; set; } = null!; private ScoreManager scoreManager { get; set; } = null!;

View File

@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public partial class BeatmapDeleteDialog : DeleteConfirmationDialog public partial class BeatmapDeleteDialog : DangerousActionDialog
{ {
private readonly BeatmapSetInfo beatmapSet; private readonly BeatmapSetInfo beatmapSet;

View File

@ -8,7 +8,7 @@ using osu.Game.Localisation;
namespace osu.Game.Screens.Select.Carousel namespace osu.Game.Screens.Select.Carousel
{ {
public partial class UpdateLocalConfirmationDialog : DeleteConfirmationDialog public partial class UpdateLocalConfirmationDialog : DangerousActionDialog
{ {
public UpdateLocalConfirmationDialog(Action onConfirm) public UpdateLocalConfirmationDialog(Action onConfirm)
{ {

View File

@ -10,7 +10,7 @@ using osu.Game.Beatmaps;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public partial class LocalScoreDeleteDialog : DeleteConfirmationDialog public partial class LocalScoreDeleteDialog : DangerousActionDialog
{ {
private readonly ScoreInfo score; private readonly ScoreInfo score;

View File

@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
public partial class SkinDeleteDialog : DeleteConfirmationDialog public partial class SkinDeleteDialog : DangerousActionDialog
{ {
private readonly Skin skin; private readonly Skin skin;