You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Documentation/Manual/cabs.rst
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -79,14 +79,24 @@ The following controls are available for the cabview:
79
79
- ``ORTS_BATTERY_SWITCH_COMMAND_BUTTON_CLOSE`` and ``ORTS_BATTERY_SWITCH_COMMAND_BUTTON_OPEN`` can be used if the switch is controlled with two pushbuttons (one to close the switch and the other to open it)
80
80
- ``ORTS_BATTERY_SWITCH_ON`` can be used to control a light on the cab showing the state of the battery switch
81
81
82
-
Other controls can be hidden if the low voltage power supply is not available using the following parameter::
82
+
Other controls can be disabled if the low voltage power supply is not available using the following parameter::
83
83
84
84
TwoState (
85
-
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
85
+
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
86
86
...
87
87
DisabledIfLowVoltagePowerSupplyOff ( 1 )
88
88
)
89
89
90
+
By default, the cabview control will be completely hidden. You can also set a specific value for the control when it is disabled::
91
+
92
+
TwoState (
93
+
Type ( SPEEDOMETER DIAL )
94
+
...
95
+
DisabledIfLowVoltagePowerSupplyOff ( 1 )
96
+
HideIfDisabled ( 0 )
97
+
ValueIfDisabled ( 0 )
98
+
)
99
+
90
100
.. _cabs-master-key:
91
101
92
102
Master key
@@ -105,12 +115,22 @@ The following controls are available for the cabview:
105
115
- ``ORTS_CURRENT_CAB_IN_USE`` can be used to indicate that the current cab is active
106
116
- ``ORTS_OTHER_CAB_IN_USE`` can be used to indicate that another cab of the train is active
107
117
108
-
Other controls can be hidden if the cab power supply is not available using the following parameter::
118
+
Other controls can be disabled if the cab power supply is not available using the following parameter::
119
+
120
+
TwoState (
121
+
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE )
122
+
...
123
+
DisabledIfCabPowerSupplyOff ( 1 )
124
+
)
125
+
126
+
By default, the cabview control will be completely hidden. You can also set a specific value for the control when it is disabled::
0 commit comments