PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls Class Reference

This static utility class provides methods for working with DF-GUI controls. More...

Static Public Member Functions

static void SetControlActive (MonoBehaviour control, bool value)
 Sets a control active by using DF-GUI's Show() and Hide() methods. More...
 
static void SetFormattedText (dfLabel line, FormattedText formattedText, Color defaultColor)
 Sets a dfLabel using Dialogue System-formatted text. More...
 
static void SetFormattedText (dfRichTextLabel richTextLabel, FormattedText formattedText, Color defaultColor)
 Sets a dfRichTextLabel using formatted text. More...
 
static void SetPlainText (dfLabel line, string text, Color color)
 Sets a dfLabel using plain text. More...
 
static void SetPlainText (dfRichTextLabel richTextLabel, string text, Color color)
 Sets a dfRichTextLabel using plain text. More...
 
static Color Color32ToColor (Color32 color32)
 Converts a Color32 to a Color. More...
 
static Color32 ColorToColor32 (Color color)
 Converts a Color to a Color32. More...
 

Detailed Description

This static utility class provides methods for working with DF-GUI controls.

Member Function Documentation

◆ Color32ToColor()

static Color PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.Color32ToColor ( Color32  color32)
static

Converts a Color32 to a Color.

Returns
The Color.
Parameters
color32Color32 to convert.

◆ ColorToColor32()

static Color32 PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.ColorToColor32 ( Color  color)
static

Converts a Color to a Color32.

Returns
The Color32.
Parameters
colorColor to convert.

◆ SetControlActive()

static void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.SetControlActive ( MonoBehaviour  control,
bool  value 
)
static

Sets a control active by using DF-GUI's Show() and Hide() methods.

Also sends OnEnable and OnDisable messages to simulate activating and deactivating the game object.

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

◆ SetFormattedText() [1/2]

static void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.SetFormattedText ( dfLabel  line,
FormattedText  formattedText,
Color  defaultColor 
)
static

Sets a dfLabel using Dialogue System-formatted text.

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

◆ SetFormattedText() [2/2]

static void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.SetFormattedText ( dfRichTextLabel  richTextLabel,
FormattedText  formattedText,
Color  defaultColor 
)
static

Sets a dfRichTextLabel using formatted text.

Parameters
richTextLabelRich text label.
formattedTextFormatted text.
defaultColorDefault color.

◆ SetPlainText() [1/2]

static void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.SetPlainText ( dfLabel  line,
string  text,
Color  color 
)
static

Sets a dfLabel using plain text.

Parameters
lineThe dfLabel.
textThe plain text.
colorColor.

◆ SetPlainText() [2/2]

static void PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeDialogueUIControls.SetPlainText ( dfRichTextLabel  richTextLabel,
string  text,
Color  color 
)
static

Sets a dfRichTextLabel using plain text.

Parameters
richTextLabelRich text label.
textText.
colorColor.

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