[HelpBox("If Button's OnClick() event is empty, this Standard UI Response Button component will automatically assign its OnClick method at runtime. If Button's OnClick() event has other elements, you *must* manually assign the StandardUIResponseButton.OnClick method to it.", HelpBoxMessageType.Info)]
publicUnityEngine.UI.Buttonbutton;
[Tooltip("Text element to display response text.")]
publicUITextFieldlabel;
[Tooltip("Apply emphasis tag colors to button text.")]
publicboolsetLabelColor=true;
[Tooltip("Set button's text to this color by default.")]
publicColordefaultColor=Color.white;
/// <summary>
/// Gets or sets the response text element.
/// </summary>
publicvirtualstringtext
{
get
{
returnlabel.text;
}
set
{
label.text=UITools.StripRPGMakerCodes(value);
UITools.SendTextChangeMessage(label);
}
}
/// <summary>
/// Indicates whether the button is an allowable response.
/// </summary>
publicvirtualboolisClickable
{
get{return(button!=null)&&button.interactable;}
set{if(button!=null)button.interactable=value;}
}
/// <summary>
/// Indicates whether the button is shown or not.
/// </summary>
publicvirtualboolisVisible{get;set;}
/// <summary>
/// Gets or sets the response associated with this button. If the player clicks this
/// button, this response is sent back to the dialogue system.
/// </summary>
publicvirtualResponseresponse{get;set;}
/// <summary>
/// Gets or sets the target that will receive click notifications.