PixelCrushers.DialogueSystem.EmphasisSetting Class Reference

An emphasis setting specifies a text style. More...

Public Member Functions

 EmphasisSetting (Color color, bool bold, bool italic, bool underline)
 Initializes a new EmphasisSetting. More...
 
 EmphasisSetting (string colorCode, string styleCode)
 Initializes a new EmphasisSetting. More...
 

Public Attributes

Color color = Color.black
 The color of the text. More...
 
bool bold = false
 If true, draw the text in bold. More...
 
bool italic = false
 If true, draw the text in italics. More...
 
bool underline = false
 If true, underline the text. More...
 

Properties

bool IsEmpty [get]
 

Detailed Description

An emphasis setting specifies a text style.

Chat Mapper projects define emphasis settings for formatting lines of dialogue. Every dialogue database stores an array of emphasis settings.

Constructor & Destructor Documentation

◆ EmphasisSetting() [1/2]

PixelCrushers.DialogueSystem.EmphasisSetting.EmphasisSetting ( Color  color,
bool  bold,
bool  italic,
bool  underline 
)

Initializes a new EmphasisSetting.

Parameters
colorText color.
boldBold flag.
italicItalic flag.
underlineUnderline flag.

◆ EmphasisSetting() [2/2]

PixelCrushers.DialogueSystem.EmphasisSetting.EmphasisSetting ( string  colorCode,
string  styleCode 
)

Initializes a new EmphasisSetting.

Parameters
colorCodeA web RGB-format color code of the format "\#rrggbb", where rr, gg, and bb are hexadecimal values (e.g., #ff0000 for red).
styleCodeA style code of the format "biu", where b=bold, i=italic, u=underline, and a dash turns the setting off. For example, "b--" means bold only.

Member Data Documentation

◆ bold

bool PixelCrushers.DialogueSystem.EmphasisSetting.bold = false

If true, draw the text in bold.

◆ color

Color PixelCrushers.DialogueSystem.EmphasisSetting.color = Color.black

The color of the text.

◆ italic

bool PixelCrushers.DialogueSystem.EmphasisSetting.italic = false

If true, draw the text in italics.

◆ underline

bool PixelCrushers.DialogueSystem.EmphasisSetting.underline = false

If true, underline the text.

Property Documentation

◆ IsEmpty

bool PixelCrushers.DialogueSystem.EmphasisSetting.IsEmpty
get

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