This component allows you to override the actor name used in conversations, which is normally set to the name of the GameObject. More...
Classes | |
class | BarkUISettings |
class | StandardDialogueUISettings |
Public Types | |
enum | UseMenuPanelFor { OnlyMe , MeAndResponsesToMe } |
Public Member Functions | |
virtual Sprite | GetPortraitSprite () |
virtual string | GetName () |
Deprecated alias for GetActorName. | |
virtual string | GetActorName () |
Gets the name to use for this DialogueActor, including parsing if it contains a [lua], [var], or [em#] tag. | |
virtual string | GetPersistentDataName () |
Gets the name to use when saving persistent data. | |
virtual SubtitlePanelNumber | GetSubtitlePanelNumber () |
Gets the panel number to use if using a Standard Dialogue UI. | |
virtual void | SetSubtitlePanelNumber (SubtitlePanelNumber newSubtitlePanelNumber) |
Changes a dialogue actor's subtitle panel number. | |
virtual MenuPanelNumber | GetMenuPanelNumber () |
Gets the menu panel number to use if using a Standard Dialogue UI. | |
virtual void | SetMenuPanelNumber (MenuPanelNumber newMenuPanelNumber) |
Changes a dialogue actor's menu panel number. | |
virtual string | AdjustSubtitleColor (Subtitle subtitle) |
Applies any color settings specified in the actor's standardDialogueUISettings. | |
Static Public Member Functions | |
static DialogueActor | GetDialogueActorComponent (Transform t) |
Searches a GameObject, including its parents and children, for a DialogueActor component. | |
static string | GetActorName (Transform t) |
Gets the name of the actor, either from the GameObject or its DialogueActor if present. | |
static string | GetPersistentDataName (Transform t) |
Gets the persistent data name of the actor, from the DialogueActor's persistentDataName if set, otherwise the actor name, or the GameObject name if the GameObject doesn't have a DialogueActor component. | |
static SubtitlePanelNumber | GetSubtitlePanelNumber (Transform t) |
Gets the panel number to use if using a Standard Dialogue UI. | |
static IBarkUI | GetBarkUI (Transform t) |
Public Attributes | |
string | actor |
Overrides the actor name used in conversations. | |
string | persistentDataName |
The internal name to use in the dialogue database when saving persistent data. | |
Texture2D | portrait |
Sprite | spritePortrait |
BarkUISettings | barkUISettings = new BarkUISettings() |
StandardDialogueUISettings | standardDialogueUISettings = new StandardDialogueUISettings() |
Protected Member Functions | |
virtual void | Awake () |
virtual void | SetupBarkUI () |
virtual void | SetupDialoguePanels () |
virtual void | OnEnable () |
virtual void | OnDisable () |
This component allows you to override the actor name used in conversations, which is normally set to the name of the GameObject.
If the override name contains a [lua] or [var] tag, it parses the value.
|
inlinevirtual |
Applies any color settings specified in the actor's standardDialogueUISettings.
subtitle | The subtitle containing the source text. |
|
inlineprotectedvirtual |
|
inlinevirtual |
Gets the name to use for this DialogueActor, including parsing if it contains a [lua], [var], or [em#] tag.
null
if not set.
|
inlinestatic |
Gets the name of the actor, either from the GameObject or its DialogueActor if present.
t | The actor's transform. |
|
inlinestatic |
|
inlinestatic |
Searches a GameObject, including its parents and children, for a DialogueActor component.
t | The GameObject to search. |
|
inlinevirtual |
Gets the menu panel number to use if using a Standard Dialogue UI.
|
inlinevirtual |
Deprecated alias for GetActorName.
|
inlinevirtual |
Gets the name to use when saving persistent data.
|
inlinestatic |
Gets the persistent data name of the actor, from the DialogueActor's persistentDataName if set, otherwise the actor name, or the GameObject name if the GameObject doesn't have a DialogueActor component.
t | The actor's transform. |
|
inlinevirtual |
|
inlinevirtual |
Gets the panel number to use if using a Standard Dialogue UI.
|
inlinestatic |
Gets the panel number to use if using a Standard Dialogue UI.
t | The actor's transform. |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Changes a dialogue actor's menu panel number.
If a conversation is active, updates the dialogue UI.
|
inlinevirtual |
Changes a dialogue actor's subtitle panel number.
If a conversation is active, updates the dialogue UI.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
string PixelCrushers.DialogueSystem.DialogueActor.actor |
Overrides the actor name used in conversations.
BarkUISettings PixelCrushers.DialogueSystem.DialogueActor.barkUISettings = new BarkUISettings() |
string PixelCrushers.DialogueSystem.DialogueActor.persistentDataName |
The internal name to use in the dialogue database when saving persistent data.
If blank, uses the override name.
Texture2D PixelCrushers.DialogueSystem.DialogueActor.portrait |
Sprite PixelCrushers.DialogueSystem.DialogueActor.spritePortrait |
StandardDialogueUISettings PixelCrushers.DialogueSystem.DialogueActor.standardDialogueUISettings = new StandardDialogueUISettings() |