16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 01:19:19 +02:00

Add i-highbeamlights

This commit is contained in:
2025-01-07 13:14:23 +01:00
parent 080d5fe9c7
commit 290eacb49f
2 changed files with 16 additions and 5 deletions

View File

@@ -7448,6 +7448,15 @@ bool TTrain::Update( double const Deltatime )
else else
btAKLVents.Turn(true); btAKLVents.Turn(true);
if (mvOccupied->modernDimmerState >= 3)
{
btHighBeamLights.Turn(true);
}
else
{
btHighBeamLights.Turn(true);
}
if( true == lowvoltagepower ) { if( true == lowvoltagepower ) {
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa // McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) { if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
@@ -10162,8 +10171,9 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
{ "i-universal8:", btUniversals[ 8 ] }, { "i-universal8:", btUniversals[ 8 ] },
{ "i-universal9:", btUniversals[ 9 ] }, { "i-universal9:", btUniversals[ 9 ] },
{ "i-cabactived:", btCabActived }, { "i-cabactived:", btCabActived },
{"i-aklvents:", btAKLVents}, {"i-aklvents:", btAKLVents},
{"i-compressorany:", btCompressors } {"i-compressorany:", btCompressors },
{"i-highbeamlights:", btHighBeamLights}
}; };
{ {
auto lookup = lights.find( Label ); auto lookup = lights.find( Label );

View File

@@ -774,9 +774,10 @@ public: // reszta może by?publiczna
TButton btLampkaRearRightLight; TButton btLampkaRearRightLight;
TButton btLampkaRearLeftEndLight; TButton btLampkaRearLeftEndLight;
TButton btLampkaRearRightEndLight; TButton btLampkaRearRightEndLight;
TButton btCabActived; TButton btCabActived;
TButton btAKLVents; TButton btAKLVents;
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
TButton btHighBeamLights; // lampka; czy zapalone swiatla dlugie
// other // other
TButton btLampkaMalfunction; TButton btLampkaMalfunction;
TButton btLampkaMalfunctionB; TButton btLampkaMalfunctionB;