ValuePrompt

Overview

ValuePrompt is a numeric input prompt used in pre-match configuration screens with ChoiceMenu. It lets drivers 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

You typically supply ChoiceMenu with a ValuePrompt. To create a new prompt, provide the header, minimum, maximum, default value, and increment:

new ValuePrompt("Set Delay Time", 0.0, 10.0, 2.0, 0.5)

This will display a value prompt starting at 2, adjustable in increments of 0.5, 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:

Set Delay Time

Increment: 0.5
[0.0] 2.0 [10.0]

Pressing D-PAD UP:

Set Delay Time

Increment: 0.5
[0.0] 2.5 [10.0]

Last updated