Skip to content

Commit f5566d7

Browse files
author
Chris Jakeman
committed
Merge branch 'website-release-1.5' of https://github.com/cjakeman/openrails into website-release-1.5
2 parents 84f5327 + e355edf commit f5566d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5005
-1291
lines changed

Source/Documentation/Manual/cabs.rst

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,24 @@ The following controls are available for the cabview:
7979
- ``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)
8080
- ``ORTS_BATTERY_SWITCH_ON`` can be used to control a light on the cab showing the state of the battery switch
8181

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::
8383

8484
TwoState (
85-
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
85+
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE )
8686
...
8787
DisabledIfLowVoltagePowerSupplyOff ( 1 )
8888
)
8989

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+
90100
.. _cabs-master-key:
91101

92102
Master key
@@ -105,12 +115,22 @@ The following controls are available for the cabview:
105115
- ``ORTS_CURRENT_CAB_IN_USE`` can be used to indicate that the current cab is active
106116
- ``ORTS_OTHER_CAB_IN_USE`` can be used to indicate that another cab of the train is active
107117

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::
109127

110128
TwoState (
111-
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
129+
Type ( SPEEDOMETER DIAL )
112130
...
113131
DisabledIfCabPowerSupplyOff ( 1 )
132+
HideIfDisabled ( 0 )
133+
ValueIfDisabled ( 0 )
114134
)
115135

116136
.. _cabs-service-retention:

Source/Documentation/Manual/cruisecontrol.rst

Lines changed: 479 additions & 0 deletions
Large diffs are not rendered by default.
Loading
Loading
Loading

Source/Documentation/Manual/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Open Rails Manual
1919
driving
2020
physics
2121
features-rollingstock
22+
cruisecontrol
2223
operation
2324
timetable
2425
multiplayer

Source/Documentation/Manual/physics.rst

Lines changed: 287 additions & 486 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)