PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton Class Reference

A Daikon Forge GUI response button for use with DaikonForgeDialogueUIControls. More...

Inheritance diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton:
Collaboration diagram for PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton:

Public Member Functions

void SetFormattedText (FormattedText formattedText)
 Sets the button's text using the specified formatted text. More...
 
void SetUnformattedText (string unformattedText)
 Sets the button's text using plain text. More...
 
void OnClick ()
 Handles a button click by calling the response handler. More...
 

Public Attributes

Color defaultColor = Color.white
 The default color for response text. More...
 

Properties

string? Text [get, set]
 Gets or sets the response text. More...
 
Color? TextColor [get, set]
 
bool? IsClickable [get, set]
 Indicates whether the button is an allowable response. More...
 
bool IsVisible [get, set]
 Indicates whether the button is shown or not. More...
 
Response Response [get, set]
 Gets or sets the response associated with this button. More...
 
Transform Target [get, set]
 Gets or sets the target that will receive click notifications. More...
 
dfButton dfButton [get, set]
 The DaikonForge button. More...
 

Detailed Description

A Daikon Forge GUI response button for use with DaikonForgeDialogueUIControls.

Add this component to each response button in the dialogue UI.

Member Function Documentation

◆ OnClick()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.OnClick ( )

Handles a button click by calling the response handler.

◆ SetFormattedText()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.SetFormattedText ( FormattedText  formattedText)

Sets the button's text using the specified formatted text.

Parameters
formattedTextThe formatted text for the button label.

◆ SetUnformattedText()

void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.SetUnformattedText ( string  unformattedText)

Sets the button's text using plain text.

Parameters
unformattedTextUnformatted text for the button label.

Member Data Documentation

◆ defaultColor

Color PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.defaultColor = Color.white

The default color for response text.

Property Documentation

◆ dfButton

dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.dfButton
getset

The DaikonForge button.

◆ IsClickable

bool? PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.IsClickable
getset

Indicates whether the button is an allowable response.

true if clickable; otherwise, false.

◆ IsVisible

bool PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.IsVisible
getset

Indicates whether the button is shown or not.

true if visible; otherwise, false.

◆ Response

Response PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.Response
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.

◆ Target

Transform PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.Target
getset

Gets or sets the target that will receive click notifications.

The target.

◆ Text

string? PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.Text
getset

Gets or sets the response text.

The text.

◆ TextColor

Color? PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeResponseButton.TextColor
getset

The documentation for this class was generated from the following file: