ValuePrompt

Overview

ValuePrompt is a numeric input prompt used in pre-match configuration screens with Prompter. It allows drivers to adjust a value within a defined range using the gamepad. The current value, bounds, and increment are clearly displayed in telemetry and can be confirmed with a button press.


Usage

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

new ValuePrompt("Select a Start Delay:", 0.0, 10.0, 2.0, 0.5)

This will display a value prompt starting at 2, adjustable in increments of 0.5, clamped between 0 and 10. The selected value is returned when the user presses the A button.

Controls

  • D-PAD UP / RIGHT: Increase value

  • D-PAD DOWN / LEFT: Decrease value

  • A: Confirm selection

Telemetry Output Example

Select a Start Delay:

< 2.0 >

After pressing D-PAD UP:

Select a Start Delay:

< 2.5 >

Last updated