PixelCrushers.DialogueSystem.Subtitle Class Reference

Info about a line of dialogue. More...

Collaboration diagram for PixelCrushers.DialogueSystem.Subtitle:

Public Member Functions

 Subtitle (CharacterInfo speakerInfo, CharacterInfo listenerInfo, FormattedText formattedText, string sequence, string responseMenuSequence, DialogueEntry dialogueEntry)
 Initializes a new Subtitle. More...
 
 Subtitle (CharacterInfo speakerInfo, CharacterInfo listenerInfo, FormattedText formattedText, string sequence, string responseMenuSequence, DialogueEntry dialogueEntry, string entrytag)
 Initializes a new Subtitle. More...
 
Texture2D GetSpeakerPortrait ()
 Gets the speaker portrait for this line. More...
 

Public Attributes

CharacterInfo speakerInfo
 Info about the speaker of this line. More...
 
CharacterInfo listenerInfo
 Info about the listener to whom the line is being spoken. More...
 
FormattedText formattedText
 The formatted text of the line. More...
 
string sequence
 The sequence associated with the line. More...
 
string responseMenuSequence
 The response menu sequence associated with the line. More...
 
DialogueEntry dialogueEntry
 The dialogue entry that the subtitle information came from. More...
 
string entrytag = string.Empty
 The entrytag associated with the dialogue entry. More...
 

Detailed Description

Info about a line of dialogue.

Subtitles are created by the ConversationModel and passed by the ConversationView to a dialogue UI to be displayed and to the Sequencer to play any associated sequence.

Constructor & Destructor Documentation

◆ Subtitle() [1/2]

PixelCrushers.DialogueSystem.Subtitle.Subtitle ( CharacterInfo  speakerInfo,
CharacterInfo  listenerInfo,
FormattedText  formattedText,
string  sequence,
string  responseMenuSequence,
DialogueEntry  dialogueEntry 
)

Initializes a new Subtitle.

Parameters
speakerInfoSpeaker info.
listenerInfoListener info.
formattedTextFormatted text.
sequenceSequence.
responseMenuSequenceResponse menu sequence.
dialogueEntryDialogue entry.

◆ Subtitle() [2/2]

PixelCrushers.DialogueSystem.Subtitle.Subtitle ( CharacterInfo  speakerInfo,
CharacterInfo  listenerInfo,
FormattedText  formattedText,
string  sequence,
string  responseMenuSequence,
DialogueEntry  dialogueEntry,
string  entrytag 
)

Initializes a new Subtitle.

Parameters
speakerInfoSpeaker info.
listenerInfoListener info.
formattedTextFormatted text.
sequenceSequence.
responseMenuSequenceResponse menu sequence.
dialogueEntryDialogue entry.
entrytagEntrytag.

Member Function Documentation

◆ GetSpeakerPortrait()

Texture2D PixelCrushers.DialogueSystem.Subtitle.GetSpeakerPortrait ( )

Gets the speaker portrait for this line.

This is normally speakerInfo.portrait, but it could be overrided by [pic*] tags in the formatted text.

Returns
The speaker portrait.

Member Data Documentation

◆ dialogueEntry

DialogueEntry PixelCrushers.DialogueSystem.Subtitle.dialogueEntry

The dialogue entry that the subtitle information came from.

◆ entrytag

string PixelCrushers.DialogueSystem.Subtitle.entrytag = string.Empty

The entrytag associated with the dialogue entry.

◆ formattedText

FormattedText PixelCrushers.DialogueSystem.Subtitle.formattedText

The formatted text of the line.

The IDialogueUI displays this text.

◆ listenerInfo

CharacterInfo PixelCrushers.DialogueSystem.Subtitle.listenerInfo

Info about the listener to whom the line is being spoken.

◆ responseMenuSequence

string PixelCrushers.DialogueSystem.Subtitle.responseMenuSequence

The response menu sequence associated with the line.

If not blank, this sequence will play while the response menu is being shown.

◆ sequence

string PixelCrushers.DialogueSystem.Subtitle.sequence

The sequence associated with the line.

The Sequencer plays this sequence. See sequencer.

◆ speakerInfo

CharacterInfo PixelCrushers.DialogueSystem.Subtitle.speakerInfo

Info about the speaker of this line.


The documentation for this class was generated from the following file: