Skip to content

Commit 24702ca

Browse files
ORTS_PLAYER_DIESEL_ENGINE_STATE manual fix
The states indicated in the manual don't correspond to what actually happens, but with the changes made now they do. The example has also been changed, as "display-only" is specified and a multistate mouse control was being used.
1 parent acd7144 commit 24702ca

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

Source/Documentation/Manual/cabs.rst

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -289,21 +289,33 @@ Example::
289289
single: ORTS_PLAYER_DIESEL_ENGINE_STATE
290290

291291
ORTS_PLAYER_DIESEL_ENGINE_STATE: this control respectively selects frames 0,
292-
1, 2, 3 for the player locomotive engine states Stopped, Starting, Running and
293-
Stopping. It is a display-only control.
292+
1, 2, 3 for the player locomotive engine states Stopped, Stopping, Starting and Running and. It is a display-only control.
294293

295294
Example::
296295

297-
MultiState (
298-
Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE TRI_STATE)
299-
Position ( 270 446 39 40 )
300-
Graphic ( cd_363_zberace.ace )
301-
NumFrames ( 4 4 1 )
302-
Style ( NONE )
303-
MouseControl ( 1 )
304-
Orientation ( 0 )
305-
DirIncrease ( 1 )
306-
)
296+
MultiStateDisplay (
297+
Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE MULTI_STATE_DISPLAY )
298+
Position ( 140 306 6.5 6.2 )
299+
Graphic ( "engine_state.ace" )
300+
States ( 4 4 1
301+
State (
302+
Style ( 0 )
303+
SwitchVal ( 0 )
304+
)
305+
State (
306+
Style ( 0 )
307+
SwitchVal ( 1 )
308+
)
309+
State (
310+
Style ( 0 )
311+
SwitchVal ( 2 )
312+
)
313+
State (
314+
Style ( 0 )
315+
SwitchVal ( 3 )
316+
)
317+
)
318+
)
307319

308320

309321
.. index::

0 commit comments

Comments
 (0)