2023-10-25 13:33:06 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2021-11-11 06:11:25 +08:00
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Overlays.Dialog;
|
|
|
|
|
2023-10-25 13:33:06 +08:00
|
|
|
namespace osu.Game.Screens.Edit
|
2021-11-11 06:11:25 +08:00
|
|
|
{
|
2023-10-25 13:33:06 +08:00
|
|
|
public partial class SaveRequiredPopupDialog : PopupDialog
|
2021-11-11 06:11:25 +08:00
|
|
|
{
|
2023-10-25 13:33:06 +08:00
|
|
|
public SaveRequiredPopupDialog(string headerText, Action saveAndAction)
|
2021-11-11 06:11:25 +08:00
|
|
|
{
|
2023-10-25 13:33:06 +08:00
|
|
|
HeaderText = headerText;
|
2021-11-11 06:11:25 +08:00
|
|
|
|
|
|
|
Icon = FontAwesome.Regular.Save;
|
|
|
|
|
|
|
|
Buttons = new PopupDialogButton[]
|
|
|
|
{
|
|
|
|
new PopupDialogOkButton
|
|
|
|
{
|
|
|
|
Text = "Sounds good, let's go!",
|
2023-10-25 13:33:06 +08:00
|
|
|
Action = saveAndAction
|
2021-11-11 06:11:25 +08:00
|
|
|
},
|
|
|
|
new PopupDialogCancelButton
|
|
|
|
{
|
|
|
|
Text = "Oops, continue editing",
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|