Neg_Utils/NEG/UI/Popup/DefaultPopupData.cs
2024-02-12 21:26:24 +01:00

29 lines
771 B
C#

using System;
using System.Collections.Generic;
namespace NEG.UI.Popup
{
public class DefaultPopupData : PopupData
{
private readonly string content;
private readonly IDefaultPopup defaultPopup;
private readonly List<(string, Action)> options;
private readonly string title;
public DefaultPopupData(IDefaultPopup popup, string title, string content, List<(string, Action)> options) :
base(popup)
{
defaultPopup = popup;
this.title = title;
this.content = content;
this.options = options;
}
public override void Show()
{
defaultPopup.SetContent(title, content, options);
base.Show();
}
}
}