2024-06-11 11:31:49 +02:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Localisation;
|
2025-03-05 14:11:44 +01:00
|
|
|
using osu.Game.Overlays.Dialog;
|
2024-06-11 11:31:49 +02:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit
|
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
public partial class DiscardUnsavedChangesDialog : PopupDialog
|
2024-06-11 11:31:49 +02:00
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
public DiscardUnsavedChangesDialog(Action exit)
|
2024-06-11 11:31:49 +02:00
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
HeaderText = EditorDialogsStrings.DiscardUnsavedChangesDialogHeader;
|
2024-06-11 11:31:49 +02:00
|
|
|
|
2025-03-05 14:11:44 +01:00
|
|
|
Icon = FontAwesome.Solid.Trash;
|
2024-06-11 11:31:49 +02:00
|
|
|
|
|
|
|
Buttons = new PopupDialogButton[]
|
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
new PopupDialogDangerousButton
|
2024-06-11 11:31:49 +02:00
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
Text = EditorDialogsStrings.ForgetAllChanges,
|
|
|
|
Action = exit
|
2024-06-11 11:31:49 +02:00
|
|
|
},
|
|
|
|
new PopupDialogCancelButton
|
|
|
|
{
|
2025-03-05 14:11:44 +01:00
|
|
|
Text = EditorDialogsStrings.ContinueEditing,
|
|
|
|
},
|
2024-06-11 11:31:49 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|