Search Results for

    Show / Hide Table of Contents

    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 Source

    ClearChoices()

    Clears all choice UI elements.

    Declaration
    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
    void DisplayChoices(List<Choice> choices, Action<Choice> onChoiceSelected)
    Parameters
    Type Name Description
    List<Choice> choices
    Action<Choice> onChoiceSelected
    • Edit this page
    • View Source
    In this article
    Back to top Ibralogue Docs