Implements IBarkUI for 2D Toolkit. More...
Public Member Functions | |
void | Bark (Subtitle subtitle) |
Bark the specified subtitle. More... | |
void | Update () |
Updates the seconds left and hides the label if time is up. More... | |
void | Hide () |
Hides the currently-playing bark. More... | |
Public Attributes | |
tk2dTextMesh | textMesh |
The text mesh that will display barks. More... | |
bool | includeName |
Set true to include the barker's name in the text. More... | |
Color | defaultColor = Color.white |
The default color to use if not overridden by an emphasis tag. More... | |
float | duration = 4f |
The duration in seconds to show the bark. More... | |
float | fadeDuration = 0.5f |
The duration in seconds to fade in and out. More... | |
bool | waitUntilSequenceEnds |
Set true to keep the bark text onscreen until the sequence ends. More... | |
Properties | |
bool | IsPlaying [get, set] |
Gets or sets a value indicating whether this instance is playing. More... | |
Properties inherited from PixelCrushers.DialogueSystem.IBarkUI | |
bool | IsPlaying [get] |
Indicates or sets whether a bark is playing. More... | |
Implements IBarkUI for 2D Toolkit.
To use barks with 2D Toolkit, add a TK2DBarkUI to the actor. Then add a tk2dTextMesh to a child object. Add the Always Fade Camera script if you want the bark to always face the main camera. Optionally add a TK2DFader if you want barks to fade in and out.
void PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.Bark | ( | Subtitle | subtitle | ) |
Bark the specified subtitle.
subtitle | Subtitle to bark. |
Implements PixelCrushers.DialogueSystem.IBarkUI.
void PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.Hide | ( | ) |
Hides the currently-playing bark.
Implements PixelCrushers.DialogueSystem.IBarkUI.
void PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.Update | ( | ) |
Updates the seconds left and hides the label if time is up.
Color PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.defaultColor = Color.white |
The default color to use if not overridden by an emphasis tag.
float PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.duration = 4f |
The duration in seconds to show the bark.
float PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.fadeDuration = 0.5f |
The duration in seconds to fade in and out.
bool PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.includeName |
Set true
to include the barker's name in the text.
tk2dTextMesh PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.textMesh |
The text mesh that will display barks.
bool PixelCrushers.DialogueSystem.TK2D.TK2DBarkUI.waitUntilSequenceEnds |
Set true
to keep the bark text onscreen until the sequence ends.
|
getset |
Gets or sets a value indicating whether this instance is playing.
true
if this instance is playing; otherwise, false
.