EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Display.ConversationDisplayListener Class Reference

Defines methods for conversation display listeners, which listen for changes to conversation displays. More...

Inherits MonoBehaviour.

Inherited by EasyTalk.Display.CharacterImageDisplay.

Public Member Functions

virtual void OnCharacterNameUpdated (string characterName, string sourceName)
 Called whenever the character name is updated on a converation display.
 
virtual void OnConversationTextUpdated (string text)
 Called whenever the text of a conversation display is updated.
 
virtual void OnReset ()
 Called whenever the converation display is reset.
 

Protected Attributes

bool debug = false
 When set to true, debug logging will be shown for each method called on the listener.
 

Detailed Description

Defines methods for conversation display listeners, which listen for changes to conversation displays.

Member Function Documentation

◆ OnCharacterNameUpdated()

virtual void EasyTalk.Display.ConversationDisplayListener.OnCharacterNameUpdated ( string characterName,
string sourceName )
virtual

Called whenever the character name is updated on a converation display.

Parameters
characterNameThe derived/translated name of the character.
sourceNameThe original/source name of the character.

Reimplemented in EasyTalk.Display.CharacterImageDisplay.

◆ OnConversationTextUpdated()

virtual void EasyTalk.Display.ConversationDisplayListener.OnConversationTextUpdated ( string text)
virtual

Called whenever the text of a conversation display is updated.

Parameters
textThe text which was set on the conversation display.

◆ OnReset()

virtual void EasyTalk.Display.ConversationDisplayListener.OnReset ( )
virtual

Called whenever the converation display is reset.

Reimplemented in EasyTalk.Display.CharacterImageDisplay.

Member Data Documentation

◆ debug

bool EasyTalk.Display.ConversationDisplayListener.debug = false
protected

When set to true, debug logging will be shown for each method called on the listener.