Interface IChoicePresenter
Provides choice display and cleanup. Implement this interface on any MonoBehaviour to handle choice presentation independently from the dialogue view. Assign it to the engine's Choice Presenter field.
Namespace: Ibralogue.Views
Assembly: .dll
Syntax
public interface IChoicePresenter
Methods
| Edit this page View SourceClearChoices()
Clears all choice UI elements.
Declaration
void ClearChoices()
DisplayChoices(List<Choice>, Action<Choice>)
Presents choices to the player. When a choice is selected,
invoke onChoiceSelected with the chosen option.
Declaration
void DisplayChoices(List<Choice> choices, Action<Choice> onChoiceSelected)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Choice> | choices | |
| Action<Choice> | onChoiceSelected |