Class ButtonChoicePresenter
Default choice presenter that instantiates button prefabs into a container. This is the same behavior previously built into DialogueViewBase, extracted as a standalone component for independent use.
Implements
Namespace: Ibralogue.Views
Assembly: .dll
Syntax
public class ButtonChoicePresenter : MonoBehaviour, IChoicePresenter
Methods
| Edit this page View SourceClearChoices()
Clears all choice UI elements.
Declaration
public void ClearChoices()
DisplayChoices(List<Choice>, Action<Choice>)
Presents choices to the player. When a choice is selected,
invoke onChoiceSelected with the chosen option.
Declaration
public void DisplayChoices(List<Choice> choices, Action<Choice> onChoiceSelected)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Choice> | choices | |
| Action<Choice> | onChoiceSelected |