Subtitle UI controls for TK2DDialogueUI. More...
Public Member Functions | |
override void | SetActive (bool value) |
override void | HideContinueButton () |
Hides the continue button. | |
override void | SetSubtitle (Subtitle subtitle) |
override void | ClearSubtitle () |
void | SetPortraitCollection (tk2dSpriteCollectionData portraitCollection) |
Sets the portrait collection. | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
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 | 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. | |
Public Attributes | |
tk2dUILayout | panel |
The alert panel. | |
tk2dBaseSprite | portraitImage |
The label that will show the portrait image of the speaker. | |
tk2dTextMesh | portraitName |
The label that will show the name of the speaker. | |
tk2dTextMesh | line |
The label that will show the text of the subtitle. | |
tk2dUIItem | continueButton |
The continue button. | |
Properties | |
override bool | hasText [get] |
Properties inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
bool | hasText [get] |
Gets a value indicating whether text has been assigned to the subtitle controls. | |
Additional Inherited Members | |
Protected Attributes inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
Subtitle | currentSubtitle = null |
Subtitle UI controls for TK2DDialogueUI.
This class is used for NPC subtitles, NPC reminder subtitles (shown during the response menu), and PC subtitles.
|
inline |
|
inlinevirtual |
Hides the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inline |
|
inline |
Sets the portrait collection.
portraitCollection | Portrait collection. |
|
inline |
tk2dUIItem PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls.continueButton |
The continue button.
This button is only required if DisplaySettings.waitForContinueButton is true
– in which case this button should send "OnContinue" to the UI when clicked.
tk2dTextMesh PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls.line |
The label that will show the text of the subtitle.
tk2dUILayout PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls.panel |
The alert panel.
A panel is optional, but you may want one so you can include a background image, panel-wide effects, etc.
tk2dBaseSprite PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls.portraitImage |
The label that will show the portrait image of the speaker.
tk2dTextMesh PixelCrushers.DialogueSystem.TK2DSupport.TK2DSubtitleControls.portraitName |
The label that will show the name of the speaker.
|
get |