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:
parent
00a00ead22
commit
90227a6496
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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!;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user