An NGUI response button for use with NGUIDialogueUIControls. More...
Public Member Functions | |
void | Reset () |
Clears the button. | |
void | SetFormattedText (FormattedText formattedText) |
Sets the button's text using the specified formatted text. | |
void | SetUnformattedText (string unformattedText) |
Sets the button's text using plain text. | |
void | OnClick () |
Handles a button click by calling the response handler. | |
Public Attributes | |
UIButton | nguiButton |
The NGUI button. | |
UILabel | nguiLabel |
The NGUI label that will display the response text. | |
Color | defaultColor = Color.white |
The default color for response text. | |
bool | setButtonColor = true |
Set true to set the button color when applying emphasis tags. | |
bool | setLabelColor = true |
Set true to set the label color when applying emphasis tags. | |
Protected Member Functions | |
virtual void | SetColor (Color currentColor) |
Properties | |
string | Text [get, set] |
Gets or sets the response text. | |
bool | clickable [get, set] |
Indicates whether the button is an allowable response. | |
bool | visible [get, set] |
Indicates whether the button is shown or not. | |
Response | response [get, set] |
Gets or sets the response associated with this button. | |
Transform | target [get, set] |
Gets or sets the target that will receive click notifications. | |
An NGUI response button for use with NGUIDialogueUIControls.
Add this component to every response button in the dialogue UI. The button should have, at minimum, a label and a collider. A background sprite is optional.
|
inline |
Handles a button click by calling the response handler.
|
inline |
Clears the button.
|
inlineprotectedvirtual |
|
inline |
Sets the button's text using the specified formatted text.
formattedText | The formatted text for the button label. |
|
inline |
Sets the button's text using plain text.
unformattedText | Unformatted text for the button label. |
Color PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseButton.defaultColor = Color.white |
The default color for response text.
UIButton PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseButton.nguiButton |
The NGUI button.
UILabel PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseButton.nguiLabel |
The NGUI label that will display the response text.
bool PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseButton.setButtonColor = true |
Set true
to set the button color when applying emphasis tags.
bool PixelCrushers.DialogueSystem.NGUISupport.NGUIResponseButton.setLabelColor = true |
Set true
to set the label color when applying emphasis tags.
|
getset |
Indicates whether the button is an allowable response.
true
if clickable; otherwise, false
.
|
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.
The response.
|
getset |
Gets or sets the target that will receive click notifications.
The target.
|
getset |
Gets or sets the response text.
The text.
|
getset |
Indicates whether the button is shown or not.
true
if visible; otherwise, false
.