File PopUp.cs
File List > LemonUI > LemonUI > Scaleform > PopUp.cs
Go to the documentation of this file
using System;
namespace LemonUI.Scaleform
{
public class PopUp : BaseScaleform
{
private string title;
private string subtitle;
private string prompt;
private string error;
#region Properties
public string Title
{
get => title;
set => title = value ?? throw new ArgumentNullException(nameof(value));
}
public string Subtitle
{
get => subtitle;
set => subtitle = value ?? throw new ArgumentNullException(nameof(value));
}
public string Prompt
{
get => prompt;
set => prompt = value ?? throw new ArgumentNullException(nameof(value));
}
public bool ShowBackground { get; set; } = true;
public string Error
{
get => error;
set => error = value ?? throw new ArgumentNullException(nameof(value));
}
#endregion
#region Constructors
public PopUp() : base("POPUP_WARNING")
{
}
#endregion
#region Functions
public override void Update()
{
// first parameter "msecs" is unused
CallFunction("SHOW_POPUP_WARNING", 0, Title, Subtitle, Prompt, ShowBackground, 0, Error);
}
#endregion
}
}