PixelCrushers.DialogueSystem.TK2D.TK2DDialogueTools Class Reference

Static utility class for TK2D Dialogue UI. More...

Static Public Member Functions

static void SetControlActive (MonoBehaviour control, bool value)
 Sets a control active. More...
 
static void SetFormattedText (tk2dTextMesh line, FormattedText formattedText, Color defaultColor)
 Sets a text mesh using Dialogue System-formatted text. More...
 
static void SetPlainText (tk2dTextMesh line, string text, Color color)
 Sets a text mesh using plain text. More...
 

Detailed Description

Static utility class for TK2D Dialogue UI.

Member Function Documentation

◆ SetControlActive()

static void PixelCrushers.DialogueSystem.TK2D.TK2DDialogueTools.SetControlActive ( MonoBehaviour  control,
bool  value 
)
static

Sets a control active.

Parameters
controlControl to set.
valuetrue for active; false for inactive.

◆ SetFormattedText()

static void PixelCrushers.DialogueSystem.TK2D.TK2DDialogueTools.SetFormattedText ( tk2dTextMesh  line,
FormattedText  formattedText,
Color  defaultColor 
)
static

Sets a text mesh using Dialogue System-formatted text.

Parameters
lineThe text mesh.
formattedTextThe formatted text.
defaultColorDefault color to use unless the formatted text contains an emphasis tag that overrides the default color.

◆ SetPlainText()

static void PixelCrushers.DialogueSystem.TK2D.TK2DDialogueTools.SetPlainText ( tk2dTextMesh  line,
string  text,
Color  color 
)
static

Sets a text mesh using plain text.

Parameters
lineThe text mesh.
textThe plain text.
colorColor.

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