All pages
Powered by GitBook
1 of 21

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

OnLineDisplayComplete()

Method in LineAdvancer

Summary

public void OnLineDisplayComplete()

OnDialogueCompleteAsync()

Method in LineAdvancer

Summary

Called by a dialogue runner when dialogue ends to remove the input action handlers.

public override YarnTask OnDialogueCompleteAsync()

Returns

A completed task.

OnDialogueStartedAsync()

Method in LineAdvancer

Summary

Called by a dialogue runner when dialogue starts to add input action handlers for advancing the line.

public override YarnTask OnDialogueStartedAsync()

Returns

A completed task.

multiAdvanceIsCancel

Field in

Summary

If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.

advanceRequestsBeforeCancellingLine

Field in

Summary

The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.

See Also

RequestNextLine()

Method in

Summary

Requests that the dialogue runner proceeds to the next line.

RequestLineHurryUp()

Method in

Summary

Requests that the line be hurried up.

Remarks

OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)

Method in

Summary

Parameters

See Also
  • LineAdvancer.advanceRequestsBeforeCancellingLine: The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.

public bool multiAdvanceIsCancel = false;
LineAdvancer
  • LineAdvancer.multiAdvanceIsCancel: If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.

  • public int advanceRequestsBeforeCancellingLine = 2;
    LineAdvancer
    public void RequestNextLine()
    LineAdvancer
    If this method has been called more times for a single line than Yarn.Unity.LineAdvancer.numberOfAdvancesThisLine , this method requests that the dialogue runner proceed to the next line. Otherwise, it requests that the dialogue runner instruct all line views to hurry up their presentation of the current line.
    public void RequestLineHurryUp()
    LineAdvancer

    RequestDialogueCancellation()

    Method in LineAdvancer

    Summary

    Requests that the dialogue runner to instruct all line views to dismiss their content, and then stops the dialogue.

    public void RequestDialogueCancellation()

    OnLineWillDismiss()

    Method in LineAdvancer

    Summary

    public void OnLineWillDismiss()

    LegacyInputAxes

    Enumeration Member in InputMode

    Summary

    The line advancer responds to input from the legacy Input Manager .

    LegacyInputAxes

    RequestOptionHurryUp()

    Method in LineAdvancer

    Summary

    public void RequestOptionHurryUp()
    Name
    Description

    int currentCharacterIndex

    line

    CancellationToken cancellationToken

    public YarnTask OnCharacterWillAppear(int currentCharacterIndex, MarkupParseResult line, CancellationToken cancellationToken)
    LineAdvancer

    RunLineAsync(LocalizedLine,LineCancellationToken)

    Method in LineAdvancer

    Summary

    Called by a dialogue presenter to signal that a line is running.

    public override YarnTask RunLineAsync(LocalizedLine line, LineCancellationToken token)

    Parameters

    Name
    Description

    Returns

    A completed task.

    OnPrepareForLine(MarkupParseResult,TMP_Text)

    Method in

    Summary

    Parameters

    InputActions

    Enumeration Member in

    Summary

    The line advancer responds to Input Actions from the .

    Yarn.Unity.LocalizedLine line

    The line to present.

    Yarn.Unity.LineCancellationToken token

    A LineCancellationToken that represents whether the dialogue presenter should hurry it its presentation of the line, or stop showing the current line.

    MarkupParseResult
    InputActions
    InputMode
    Unity Input System

    KeyCodes

    Enumeration Member in InputMode

    Summary

    The line advancer responds to keypresses on the keyboard.

    KeyCodes
    Name
    Description

    line

    TMP_Text text

    public void OnPrepareForLine(MarkupParseResult line, TMP_Text text)
    LineAdvancer

    RunOptionsAsync(DialogueOption[],LineCancellationToken)

    Method in LineAdvancer

    Summary

    Called by a dialogue presenter to signal that options are running.

    public override YarnTask<DialogueOption?> RunOptionsAsync(DialogueOption[] dialogueOptions, LineCancellationToken cancellationToken)

    Parameters

    Name
    Description

    Returns

    A completed task indicating that no option was selected by this view.

    None

    Enumeration Member in InputMode

    Summary

    The line advancer does not respond to any input.

    None

    Remarks

    When a line advancer's Yarn.Unity.LineAdvancer.UsedInputMode is set to , call the , and methods directly from your code to control line advancement.

    InputMode

    Enum in LineAdvancer

    Inherits from System.Enum

    Summary

    The type of input that this line advancer responds to.

    public enum InputMode
    {
        InputActions,
        KeyCodes,
        None,
        LegacyInputAxes
    }

    Members

    Name
    Description

    OnLineDisplayBegin(MarkupParseResult,TMP_Text)

    Method in LineAdvancer

    Summary

    public void OnLineDisplayBegin(MarkupParseResult line, TMP_Text text)

    Parameters

    Name
    Description

    Yarn.Unity.DialogueOption[] dialogueOptions

    Yarn.Unity.LineCancellationToken cancellationToken

    InputActions

    The line advancer responds to Input Actions from the Unity Input System .

    KeyCodes

    The line advancer responds to keypresses on the keyboard.

    LegacyInputAxes

    The line advancer responds to input from the legacy Input Manager .

    None

    The line advancer does not respond to any input.

    MarkupParseResult line

    TMP_Text text

    None
    RequestLineHurryUp()
    RequestNextLine()
    RequestDialogueCancellation()
    MarkupParseResult

    LineAdvancer

    Class in

    Inherits from

    Summary

    A dialogue presenter that listens for user input and sends requests to a to advance the presentation of the current line, either by asking a dialogue runner to hurry up its delivery, advance to the next line, or cancel the entire dialogue session.

    Enums
    Name
    Description

    The type of input that this line advancer responds to.

    Fields

    Name
    Description

    The number of times that a 'hurry up' signal occurs before the line advancer requests that the next line be shown.

    If true , repeatedly signalling that the line should be hurried up will cause the line advancer to request that the next line be shown.

    Methods

    Name
    Description

    Called by a dialogue runner when dialogue ends to remove the input action handlers.

    Called by a dialogue runner when dialogue starts to add input action handlers for advancing the line.

    Yarn.Unity
    DialoguePresenterBase
    DialogueRunner
    public sealed class LineAdvancer : DialoguePresenterBase, IActionMarkupHandler

    OnPrepareForLine(MarkupParseResult,TMP_Text)

    RequestDialogueCancellation()

    Requests that the dialogue runner to instruct all line views to dismiss their content, and then stops the dialogue.

    RequestLineHurryUp()

    Requests that the line be hurried up.

    RequestNextLine()

    Requests that the dialogue runner proceeds to the next line.

    RequestOptionHurryUp()

    RunLineAsync(LocalizedLine,LineCancellationToken)

    Called by a dialogue presenter to signal that a line is running.

    RunOptionsAsync(DialogueOption[],LineCancellationToken)

    Called by a dialogue presenter to signal that options are running.

    InputMode
    advanceRequestsBeforeCancellingLine
    multiAdvanceIsCancel
    OnCharacterWillAppear(int,MarkupParseResult,CancellationToken)
    OnDialogueCompleteAsync()
    OnDialogueStartedAsync()
    OnLineDisplayBegin(MarkupParseResult,TMP_Text)
    OnLineDisplayComplete()
    OnLineWillDismiss()