Subtitle GUI controls for UnityDialogueUI. More...
Public Member Functions | |
override void | SetActive (bool value) |
Sets the controls active/inactive. | |
override void | SetSubtitle (Subtitle subtitle) |
Sets the subtitle controls' contents. | |
override void | ClearSubtitle () |
Clears the subtitle controls' contents. | |
override void | ShowContinueButton () |
Shows the continue button. | |
override void | HideContinueButton () |
Hides the continue button. | |
override void | SetActorPortraitSprite (string actorName, Sprite portraitSprite) |
Sets the portrait sprite to use in the subtitle if the named actor is the speaker. | |
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 | ShowSubtitle (Subtitle subtitle) |
Shows the subtitle controls. | |
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 | |
GUIControl | panel |
The alert panel. | |
GUILabel | line |
The label that will show the text of the subtitle. | |
GUILabel | portraitImage |
The label that will show the portrait image. | |
GUILabel | portraitName |
The label that will show the name of the speaker. | |
GUIButton | continueButton |
The continue button. | |
Properties | |
override bool | hasText [get] |
Gets a value indicating whether text has been assigned to the subtitle controls. | |
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 GUI controls for UnityDialogueUI.
|
inline |
Clears the subtitle controls' contents.
|
inlinevirtual |
Hides the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inline |
Sets the controls active/inactive.
value | If set to true value. |
|
inlinevirtual |
Sets the portrait sprite to use in the subtitle if the named actor is the speaker.
This is used to immediately update the GUI control if the SetPortrait() sequencer command changes the portrait sprite.
actorName | Actor name in database. |
portraitSprite | Portrait sprite. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inline |
Sets the subtitle controls' contents.
subtitle | Subtitle. |
|
inlinevirtual |
Shows the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
GUIButton PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls.continueButton |
The continue button.
This control is only required if DisplaySettings.waitForContinueButton is true
– in which case this button should send "OnContinue" to the UI when clicked.
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls.line |
The label that will show the text of the subtitle.
GUIControl PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls.panel |
The alert panel.
A panel is optional, but you may want one so you can include a background image, panel-wide effects, etc.
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls.portraitImage |
The label that will show the portrait image.
GUILabel PixelCrushers.DialogueSystem.UnityGUI.UnitySubtitleControls.portraitName |
The label that will show the name of the speaker.
|
get |
Gets a value indicating whether text has been assigned to the subtitle controls.
true
if this instance has text; otherwise, false
.