using System;
using osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Dialog
{
///
/// 文件导入失败时显示的对话框。
///
public partial class FileImportFaultDialog : PopupDialog
{
///
/// 初始化 类的新实例。
///
/// 错误信息。
public FileImportFaultDialog(string errorMessage)
{
Icon = FontAwesome.Regular.TimesCircle;
HeaderText = "导入失败";
BodyText = errorMessage;
Buttons = new PopupDialogButton[]
{
new PopupDialogOkButton
{
Text = "确定",
}
};
}
}
}