mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 06:59:18 +02:00
Add working light to indicate any active compressor
i-compressorany: in mmd
This commit is contained in:
@@ -7367,6 +7367,12 @@ bool TTrain::Update( double const Deltatime )
|
|||||||
btLampkaPoslizg.Turn( false );
|
btLampkaPoslizg.Turn( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Lampka pracujacej sprezacki
|
||||||
|
if (mvControlled->CompressorFlag || mvOccupied->CompressorFlag)
|
||||||
|
btCompressors.Turn(true);
|
||||||
|
else
|
||||||
|
btCompressors.Turn(false);
|
||||||
|
|
||||||
// Lampka aktywowanej kabiny
|
// Lampka aktywowanej kabiny
|
||||||
if (mvControlled->CabActive != 0) {
|
if (mvControlled->CabActive != 0) {
|
||||||
btCabActived.Turn(true);
|
btCabActived.Turn(true);
|
||||||
@@ -10079,7 +10085,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-compressor:", btCompressors }
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
auto lookup = lights.find( Label );
|
auto lookup = lights.find( Label );
|
||||||
|
|||||||
1
Train.h
1
Train.h
@@ -772,6 +772,7 @@ public: // reszta może by?publiczna
|
|||||||
TButton btLampkaRearLeftEndLight;
|
TButton btLampkaRearLeftEndLight;
|
||||||
TButton btLampkaRearRightEndLight;
|
TButton btLampkaRearRightEndLight;
|
||||||
TButton btCabActived;
|
TButton btCabActived;
|
||||||
|
TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki
|
||||||
// other
|
// other
|
||||||
TButton btLampkaMalfunction;
|
TButton btLampkaMalfunction;
|
||||||
TButton btLampkaMalfunctionB;
|
TButton btLampkaMalfunctionB;
|
||||||
|
|||||||
Reference in New Issue
Block a user