Subtitle DaikonForge controls for DaikonForgeDialogueUI. More...
Public Member Functions | |
override void | SetActive (bool value) |
Sets the subtitle controls active or inactive. More... | |
override void | HideContinueButton () |
Hides the continue button. More... | |
override void | SetSubtitle (Subtitle subtitle) |
Sets the subtitle. More... | |
override void | ClearSubtitle () |
Clears the subtitle. More... | |
override void | SetActorPortraitTexture (string actorName, Texture2D portraitTexture) |
Sets the portrait texture to use in the subtitle if the named actor is the speaker. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
virtual void | ShowContinueButton () |
Shows the continue button. More... | |
virtual void | ShowSubtitle (Subtitle subtitle) |
Shows the subtitle controls. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls | |
void | Show () |
Shows the controls by setting them active. More... | |
void | Hide () |
Hides the controls by setting them inactive. More... | |
Public Attributes | |
dfPanel | panel |
The panel containing the controls. More... | |
dfLabel | line |
The label that will show the text of the subtitle. More... | |
dfRichTextLabel | richTextLine |
The rich text label that will show the text of the subtitle. More... | |
dfTextureSprite | portraitImage |
The sprite that will show the portrait image. More... | |
dfLabel | portraitName |
The label that will show the name of the speaker. More... | |
dfButton | continueButton |
The continue button. More... | |
Properties | |
override bool | HasText [get] |
Indicates whether this subtitle is currently assigned text. More... | |
Properties inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
abstract bool | HasText [get] |
Gets a value indicating whether text has been assigned to the subtitle controls. More... | |
Additional Inherited Members | |
Protected Attributes inherited from PixelCrushers.DialogueSystem.AbstractUISubtitleControls | |
Subtitle | currentSubtitle = null |
Subtitle DaikonForge controls for DaikonForgeDialogueUI.
This class is used for NPC subtitles, NPC reminder subtitles (shown during the response menu), and PC subtitles.
|
virtual |
Clears the subtitle.
Implements PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
virtual |
Hides the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
virtual |
Sets the subtitle controls active or inactive.
value | true for active; false for inactive. |
Implements PixelCrushers.DialogueSystem.AbstractUIControls.
|
virtual |
Sets the portrait texture 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 texture.
actorName | Actor name in database. |
portraitTexture | Portrait texture. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
virtual |
Sets the subtitle.
subtitle | Subtitle. |
Implements PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
dfButton PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.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.
dfLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.line |
The label that will show the text of the subtitle.
dfPanel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.panel |
The panel containing the controls.
A panel is optional, but you may want one so you can include additional controls.
dfTextureSprite PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.portraitImage |
The sprite that will show the portrait image.
dfLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.portraitName |
The label that will show the name of the speaker.
dfRichTextLabel PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeSubtitleControls.richTextLine |
The rich text label that will show the text of the subtitle.
If assigned, it takes precedence over line.
|
get |
Indicates whether this subtitle is currently assigned text.
true
if it has text; otherwise, false
.