mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 12:22:55 +08:00
35 lines
974 B
C#
35 lines
974 B
C#
|
// 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.Overlays.Dialog;
|
||
|
using osu.Game.Localisation;
|
||
|
|
||
|
namespace osu.Game.Screens.Edit
|
||
|
{
|
||
|
public partial class ReloadEditorDialog : PopupDialog
|
||
|
{
|
||
|
public ReloadEditorDialog(Action reload, Action cancel)
|
||
|
{
|
||
|
HeaderText = EditorDialogsStrings.EditorReloadDialogHeader;
|
||
|
|
||
|
Icon = FontAwesome.Solid.Sync;
|
||
|
|
||
|
Buttons = new PopupDialogButton[]
|
||
|
{
|
||
|
new PopupDialogOkButton
|
||
|
{
|
||
|
Text = DialogStrings.Confirm,
|
||
|
Action = reload
|
||
|
},
|
||
|
new PopupDialogCancelButton
|
||
|
{
|
||
|
Text = DialogStrings.Cancel,
|
||
|
Action = cancel
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|