Implements IBarkUI for 2D Toolkit. More...
Public Member Functions | |
void | Bark (Subtitle subtitle) |
Bark the specified subtitle. | |
void | Update () |
Updates the seconds left and hides the label if time is up. | |
void | Hide () |
Hides the currently-playing bark. | |
Public Attributes | |
tk2dTextMesh | textMesh |
The text mesh that will display barks. | |
bool | includeName |
Set true to include the barker's name in the text. | |
Color | defaultColor = Color.white |
The default color to use if not overridden by an emphasis tag. | |
float | duration = 4f |
The duration in seconds to show the bark. | |
float | fadeDuration = 0.5f |
The duration in seconds to fade in and out. | |
bool | waitUntilSequenceEnds |
Set true to keep the bark text onscreen until the sequence ends. | |
Properties | |
bool | isPlaying [get, set] |
Gets or sets a value indicating whether this instance is playing. | |
Properties inherited from PixelCrushers.DialogueSystem.IBarkUI |
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.
|
inline |
Bark the specified subtitle.
subtitle | Subtitle to bark. |
Implements PixelCrushers.DialogueSystem.IBarkUI.
|
inline |
Hides the currently-playing bark.
Implements PixelCrushers.DialogueSystem.IBarkUI.
|
inline |
Updates the seconds left and hides the label if time is up.
Color PixelCrushers.DialogueSystem.TK2DSupport.TK2DBarkUI.defaultColor = Color.white |
The default color to use if not overridden by an emphasis tag.
float PixelCrushers.DialogueSystem.TK2DSupport.TK2DBarkUI.duration = 4f |
The duration in seconds to show the bark.
float PixelCrushers.DialogueSystem.TK2DSupport.TK2DBarkUI.fadeDuration = 0.5f |
The duration in seconds to fade in and out.
bool PixelCrushers.DialogueSystem.TK2DSupport.TK2DBarkUI.includeName |
Set true
to include the barker's name in the text.
tk2dTextMesh PixelCrushers.DialogueSystem.TK2DSupport.TK2DBarkUI.textMesh |
The text mesh that will display barks.
bool PixelCrushers.DialogueSystem.TK2DSupport.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
.
Implements PixelCrushers.DialogueSystem.IBarkUI.