disable fields on `Launch Control` if `Enable Launch Control` setting is `false`

closes #6571
This commit is contained in:
kifir 2024-05-31 16:44:17 +03:00 committed by rusefillc
parent d97338d9d2
commit 59d2d660f9
1 changed files with 7 additions and 7 deletions

View File

@ -4766,15 +4766,15 @@ dialog = tcuControls, "Transmission Settings"
; Racing Features->Launch Control
dialog = smLaunchControlWest, "Launch Control Settings"
field = "Enable Launch Control", launchControlEnabled
field = "Activation Mode", launchActivationMode
field = "Activation Mode", launchActivationMode, {launchControlEnabled == 1}
field = "Launch Button", launchActivatePin, { launchActivatePin != 0 || (launchActivationMode == @@launchActivationMode_e_SWITCH_INPUT_LAUNCH@@ && launchControlEnabled == 1)}
field = "Launch Button inverted", launchActivateInverted
field = "Launch Button mode", launchActivatePinMode, {launchActivationMode == @@launchActivationMode_e_SWITCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = "Launch Button", launchActivatePin, {launchControlEnabled == 1 && (launchActivatePin != 0 || (launchActivationMode == @@launchActivationMode_e_SWITCH_INPUT_LAUNCH@@ && launchControlEnabled == 1))}
field = "Launch Button inverted", launchActivateInverted, {launchControlEnabled == 1}
field = "Launch Button mode", launchActivatePinMode, {launchControlEnabled == 1 && launchActivationMode == @@launchActivationMode_e_SWITCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = "Clutch Down", clutchDownPin, {launchActivationMode == @@launchActivationMode_e_CLUTCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = "Clutch Down inverted", clutchDownPinInverted
field = "Clutch Down mode", clutchDownPinMode, {launchActivationMode == @@launchActivationMode_e_CLUTCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = "Clutch Down", clutchDownPin, {launchControlEnabled == 1 && launchActivationMode == @@launchActivationMode_e_CLUTCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = "Clutch Down inverted", clutchDownPinInverted, {launchControlEnabled == 1}
field = "Clutch Down mode", clutchDownPinMode, {launchControlEnabled == 1 && launchActivationMode == @@launchActivationMode_e_CLUTCH_INPUT_LAUNCH@@ && launchControlEnabled == 1}
field = ""
; dead code field = "Rpm Threshold", launchRpmThreshold, {launchControlEnabled == 1}