mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-28 11:50:50 +01:00
30 lines
850 B
C#
30 lines
850 B
C#
using Gtk;
|
|
using System.Reflection;
|
|
|
|
namespace Ryujinx.Ui.Applet
|
|
{
|
|
internal class ErrorAppletDialog : MessageDialog
|
|
{
|
|
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.Resources.Logo_Ryujinx.png");
|
|
|
|
int responseId = 0;
|
|
|
|
if (buttons != null)
|
|
{
|
|
foreach (string buttonText in buttons)
|
|
{
|
|
AddButton(buttonText, responseId);
|
|
responseId++;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
AddButton("OK", 0);
|
|
}
|
|
|
|
ShowAll();
|
|
}
|
|
}
|
|
} |