mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 02:56:01 +01:00
Merge pull request #280 from MaSzyna-EU07/feat/radio-fuse
Radio fuse: a cut-off in the radio's power supply (eu07/maszyna#438)
This commit is contained in:
@@ -138,6 +138,16 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
|
||||
return mvOccupied->Radio == true; } );
|
||||
break;
|
||||
}
|
||||
case driver_hint::radiofuseon: {
|
||||
if( AIControllFlag ) {
|
||||
mvOccupied->RadioFuse = true;
|
||||
}
|
||||
hint(
|
||||
Action,
|
||||
[this](float const /*Parameter*/) {
|
||||
return mvOccupied->RadioFuse == true; } );
|
||||
break;
|
||||
}
|
||||
case driver_hint::radiochannel: {
|
||||
if( AIControllFlag ) {
|
||||
iRadioChannel = static_cast<int>( Actionparameter );
|
||||
|
||||
@@ -2,6 +2,7 @@ DRIVER_HINT_DEF(batteryon, STRN("Switch on battery"))
|
||||
DRIVER_HINT_DEF(batteryoff, STRN("Switch off battery"))
|
||||
DRIVER_HINT_DEF(radioon, STRN("Switch on radio"))
|
||||
DRIVER_HINT_DEF(radiooff, STRN("Switch off radio"))
|
||||
DRIVER_HINT_DEF(radiofuseon, STRN("Close radio fuse"))
|
||||
DRIVER_HINT_DEF(radiochannel, STRN("Tune into channel %.0f"))
|
||||
DRIVER_HINT_DEF(oilpumpon, STRN("Switch on oil pump"))
|
||||
DRIVER_HINT_DEF(oilpumpoff, STRN("Switch off oil pump"))
|
||||
|
||||
@@ -810,7 +810,7 @@ debug_panel::update_section_vehicle( std::vector<text_line> &Output ) {
|
||||
mover.HeatingAllow ? 'h' :
|
||||
'.',
|
||||
mover.Hamulec->Releaser() ? '^' : '.',
|
||||
std::string( m_input.mechanik ? STR(" R") + ( mover.Radio ? std::to_string( m_input.mechanik->iRadioChannel ) : "-" ) : "" ).c_str(),
|
||||
std::string( m_input.mechanik ? STR(" R") + ( mover.Radio && mover.RadioFuse ? std::to_string( m_input.mechanik->iRadioChannel ) : "-" ) : "" ).c_str(),
|
||||
std::string( isdieselenginepowered ? STR(" oil pressure: ") + to_string( mover.OilPump.pressure, 2 ) : "" ).c_str(),
|
||||
// power transfers
|
||||
// 3000v
|
||||
|
||||
Reference in New Issue
Block a user