namespace Gravitons.UI.Modal
{
using System;
///
/// Base wrapper class for button properties
///
public class ModalButton
{
///
/// The text to show on the button
///
public string Text { get; set; }
///
/// The callback function that will be called when the button is clicked
///
public Action Callback { get; set; }
///
/// When set to true, modal will close automatically if the button is clicked
///
public bool CloseModalOnClick
{
get { return m_CloseModalOnClick; }
set { m_CloseModalOnClick = value; }
}
private bool m_CloseModalOnClick = true;
}
}