mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
i-edenabled light
This commit is contained in:
14
Train.cpp
14
Train.cpp
@@ -7412,6 +7412,12 @@ bool TTrain::Update( double const Deltatime )
|
||||
else
|
||||
btCompressors.Turn(false);
|
||||
|
||||
// Lampka zezwolenia na hamowanie ED
|
||||
if (mvControlled->EpFuse)
|
||||
btEDenabled.Turn(true);
|
||||
else
|
||||
btEDenabled.Turn(false);
|
||||
|
||||
// Lampka aktywowanej kabiny
|
||||
if (mvControlled->CabActive != 0) {
|
||||
btCabActived.Turn(true);
|
||||
@@ -7425,6 +7431,9 @@ bool TTrain::Update( double const Deltatime )
|
||||
else
|
||||
btAKLVents.Turn(false);
|
||||
|
||||
if ()
|
||||
|
||||
|
||||
if( true == lowvoltagepower ) {
|
||||
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
|
||||
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
|
||||
@@ -10129,8 +10138,9 @@ 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 }
|
||||
{"i-aklvents:", btAKLVents},
|
||||
{"i-compressorany:", btCompressors },
|
||||
{"i-edenabled", btEDenabled }
|
||||
};
|
||||
{
|
||||
auto lookup = lights.find( Label );
|
||||
|
||||
7
Train.h
7
Train.h
@@ -772,9 +772,10 @@ public: // reszta może by?publiczna
|
||||
TButton btLampkaRearRightLight;
|
||||
TButton btLampkaRearLeftEndLight;
|
||||
TButton btLampkaRearRightEndLight;
|
||||
TButton btCabActived;
|
||||
TButton btAKLVents;
|
||||
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
|
||||
TButton btCabActived;
|
||||
TButton btAKLVents;
|
||||
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
|
||||
TButton btEDenabled; // czy wlaczony jest hamulec ED (czy dostepny)
|
||||
// other
|
||||
TButton btLampkaMalfunction;
|
||||
TButton btLampkaMalfunctionB;
|
||||
|
||||
Reference in New Issue
Block a user