using System; namespace SAMP.API.EventData { public class DialogResponseEventArgs : EventArgs { #region Class Variables private int m_iId, m_iResponse, m_iListItem; private string m_strInputText; private bool m_bPassOn; #endregion #region Constructor /// /// Initializes a new instance of the class. /// /// The ID of the dialog the player responded to, assigned in Player.ShowDialog. /// 1 for first button and 0 for second button. /// The ID of the list item selected by the player. /// The text entered into the input box by the player or the selected list item text. public DialogResponseEventArgs(int dialogid, int response, int listitem, string inputtext) { this.m_iId = dialogid; this.m_iResponse = response; this.m_iListItem = listitem; this.m_strInputText = inputtext; } #endregion #region Accessors & Mutators /// /// Gets the ID of the dialog the player responded to, assigned in . /// public int DialogID { get { return this.m_iId; } } /// /// Gets the response from the dialog. /// public int Response { get { return this.m_iResponse; } } /// /// Gets the ID of the list item selected by the player. /// public int ListItem { get { return this.m_iListItem; } } /// /// Gets the text entered into the input box by the player or the selected list item text. /// public string InputText { get { return this.m_strInputText; } } /// /// Gets or sets whether or not this callback should be passed on to filterscripts. /// public bool ContinueToFilterscripts { get { return this.m_bPassOn; } set { this.m_bPassOn = value; } } #endregion }; };