mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Add i-highbeamlights
This commit is contained in:
14
Train.cpp
14
Train.cpp
@@ -7448,6 +7448,15 @@ bool TTrain::Update( double const Deltatime )
|
||||
else
|
||||
btAKLVents.Turn(true);
|
||||
|
||||
if (mvOccupied->modernDimmerState >= 3)
|
||||
{
|
||||
btHighBeamLights.Turn(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
btHighBeamLights.Turn(true);
|
||||
}
|
||||
|
||||
if( true == lowvoltagepower ) {
|
||||
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
|
||||
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
|
||||
@@ -10162,8 +10171,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-highbeamlights:", btHighBeamLights}
|
||||
};
|
||||
{
|
||||
auto lookup = lights.find( Label );
|
||||
|
||||
7
Train.h
7
Train.h
@@ -774,9 +774,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 btHighBeamLights; // lampka; czy zapalone swiatla dlugie
|
||||
// other
|
||||
TButton btLampkaMalfunction;
|
||||
TButton btLampkaMalfunctionB;
|
||||
|
||||
Reference in New Issue
Block a user