PokéRogue
    Preparing search index...

    Interface ConfirmModeConfig

    Customizations options for UiMode.CONFIRM

    interface ConfirmModeConfig {
        blockCancelButton?: boolean;
        canBypassInputDelay?: boolean;
        inputDelay?: number;
        maxOptions?: number;
        noHandler: () => void;
        onResize?: (w: number, h: number) => void;
        xOffset?: number;
        yesHandler: () => void;
        yOffset?: number;
    }

    Hierarchy (View Summary)

    Index
    blockCancelButton?: boolean

    Whether to prevent using the cancel button as a shorcut to selecting the last option in the menu.

    canBypassInputDelay?: boolean

    Whether to allow bypassing the inputDelay with the cancel button.

    inputDelay?: number

    Optional delay (in ms) before the player is allowed to make a selection.

    maxOptions?: number

    The maximum number of options shown at once on screen.

    noHandler: () => void

    Handler called when the player selects the "No" option, or cancels

    onResize?: (w: number, h: number) => void

    Optional callback for when the window gets resized.

    xOffset?: number

    Horizontal offset for the window compared to the default (right of screen)

    yesHandler: () => void

    Handler called when the player selects the "Yes" option

    yOffset?: number

    Vertical offset for the window compared to the default (bottom of screen)