Abstract subtitle controls. More...
Public Member Functions | |
void | SetSubtitle (Subtitle subtitle) |
Sets the subtitle controls' contents. | |
void | ClearSubtitle () |
Clears the subtitle controls' contents. | |
virtual void | ShowContinueButton () |
Shows the continue button. | |
virtual void | HideContinueButton () |
Hides the continue button. | |
virtual void | ShowSubtitle (Subtitle subtitle) |
Shows the subtitle controls. | |
virtual void | SetActorPortraitSprite (string actorName, Sprite sprite) |
Sets the portrait sprite to use in the subtitle if the named actor is the speaker. | |
virtual void | SetActorPortraitTexture (string actorName, Texture2D texture) |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls | |
void | SetActive (bool value) |
Sets the controls active/inactive. | |
void | Show () |
Shows the controls by setting them active. | |
void | Hide () |
Hides the controls by setting them inactive. | |
Protected Attributes | |
Subtitle | currentSubtitle = null |
Properties | |
bool | hasText [get] |
Gets a value indicating whether text has been assigned to the subtitle controls. | |
Abstract subtitle controls.
Each GUI system implementation derives its own subclass from this.
|
abstract |
Clears the subtitle controls' contents.
|
inlinevirtual |
Hides the continue button.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUISubtitleControls, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProSubtitleControls, PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls, PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls, PixelCrushers.DialogueSystem.StandardUISubtitleControls, and PixelCrushers.DialogueSystem.UnityUISubtitleControls.
|
inlinevirtual |
Sets the portrait sprite to use in the subtitle if the named actor is the speaker.
actorName | Actor name in database. |
sprite | Portrait sprite. |
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUISubtitleControls, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProSubtitleControls, PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls, PixelCrushers.DialogueSystem.StandardUISubtitleControls, and PixelCrushers.DialogueSystem.UnityUISubtitleControls.
|
inlinevirtual |
|
abstract |
Sets the subtitle controls' contents.
subtitle | Subtitle. |
|
inlinevirtual |
|
inlinevirtual |
Shows the subtitle controls.
subtitle | Subtitle. |
Reimplemented in PixelCrushers.DialogueSystem.StandardUISubtitleControls.
|
protected |
|
getabstract |
Gets a value indicating whether text has been assigned to the subtitle controls.
true
if it has text; otherwise, false
.