Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ButtonChoicePresenter
    Implements
    IChoicePresenter
    Namespace: Ibralogue.Views
    Assembly: .dll
    Syntax
    public class ButtonChoicePresenter : MonoBehaviour, IChoicePresenter

    Methods

    | Edit this page View Source

    ClearChoices()

    Clears all choice UI elements.

    Declaration
    public void ClearChoices()
    | Edit this page View Source

    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

    Implements

    IChoicePresenter
    • Edit this page
    • View Source
    In this article
    Back to top Ibralogue Docs