This abstract class forms the base for many IDialogueUI implementations. More...
Public Member Functions | |
virtual void | Awake () |
Sets up the component. | |
virtual void | Start () |
Starts this instance by hiding everything. | |
virtual void | Open () |
Opens the conversation GUI. | |
virtual void | Close () |
Closes the conversation GUI. | |
virtual void | ShowAlert (string message, float duration) |
Shows an alert. | |
virtual void | HideAlert () |
Hides the alert if it's showing. | |
virtual void | HideAllAlerts () |
Hides the alert if it's showing. | |
virtual void | Update () |
Updates this instance by hiding the alert message when it's done. | |
virtual void | ShowSubtitle (Subtitle subtitle) |
Shows the subtitle (NPC or PC) based on the character type. | |
virtual void | HideSubtitle (Subtitle subtitle) |
Hides the subtitle based on its character type (PC or NPC). | |
virtual void | ShowContinueButton (Subtitle subtitle) |
Shows the continue button. | |
virtual void | HideContinueButton (Subtitle subtitle) |
Hides the continue button. | |
virtual void | ShowResponses (Subtitle subtitle, Response[] responses, float timeout) |
Shows the player responses menu. | |
virtual void | HideResponses () |
Hides the player response menu. | |
virtual void | ShowQTEIndicator (int index) |
Shows a QTE indicator. | |
virtual void | HideQTEIndicator (int index) |
Hides a QTE indicator. | |
virtual void | OnClick (object data) |
Handles response button clicks. | |
virtual void | OnContinue () |
Handles the continue button being clicked. | |
virtual void | OnContinueAlert () |
virtual void | OnContinueConversation () |
virtual void | SetPCPortrait (Sprite portraitSprite, string portraitName) |
Sets the PC portrait name and sprite. | |
virtual void | SetPCPortrait (Texture2D portraitTexture, string portraitName) |
virtual void | SetActorPortraitSprite (string actorName, Sprite portraitSprite) |
Sets the portrait sprite for an actor. | |
Static Public Member Functions | |
static Sprite | GetValidPortraitSprite (string actorName, Sprite portraitSprite) |
Gets a valid portrait sprite. | |
static Texture2D | GetValidPortraitTexture (string actorName, Texture2D portraitTexture) |
Protected Member Functions | |
virtual void | SetSubtitle (Subtitle subtitle, bool value) |
Sets a subtitle's content and visibility. | |
Properties | |
AbstractUIRoot | uiRootControls [get] |
Gets the user interface root. | |
AbstractDialogueUIControls | dialogueControls [get] |
Gets the dialogue controls. | |
AbstractUIQTEControls | qteControls [get] |
Gets the QTE (Quick Time Event) indicators. | |
AbstractUIAlertControls | alertControls [get] |
Gets the alert message controls. | |
bool | isOpen [get, set] |
Gets or sets a value indicating whether the dialogue UI (conversation interface) is open. | |
virtual bool | AreNonDialogueControlsVisible [get] |
Gets a value indicating whether non-conversation controls (e.g., alert message or QTEs) are visible. | |
Events | |
EventHandler< SelectedResponseEventArgs > | SelectedResponseHandler |
Occurs when the player selects a response. | |
Events inherited from PixelCrushers.DialogueSystem.IDialogueUI | |
EventHandler< SelectedResponseEventArgs > | SelectedResponseHandler |
Your implementation must define this event and make it public. | |
This abstract class forms the base for many IDialogueUI implementations.
It implements common code so that the specific implementation for each GUI system need only deal with the data structures specific to each GUI system.
|
inlinevirtual |
Sets up the component.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueUI, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.TK2DSupport.TK2DDialogueUI, PixelCrushers.DialogueSystem.UnityGUI.UnityDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, PixelCrushers.DialogueSystem.UnityUIBarkSubtitleDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Closes the conversation GUI.
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.SMSDialogueUI, and PixelCrushers.DialogueSystem.StandardDialogueUI.
|
inlinestatic |
Gets a valid portrait sprite.
If the provided portraitSprite is null, grabs the default sprites from the database.
actorName | Actor name. |
portraitSprite | Portrait sprite. |
|
inlinestatic |
|
inlinevirtual |
Hides the alert if it's showing.
Implements PixelCrushers.DialogueSystem.IDialogueUI.
|
inlinevirtual |
Hides the alert if it's showing.
Virtual so StandardDialogueUI can override to clear alert queue, too.
Reimplemented in PixelCrushers.DialogueSystem.StandardDialogueUI.
|
inlinevirtual |
Hides the continue button.
Call this after showing the subtitle. The ConversationView uses this to hide the continue button if the display setting for continue buttons is set to NotBeforeResponseMenu.
subtitle | Subtitle. |
|
inlinevirtual |
Hides a QTE indicator.
index | Index of the QTE indicator. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
|
inlinevirtual |
Hides the player response menu.
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Hides the subtitle based on its character type (PC or NPC).
subtitle | Subtitle to hide. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.SMSDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Handles response button clicks.
data | The Response assigned to the button. This is passed back to the handler. |
Reimplemented in PixelCrushers.DialogueSystem.StandardDialogueUI.
|
inlinevirtual |
Handles the continue button being clicked.
This sends OnConversationContinue to the DialogueManager object so the ConversationView knows to progress the conversation.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueUI.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in PixelCrushers.DialogueSystem.SMSDialogueUI.
|
inlinevirtual |
Opens the conversation GUI.
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueUI, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.UnityGUI.UnityDialogueUI, PixelCrushers.DialogueSystem.SMSDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Sets the portrait sprite for an actor.
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. |
|
inlinevirtual |
Sets the PC portrait name and sprite.
portraitSprite | Portrait sprite. |
portraitName | Portrait name. |
|
inlinevirtual |
|
inlineprotectedvirtual |
Sets a subtitle's content and visibility.
subtitle | Subtitle. The speaker recorded in the subtitle determines whether the NPC or PC subtitle controls are used. |
value | true to show; false to hide. |
|
inlinevirtual |
Shows an alert.
message | Message to show. |
duration | Duration in seconds. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueUI, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Shows the continue button.
subtitle | Subtitle. |
Reimplemented in PixelCrushers.DialogueSystem.SMSDialogueUI.
|
inlinevirtual |
Shows a QTE indicator.
index | Index of the QTE indicator. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
|
inlinevirtual |
Shows the player responses menu.
subtitle | The last subtitle, shown as a reminder. |
responses | Responses. |
timeout | If not 0 , the duration in seconds that the player has to choose a response; otherwise the currently-focused response is auto-selected. If no response is focused (e.g., hovered over), the first response is auto-selected. If 0 , there is no timeout; the player can take as long as desired to choose a response. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.SMSDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Shows the subtitle (NPC or PC) based on the character type.
subtitle | Subtitle to show. |
Implements PixelCrushers.DialogueSystem.IDialogueUI.
Reimplemented in PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueBarkUI, PixelCrushers.DialogueSystem.NGUISupport.NGUIDialogueUI, PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.SMSDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, PixelCrushers.DialogueSystem.UnityUIBarkSubtitleDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
inlinevirtual |
Starts this instance by hiding everything.
The only exception is if an alert message is already showing; it keeps this message visible.
Reimplemented in PixelCrushers.DialogueSystem.TK2DSupport.TK2DDialogueUI.
|
inlinevirtual |
Updates this instance by hiding the alert message when it's done.
Reimplemented in PixelCrushers.DialogueSystem.TextMeshProSupport.TextMeshProDialogueUI, PixelCrushers.DialogueSystem.StandardDialogueUI, and PixelCrushers.DialogueSystem.UnityUIDialogueUI.
|
getabstract |
Gets the alert message controls.
The alert message controls
|
getprotected |
Gets a value indicating whether non-conversation controls (e.g., alert message or QTEs) are visible.
true
if non-conversation controls are visible; otherwise, false
.
|
getabstract |
Gets the dialogue controls.
The dialogue controls.
|
getset |
Gets or sets a value indicating whether the dialogue UI (conversation interface) is open.
true
if open; otherwise, false
.
|
getabstract |
Gets the QTE (Quick Time Event) indicators.
The QTE indicators.
|
getabstract |
Gets the user interface root.
The user interface root.
EventHandler<SelectedResponseEventArgs> PixelCrushers.DialogueSystem.AbstractDialogueUI.SelectedResponseHandler |
Occurs when the player selects a response.