mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-01 14:27:27 +00:00
32 lines
No EOL
889 B
C#
32 lines
No EOL
889 B
C#
using Gtk;
|
|
using System.Reflection;
|
|
|
|
namespace Ryujinx.Ui
|
|
{
|
|
internal class ErrorAppletDialog : MessageDialog
|
|
{
|
|
internal static bool _isExitDialogOpen = false;
|
|
|
|
public ErrorAppletDialog(Window parentWindow, DialogFlags dialogFlags, MessageType messageType, string[] buttons) : base(parentWindow, dialogFlags, messageType, ButtonsType.None, null)
|
|
{
|
|
Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.Icon.png");
|
|
|
|
int responseId = 0;
|
|
|
|
if (buttons != null)
|
|
{
|
|
foreach (string buttonText in buttons)
|
|
{
|
|
AddButton(buttonText, responseId);
|
|
responseId++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
AddButton("OK", 0);
|
|
}
|
|
|
|
ShowAll();
|
|
}
|
|
}
|
|
} |