BooleanPrompt
Overview
BooleanPrompt
is a simple yes/no toggle used in pre-match configuration screens with ChoiceMenu
. 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
You typically supply ChoiceMenu
with a BooleanPrompt
. To create a new prompt, provide the 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
Pressing any D-PAD
direction:
Enable Auto Score?
Current Value: No
Last updated