16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59: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() ) {
@@ -10163,7 +10172,8 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
{ "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

@@ -777,6 +777,7 @@ public: // reszta może by?publiczna
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;