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

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

Inherits MonoBehaviour.

Public Member Functions

virtual void OnOptionsSet (List< DialogueOption > options)
 Called whenever dialogue options are set on the option display.
 
virtual void OnOptionSelected (DialogueOption selectedOption)
 Called whenever an option is selected in the option display.
 
virtual void OnOptionChanged (DialogueOption oldOption, DialogueOption newOption)
 Called whenever the option selection is changed in the option display.
 

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 option display listeners, which listen for changes to option displays.

Member Function Documentation

◆ OnOptionChanged()

virtual void EasyTalk.Display.OptionDisplayListener.OnOptionChanged ( DialogueOption oldOption,
DialogueOption newOption )
virtual

Called whenever the option selection is changed in the option display.

Parameters
oldOptionThe previously selected option.
newOptionThe newly selected option.

◆ OnOptionSelected()

virtual void EasyTalk.Display.OptionDisplayListener.OnOptionSelected ( DialogueOption selectedOption)
virtual

Called whenever an option is selected in the option display.

Parameters
selectedOptionThe option which was selected.

◆ OnOptionsSet()

virtual void EasyTalk.Display.OptionDisplayListener.OnOptionsSet ( List< DialogueOption > options)
virtual

Called whenever dialogue options are set on the option display.

Parameters
optionsA List of Dialogue Options which was set on the Option Display.

Member Data Documentation

◆ debug

bool EasyTalk.Display.OptionDisplayListener.debug = false
protected

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