Manages subtitle panels for StandardDialogueUI. More...
Public Member Functions | |
void | Initialize (StandardUISubtitlePanel[] subtitlePanels, StandardUISubtitlePanel defaultNPCSubtitlePanel, StandardUISubtitlePanel defaultPCSubtitlePanel) |
void | ClearCache () |
void | ClearOverrideCache () |
void | ForceOverrideSubtitlePanel (StandardUISubtitlePanel customPanel) |
void | OverrideActorPanel (Actor actor, SubtitlePanelNumber subtitlePanelNumber, StandardUISubtitlePanel customPanel=null, bool immediate=false) |
For speakers who do not have DialogueActor components, this method overrides the actor's default panel. | |
void | OverrideActorPanel (DialogueActor dialogueActor, SubtitlePanelNumber subtitlePanelNumber, StandardUISubtitlePanel customPanel=null) |
Overrides a DialogueActor's subtitle panel. | |
virtual StandardUISubtitlePanel | GetPanel (Subtitle subtitle, out DialogueActor dialogueActor) |
StandardUISubtitlePanel | GetActorTransformPanel (Transform speakerTransform, StandardUISubtitlePanel defaultPanel, out DialogueActor dialogueActor) |
StandardUISubtitlePanel | GetDialogueActorPanel (DialogueActor dialogueActor) |
StandardUISubtitlePanel | GetPanelFromNumber (SubtitlePanelNumber subtitlePanelNumber, StandardUISubtitlePanel customPanel) |
virtual void | SetActorSubtitlePanelNumber (DialogueActor dialogueActor, SubtitlePanelNumber subtitlePanelNumber) |
Changes a dialogue actor's panel for the current conversation. | |
void | ShowActorInPanel (Actor actor, SubtitlePanelNumber subtitlePanelNumber, StandardUISubtitlePanel customPanel=null) |
virtual void | RecordActorPanelCache (out List< string > actorGOs, out List< SubtitlePanelNumber > actorGOPanels, out List< int > actorIDs, out List< SubtitlePanelNumber > actorIDPanels, out List< string > actorNames) |
Record the current actor panel cache values for saved games (ConversationStateSaver) so the cache can be restored when loading a game. | |
virtual void | QueueSavedActorPanelCache (List< string > actorGOs, List< SubtitlePanelNumber > actorGOPanels, List< int > actorIDs, List< SubtitlePanelNumber > actorIDPanels) |
Queues actor panel caches to be applies when the next conversation starts. | |
virtual void | ApplyQueuedActorPanelCache () |
Apply any actor panel cache values that ConversationStateSaver may have queued when loading a saved game. | |
StandardUISubtitlePanel | StageFocusedPanel (Subtitle subtitle) |
Sets the panel that will receive focus for the specified subtitle. | |
override void | ShowSubtitle (Subtitle subtitle) |
Shows a subtitle. | |
void | HideSubtitle (Subtitle subtitle) |
Hides a subtitle. | |
void | Close () |
Close all panels. | |
bool | AreAnyPanelsClosing () |
virtual void | UnfocusAll () |
virtual void | HideOnResponseMenu () |
override void | ShowContinueButton () |
Shows the continue button. | |
override void | HideContinueButton () |
Hides the continue button. | |
override void | SetActive (bool value) |
override void | SetSubtitle (Subtitle subtitle) |
override void | ClearSubtitle () |
virtual void | ClearSubtitlesOnCustomPanels () |
override void | SetActorPortraitSprite (string actorName, Sprite portraitSprite) |
Sets the portrait sprite to use in the subtitle if the named actor is the speaker. | |
void | OpenSubtitlePanelsOnStartConversation (StandardDialogueUI ui) |
Searches the current conversation for any DialogueActors who use subtitle panels that are configured to appear when the conversation starts. | |
void | SetLastActorToUsePanel (StandardUISubtitlePanel panel, int actorID) |
void | OpenSubtitlePanelLikeStart (SubtitlePanelNumber subtitlePanelNumber) |
virtual float | GetTypewriterSpeed () |
virtual void | SetTypewriterSpeed (float charactersPerSecond) |
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 | 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 Member Functions | |
virtual SubtitlePanelNumber | GetSubtitlePanelNumberFromPanel (StandardUISubtitlePanel panel) |
virtual void | SupercedeOtherPanels (StandardUISubtitlePanel newPanel) |
virtual void | SupercedeOtherPanelsInList (List< StandardUISubtitlePanel > list, StandardUISubtitlePanel newPanel) |
Transform | GetActorTransform (string actorName) |
Properties | |
StandardUISubtitlePanel | defaultNPCPanel [get, set] |
StandardUISubtitlePanel | defaultPCPanel [get, set] |
override bool | hasText [get] |
Indicates whether the focused subtitle contains text. | |
virtual bool | allowDialogueActorCustomPanels = true [get, set] |
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 |
Manages subtitle panels for StandardDialogueUI.
|
inlinevirtual |
Apply any actor panel cache values that ConversationStateSaver may have queued when loading a saved game.
Only applies built-in panel numbers, not custom panels.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Close all panels.
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
Hides the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inlinevirtual |
|
inline |
Hides a subtitle.
subtitle | Subtitle associated with panel to hide. |
|
inline |
|
inline |
|
inline |
Searches the current conversation for any DialogueActors who use subtitle panels that are configured to appear when the conversation starts.
|
inline |
For speakers who do not have DialogueActor components, this method overrides the actor's default panel.
|
inline |
Overrides a DialogueActor's subtitle panel.
dialogueActor | DialogueActor whose panel to override for this conversation. |
subtitlePanelNumber | New subtitle panel number. |
customPanel | Only used if subtitlePanelNumber is Custom. |
|
inlinevirtual |
Queues actor panel caches to be applies when the next conversation starts.
|
inlinevirtual |
Record the current actor panel cache values for saved games (ConversationStateSaver) so the cache can be restored when loading a game.
Only saves built-in panel numbers, not custom panels.
|
inline |
|
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.
|
inlinevirtual |
Changes a dialogue actor's panel for the current conversation.
Can still be overridden by [panel=#] tags.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Shows the continue button.
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inlinevirtual |
Shows a subtitle.
Opens a subtitle panel and sets the content. If the speaker has a DialogueActor component, this may dictate which panel opens.
subtitle | Subtitle to show. |
Reimplemented from PixelCrushers.DialogueSystem.AbstractUISubtitleControls.
|
inline |
Sets the panel that will receive focus for the specified subtitle.
When delaying the display of the subtitle while the main dialogue panel is opening, we still need a reference to the subtitle panel to handle continue button stuff once the main panel is open.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
getset |
|
getset |
|
getset |
|
get |
Indicates whether the focused subtitle contains text.