BooleanPrompt

Overview

BooleanPrompt is a simple yes/no toggle used in pre-match configuration screens with Prompter. It allows drivers to switch between true and false values using the D-PAD and confirm the selection with a button press. The current selection is clearly shown as "Yes" or "No" in telemetry.


Usage

To create a new prompt, provide a header and a default value:

new BooleanPrompt("Enable Auto Score?", true)

This will display a prompt that starts with "Yes" and toggles between "Yes" and "No". The selected value is returned when the user presses the A button.

Controls

  • Any D-PAD Direction: Toggle value (Yes / No)

  • A: Confirm selection

Telemetry Output Example

Enable Auto Score?

Current Value: Yes

After pressing any D-PAD direction:

Enable Auto Score?

Current Value: No

Last updated