@@ -350,51 +350,41 @@ void AddSpace()
350
350
351
351
if ( car . BrakesStuck || ( ( car is MSTSLocomotive ) && ( car as MSTSLocomotive ) . PowerReduction > 0 ) ) carLabel . Color = Color . Red ;
352
352
353
+ // Left arrow
353
354
line . Add ( new buttonArrowLeft ( 0 , 0 , SymbolSize , Owner . Viewer , carPosition ) ) ;
354
355
AddSpace ( ) ;
355
- if ( car != PlayerTrain . Cars . First ( ) )
356
- {
357
- line . Add ( new buttonFrontBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
358
- line . Add ( new buttonFrontAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
359
- AddSpace ( ) ;
360
- line . Add ( new buttonCouplerFront ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
361
- }
362
- else
363
- {
364
- line . Add ( new buttonFrontBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
365
- line . Add ( new buttonFrontAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
366
- AddSpace ( ) ;
367
- line . Add ( new buttonCouplerFront ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
368
- }
356
+
357
+ // Front brake hose
358
+ line . Add ( new buttonFrontBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
359
+ // Front angle cock
360
+ line . Add ( new buttonFrontAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
361
+ AddSpace ( ) ;
362
+
363
+ // Front coupler
364
+ line . Add ( new buttonCouplerFront ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
365
+ // Car label
369
366
line . Add ( carLabel ) ;
370
- if ( car != PlayerTrain . Cars . Last ( ) )
371
- {
372
- line . Add ( new buttonCouplerRear ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
373
- AddSpace ( ) ;
374
- line . Add ( new buttonRearAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
375
- line . Add ( new buttonRearBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
376
- }
377
- else
378
- {
379
- line . Add ( new buttonCouplerRear ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
380
- AddSpace ( ) ;
381
- line . Add ( new buttonRearAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
382
- line . Add ( new buttonRearBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
383
- }
367
+ // Rear coupler
368
+ line . Add ( new buttonCouplerRear ( 0 , 0 , SymbolSize , Owner . Viewer , car ) ) ;
369
+ AddSpace ( ) ;
384
370
371
+ // Rear angle cock
372
+ line . Add ( new buttonRearAngleCock ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
373
+ // Rear brake hose
374
+ line . Add ( new buttonRearBrakeHose ( 0 , 0 , SymbolSize , Owner . Viewer , car , carPosition ) ) ;
385
375
AddSpace ( ) ;
386
376
387
377
// Handbrake
388
378
line . Add ( new buttonHandBrake ( 0 , 0 , SymbolSize , Owner . Viewer , carPosition ) ) ;
389
379
AddSpace ( ) ;
390
380
391
- // Bleed Off Valve
381
+ // Bleed off valve
392
382
line . Add ( new buttonBleedOffValve ( 0 , 0 , SymbolSize , Owner . Viewer , carPosition ) ) ;
393
383
AddSpace ( ) ;
394
384
395
385
if ( AllSymbolsMode ) //Allows to display all symbols
396
386
{
397
- // Electric Train Supply Connection (ETS)
387
+ // Electric train supply connection (ETS)
398
388
if ( PlayerTrain . Cars . Count ( ) > 1 && wagon . PowerSupply != null )
399
389
{
400
390
line . Add ( new buttonToggleElectricTrainSupplyCable ( 0 , 0 , SymbolSize , Owner . Viewer , carPosition ) ) ;
@@ -417,7 +407,7 @@ void AddSpace()
417
407
}
418
408
}
419
409
}
420
-
410
+ // Right arrow
421
411
line . Add ( new buttonArrowRight ( 0 , 0 , textHeight , Owner . Viewer , carPosition ) ) ;
422
412
AddSpace ( ) ;
423
413
AddSpace ( ) ;
@@ -477,7 +467,7 @@ public void localScrollLayout(int selectedCarPosition)
477
467
478
468
LocalScrollPosition = 0 ;
479
469
480
- if ( CarPositionVisible > 0 && selectedCarPosition >= CarPositionVisible ) // && selectedCarPosition != currentCarPosition)// Not related with CarID
470
+ if ( CarPositionVisible > 0 && selectedCarPosition >= CarPositionVisible ) // Not related with CarID
481
471
{
482
472
Client = ControlLayoutScrollboxVertical . NewClient ;
483
473
var xcarPosition = CarPositionVisible ;
@@ -587,7 +577,7 @@ public override void PrepareFrame(ElapsedTime elapsedTime, bool updateFull)
587
577
carOperations . CarOperationChanged = carOperations . Visible && carOperations . CarOperationChanged ;
588
578
}
589
579
590
- if ( CarPosition != trainCarViewer . CarPosition )
580
+ if ( CarPosition != trainCarViewer . CarPosition && Owner . Viewer . TrainCarOperationsWebpage . Connections > 0 )
591
581
{
592
582
// Required to scroll the main window from the web version
593
583
UpdateTrainCarOperation = true ;
0 commit comments