mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +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
|
||||
{
|
||||
public partial class DeleteCollectionDialog : DeleteConfirmationDialog
|
||||
public partial class DeleteCollectionDialog : DangerousActionDialog
|
||||
{
|
||||
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
|
||||
/// (requires the confirm button to be held).
|
||||
/// </summary>
|
||||
public abstract partial class DeleteConfirmationDialog : PopupDialog
|
||||
public abstract partial class DangerousActionDialog : PopupDialog
|
||||
{
|
||||
/// <summary>
|
||||
/// The action which performs the deletion.
|
||||
/// </summary>
|
||||
protected Action? DeleteAction { get; set; }
|
||||
|
||||
protected DeleteConfirmationDialog()
|
||||
protected DangerousActionDialog()
|
||||
{
|
||||
HeaderText = DeleteConfirmationDialogStrings.HeaderText;
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Rulesets.Mods;
|
||||
|
||||
namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
public partial class DeleteModPresetDialog : DeleteConfirmationDialog
|
||||
public partial class DeleteModPresetDialog : DangerousActionDialog
|
||||
{
|
||||
public DeleteModPresetDialog(Live<ModPreset> modPreset)
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ using osu.Game.Overlays.Dialog;
|
||||
|
||||
namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
{
|
||||
public partial class MassDeleteConfirmationDialog : DeleteConfirmationDialog
|
||||
public partial class MassDeleteConfirmationDialog : DangerousActionDialog
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
|
||||
|
||||
namespace osu.Game.Screens.Edit
|
||||
{
|
||||
public partial class DeleteDifficultyConfirmationDialog : DeleteConfirmationDialog
|
||||
public partial class DeleteDifficultyConfirmationDialog : DangerousActionDialog
|
||||
{
|
||||
public DeleteDifficultyConfirmationDialog(BeatmapInfo beatmapInfo, Action deleteAction)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public partial class BeatmapClearScoresDialog : DeleteConfirmationDialog
|
||||
public partial class BeatmapClearScoresDialog : DangerousActionDialog
|
||||
{
|
||||
[Resolved]
|
||||
private ScoreManager scoreManager { get; set; } = null!;
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public partial class BeatmapDeleteDialog : DeleteConfirmationDialog
|
||||
public partial class BeatmapDeleteDialog : DangerousActionDialog
|
||||
{
|
||||
private readonly BeatmapSetInfo beatmapSet;
|
||||
|
||||
|
@ -8,7 +8,7 @@ using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
public partial class UpdateLocalConfirmationDialog : DeleteConfirmationDialog
|
||||
public partial class UpdateLocalConfirmationDialog : DangerousActionDialog
|
||||
{
|
||||
public UpdateLocalConfirmationDialog(Action onConfirm)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using osu.Game.Beatmaps;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public partial class LocalScoreDeleteDialog : DeleteConfirmationDialog
|
||||
public partial class LocalScoreDeleteDialog : DangerousActionDialog
|
||||
{
|
||||
private readonly ScoreInfo score;
|
||||
|
||||
|
@ -7,7 +7,7 @@ using osu.Game.Overlays.Dialog;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
public partial class SkinDeleteDialog : DeleteConfirmationDialog
|
||||
public partial class SkinDeleteDialog : DangerousActionDialog
|
||||
{
|
||||
private readonly Skin skin;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user