Info about a line of dialogue. More...
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... | |
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.
PixelCrushers.DialogueSystem.Subtitle.Subtitle | ( | CharacterInfo | speakerInfo, |
CharacterInfo | listenerInfo, | ||
FormattedText | formattedText, | ||
string | sequence, | ||
string | responseMenuSequence, | ||
DialogueEntry | dialogueEntry | ||
) |
PixelCrushers.DialogueSystem.Subtitle.Subtitle | ( | CharacterInfo | speakerInfo, |
CharacterInfo | listenerInfo, | ||
FormattedText | formattedText, | ||
string | sequence, | ||
string | responseMenuSequence, | ||
DialogueEntry | dialogueEntry, | ||
string | entrytag | ||
) |
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.
DialogueEntry PixelCrushers.DialogueSystem.Subtitle.dialogueEntry |
The dialogue entry that the subtitle information came from.
string PixelCrushers.DialogueSystem.Subtitle.entrytag = string.Empty |
The entrytag associated with the dialogue entry.
FormattedText PixelCrushers.DialogueSystem.Subtitle.formattedText |
The formatted text of the line.
The IDialogueUI displays this text.
CharacterInfo PixelCrushers.DialogueSystem.Subtitle.listenerInfo |
Info about the listener to whom the line is being spoken.
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.
string PixelCrushers.DialogueSystem.Subtitle.sequence |
The sequence associated with the line.
The Sequencer plays this sequence. See sequencer.
CharacterInfo PixelCrushers.DialogueSystem.Subtitle.speakerInfo |
Info about the speaker of this line.