mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
Add aklvents button
This commit is contained in:
@@ -7420,6 +7420,11 @@ bool TTrain::Update( double const Deltatime )
|
|||||||
btCabActived.Turn(false);
|
btCabActived.Turn(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mvControlled->Battery && mvControlled->CabActive == 0)
|
||||||
|
btAKLVents.Turn(true);
|
||||||
|
else
|
||||||
|
btAKLVents.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() ) {
|
||||||
@@ -10123,6 +10128,7 @@ 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-compressorany:", btCompressors }
|
{"i-compressorany:", btCompressors }
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
|
|||||||
1
Train.h
1
Train.h
@@ -773,6 +773,7 @@ public: // reszta może by?publiczna
|
|||||||
TButton btLampkaRearLeftEndLight;
|
TButton btLampkaRearLeftEndLight;
|
||||||
TButton btLampkaRearRightEndLight;
|
TButton btLampkaRearRightEndLight;
|
||||||
TButton btCabActived;
|
TButton btCabActived;
|
||||||
|
TButton btAKLVents;
|
||||||
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
|
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
|
||||||
// other
|
// other
|
||||||
TButton btLampkaMalfunction;
|
TButton btLampkaMalfunction;
|
||||||
|
|||||||
Reference in New Issue
Block a user