Add cab activated light

i-cabactived in mmd
This commit is contained in:
2025-01-06 19:45:21 +01:00
parent 0e08086937
commit 96120edb39
2 changed files with 11 additions and 1 deletions

View File

@@ -7337,6 +7337,14 @@ bool TTrain::Update( double const Deltatime )
btLampkaPoslizg.Turn( false );
}
// Lampka aktywowanej kabiny
if (mvControlled->CabActive != 0) {
btCabActived.Turn(true);
}
else {
btCabActived.Turn(false);
}
if( true == lowvoltagepower ) {
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
@@ -10028,7 +10036,8 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
{ "i-universal6:", btUniversals[ 6 ] },
{ "i-universal7:", btUniversals[ 7 ] },
{ "i-universal8:", btUniversals[ 8 ] },
{ "i-universal9:", btUniversals[ 9 ] }
{ "i-universal9:", btUniversals[ 9 ] },
{ "i-cabactived", btCabActived }
};
{
auto lookup = lights.find( Label );

View File

@@ -769,6 +769,7 @@ public: // reszta może by?publiczna
TButton btLampkaRearRightLight;
TButton btLampkaRearLeftEndLight;
TButton btLampkaRearRightEndLight;
TButton btCabActived;
// other
TButton btLampkaMalfunction;
TButton btLampkaMalfunctionB;