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] |
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.
PixelCrushers.DialogueSystem.EmphasisSetting.EmphasisSetting | ( | Color | color, |
bool | bold, | ||
bool | italic, | ||
bool | underline | ||
) |
Initializes a new EmphasisSetting.
color | Text color. |
bold | Bold flag. |
italic | Italic flag. |
underline | Underline flag. |
PixelCrushers.DialogueSystem.EmphasisSetting.EmphasisSetting | ( | string | colorCode, |
string | styleCode | ||
) |
Initializes a new EmphasisSetting.
colorCode | A web RGB-format color code of the format "\#rrggbb", where rr, gg, and bb are hexadecimal values (e.g., #ff0000 for red). |
styleCode | A 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. |
bool PixelCrushers.DialogueSystem.EmphasisSetting.bold = false |
If true
, draw the text in bold.
Color PixelCrushers.DialogueSystem.EmphasisSetting.color = Color.black |
The color of the text.
bool PixelCrushers.DialogueSystem.EmphasisSetting.italic = false |
If true
, draw the text in italics.
bool PixelCrushers.DialogueSystem.EmphasisSetting.underline = false |
If true
, underline the text.
|
get |