Response button for use with Standard Dialogue UI. More...
Public Member Functions | |
virtual void | Reset () |
Clears the button. | |
virtual void | Awake () |
virtual void | Start () |
virtual void | SetFormattedText (FormattedText formattedText) |
Sets the button's text using the specified formatted text. | |
virtual void | SetUnformattedText (string unformattedText) |
Sets the button's text using plain text. | |
virtual void | OnClick () |
Handles a button click by calling the response handler. | |
virtual void | OnSelect (BaseEventData eventData) |
Public Attributes | |
UnityEngine.UI.Button | button |
UITextField | label |
bool | setLabelColor = true |
Color | defaultColor = Color.white |
Protected Member Functions | |
virtual void | SetColor (Color currentColor) |
virtual void | SetCurrentResponse () |
Properties | |
virtual string | text [get, set] |
Gets or sets the response text element. | |
virtual bool | isClickable [get, set] |
Indicates whether the button is an allowable response. | |
virtual bool | isVisible [get, set] |
Indicates whether the button is shown or not. | |
virtual Response | response [get, set] |
Gets or sets the response associated with this button. | |
virtual Transform | target [get, set] |
Gets or sets the target that will receive click notifications. | |
Response button for use with Standard Dialogue UI.
Add this component to every response button in the dialogue UI.
|
inlinevirtual |
|
inlinevirtual |
Handles a button click by calling the response handler.
|
inlinevirtual |
|
inlinevirtual |
Clears the button.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Sets the button's text using the specified formatted text.
|
inlinevirtual |
Sets the button's text using plain text.
|
inlinevirtual |
UnityEngine.UI.Button PixelCrushers.DialogueSystem.StandardUIResponseButton.button |
Color PixelCrushers.DialogueSystem.StandardUIResponseButton.defaultColor = Color.white |
UITextField PixelCrushers.DialogueSystem.StandardUIResponseButton.label |
bool PixelCrushers.DialogueSystem.StandardUIResponseButton.setLabelColor = true |
|
getset |
Indicates whether the button is an allowable response.
|
getset |
Indicates whether the button is shown or not.
|
getset |
Gets or sets the response associated with this button.
If the player clicks this button, this response is sent back to the dialogue system.
|
getset |
Gets or sets the target that will receive click notifications.
|
getset |
Gets or sets the response text element.