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. | |
Subtitle (CharacterInfo speakerInfo, CharacterInfo listenerInfo, FormattedText formattedText, string sequence, string responseMenuSequence, DialogueEntry dialogueEntry, string entrytag) | |
Initializes a new Subtitle. | |
Sprite | GetSpeakerPortrait () |
Gets the speaker portrait for this line. | |
Sprite | GetListenerOverridePortrait () |
Gets the listener portrait override, if it was overridden by a [picc=#] tag. | |
Public Attributes | |
CharacterInfo | speakerInfo |
Info about the speaker of this line. | |
CharacterInfo | listenerInfo |
Info about the listener to whom the line is being spoken. | |
FormattedText | formattedText |
The formatted text of the line. | |
string | sequence |
The sequence associated with the line. | |
string | responseMenuSequence |
The response menu sequence associated with the line. | |
DialogueEntry | dialogueEntry |
The dialogue entry that the subtitle information came from. | |
string | entrytag = string.Empty |
The entrytag associated with the dialogue entry. | |
ActiveConversationRecord | activeConversationRecord = null |
The active conversation record associated with this subtitle; useful if multiple simultaneous conversations are running and you need to distinguish them. | |
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.
|
inline |
Initializes a new Subtitle.
speakerInfo | Speaker info. |
listenerInfo | Listener info. |
formattedText | Formatted text. |
sequence | Sequence. |
responseMenuSequence | Response menu sequence. |
dialogueEntry | Dialogue entry. |
|
inline |
Initializes a new Subtitle.
speakerInfo | Speaker info. |
listenerInfo | Listener info. |
formattedText | Formatted text. |
sequence | Sequence. |
responseMenuSequence | Response menu sequence. |
dialogueEntry | Dialogue entry. |
entrytag | Entrytag. |
|
inline |
Gets the listener portrait override, if it was overridden by a [picc=#] tag.
If not overridden by [picc=#], returns null;
|
inline |
Gets the speaker portrait for this line.
This is normally speakerInfo.portrait, but it could be overridden by [pic*] tags in the formatted text.
ActiveConversationRecord PixelCrushers.DialogueSystem.Subtitle.activeConversationRecord = null |
The active conversation record associated with this subtitle; useful if multiple simultaneous conversations are running and you need to distinguish them.
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.