mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
i-edenabled light
This commit is contained in:
12
Train.cpp
12
Train.cpp
@@ -7435,6 +7435,12 @@ bool TTrain::Update( double const Deltatime )
|
|||||||
else
|
else
|
||||||
btCompressors.Turn(false);
|
btCompressors.Turn(false);
|
||||||
|
|
||||||
|
// Lampka zezwolenia na hamowanie ED
|
||||||
|
if (mvControlled->EpFuse)
|
||||||
|
btEDenabled.Turn(true);
|
||||||
|
else
|
||||||
|
btEDenabled.Turn(false);
|
||||||
|
|
||||||
// Lampka aktywowanej kabiny
|
// Lampka aktywowanej kabiny
|
||||||
if (mvControlled->CabActive != 0) {
|
if (mvControlled->CabActive != 0) {
|
||||||
btCabActived.Turn(true);
|
btCabActived.Turn(true);
|
||||||
@@ -7448,6 +7454,9 @@ bool TTrain::Update( double const Deltatime )
|
|||||||
else
|
else
|
||||||
btAKLVents.Turn(false);
|
btAKLVents.Turn(false);
|
||||||
|
|
||||||
|
if ()
|
||||||
|
|
||||||
|
|
||||||
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() ) {
|
||||||
@@ -10164,7 +10173,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-edenabled", btEDenabled }
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
auto lookup = lights.find( Label );
|
auto lookup = lights.find( Label );
|
||||||
|
|||||||
1
Train.h
1
Train.h
@@ -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 btEDenabled; // czy wlaczony jest hamulec ED (czy dostepny)
|
||||||
// other
|
// other
|
||||||
TButton btLampkaMalfunction;
|
TButton btLampkaMalfunction;
|
||||||
TButton btLampkaMalfunctionB;
|
TButton btLampkaMalfunctionB;
|
||||||
|
|||||||
Reference in New Issue
Block a user