Merge pull request #12 from Unofficial-MaSzyna-Developement/kermit-requested-features

Add aklvents button
This commit is contained in:
2025-01-07 12:22:11 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -7388,6 +7388,11 @@ bool TTrain::Update( double const Deltatime )
btCabActived.Turn(false);
}
if (mvControlled->Battery && mvControlled->CabActive == 0)
btAKLVents.Turn(true);
else
btAKLVents.Turn(true);
if( true == lowvoltagepower ) {
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
@@ -10092,6 +10097,7 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
{ "i-universal8:", btUniversals[ 8 ] },
{ "i-universal9:", btUniversals[ 9 ] },
{ "i-cabactived:", btCabActived },
{"i-aklvents:", btAKLVents},
{"i-compressorany:", btCompressors }
};
{

View File

@@ -772,6 +772,7 @@ public: // reszta może by?publiczna
TButton btLampkaRearLeftEndLight;
TButton btLampkaRearRightEndLight;
TButton btCabActived;
TButton btAKLVents;
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
// other
TButton btLampkaMalfunction;