Standard UI implementation of IBarkUI. More...
Classes | |
class | AnimationTransitions |
Public Member Functions | |
virtual bool | ShouldShowText (Subtitle subtitle) |
Indicates whether the bark UI should show the text, based on the textDisplaySetting and subtitle. | |
override void | Bark (Subtitle subtitle) |
Barks a subtitle. | |
virtual void | OnBarkEnd (Transform actor) |
virtual void | OnContinue () |
override void | Hide () |
Hides the currently-playing bark. | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractBarkUI | |
void | Bark (Subtitle subtitle) |
Barks the specified subtitle. | |
void | Hide () |
Hides the currently-playing bark. | |
Public Attributes | |
CanvasGroup | canvasGroup = null |
The (optional) UI canvas group. | |
UITextField | barkText = null |
The UI text control for the bark text. | |
UITextField | nameText = null |
The (optional) UI text control for the actor's name, if includeName is true . | |
bool | includeName = false |
Set true to include the barker's name in the text. | |
UnityEngine.UI.Image | portraitImage = null |
bool | showPortraitImage = false |
float | doneTime = 0 |
AnimationTransitions | animationTransitions = new AnimationTransitions() |
float | duration = 4f |
The duration in seconds to show the bark text before fading it out. | |
bool | keepInView = false |
bool | waitUntilSequenceEnds = false |
Set true to keep the bark text onscreen until the sequence ends. | |
bool | cancelWaitUntilSequenceEndsIfReplacingBark = false |
bool | waitForContinueButton = false |
Wait for an "OnContinue" message. | |
BarkSubtitleSetting | textDisplaySetting = BarkSubtitleSetting.SameAsDialogueManager |
The text display setting. | |
Protected Member Functions | |
virtual void | Awake () |
virtual void | Start () |
virtual void | Update () |
virtual void | SetUIElementsActive (bool value) |
virtual bool | IsActorMe (Transform actor) |
virtual bool | CanTriggerAnimations () |
Protected Attributes | |
int | numSequencesActive = 0 |
bool | hasEverBarked = false |
Properties | |
Canvas | canvas [get, set] |
Animator | animator [get, set] |
AbstractTypewriterEffect | typewriter [get, set] |
Vector3 | originalCanvasLocalPosition [get, set] |
override bool | isPlaying [get] |
Indicates whether a bark is currently playing. | |
Properties inherited from PixelCrushers.DialogueSystem.AbstractBarkUI | |
bool | isPlaying [get] |
Indicates or sets whether a bark is playing. | |
Properties inherited from PixelCrushers.DialogueSystem.IBarkUI |
Standard UI implementation of IBarkUI.
|
inlineprotectedvirtual |
|
inline |
Barks a subtitle.
Does not observe formatting codes in the subtitle's FormattedText, instead using the formatting settings defined on this component.
subtitle | Subtitle to bark. |
Implements PixelCrushers.DialogueSystem.IBarkUI.
|
inlineprotectedvirtual |
|
inline |
Hides the currently-playing bark.
Implements PixelCrushers.DialogueSystem.IBarkUI.
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Indicates whether the bark UI should show the text, based on the textDisplaySetting and subtitle.
true
to show text; otherwise, false
.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
AnimationTransitions PixelCrushers.DialogueSystem.StandardBarkUI.animationTransitions = new AnimationTransitions() |
UITextField PixelCrushers.DialogueSystem.StandardBarkUI.barkText = null |
The UI text control for the bark text.
bool PixelCrushers.DialogueSystem.StandardBarkUI.cancelWaitUntilSequenceEndsIfReplacingBark = false |
CanvasGroup PixelCrushers.DialogueSystem.StandardBarkUI.canvasGroup = null |
The (optional) UI canvas group.
If assigned, the fade will occur on this control. The other controls should be children of this canvas group.
float PixelCrushers.DialogueSystem.StandardBarkUI.doneTime = 0 |
float PixelCrushers.DialogueSystem.StandardBarkUI.duration = 4f |
The duration in seconds to show the bark text before fading it out.
|
protected |
bool PixelCrushers.DialogueSystem.StandardBarkUI.includeName = false |
Set true
to include the barker's name in the text.
bool PixelCrushers.DialogueSystem.StandardBarkUI.keepInView = false |
UITextField PixelCrushers.DialogueSystem.StandardBarkUI.nameText = null |
The (optional) UI text control for the actor's name, if includeName is true
.
If null
, the name is added to the front of the subtitle text instead.
|
protected |
UnityEngine.UI.Image PixelCrushers.DialogueSystem.StandardBarkUI.portraitImage = null |
bool PixelCrushers.DialogueSystem.StandardBarkUI.showPortraitImage = false |
BarkSubtitleSetting PixelCrushers.DialogueSystem.StandardBarkUI.textDisplaySetting = BarkSubtitleSetting.SameAsDialogueManager |
The text display setting.
Defaults to use the same subtitle setting as the Dialogue Manager, but you can also set it to always show or always hide the text.
bool PixelCrushers.DialogueSystem.StandardBarkUI.waitForContinueButton = false |
Wait for an "OnContinue" message.
bool PixelCrushers.DialogueSystem.StandardBarkUI.waitUntilSequenceEnds = false |
Set true
to keep the bark text onscreen until the sequence ends.
|
getsetprotected |
|
getsetprotected |
|
get |
Indicates whether a bark is currently playing.
true
if playing; otherwise, false
.
Implements PixelCrushers.DialogueSystem.IBarkUI.
|
getsetprotected |
|
getsetprotected |