mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-18 01:15:58 +01:00
fix: radio fuse review: working push buttons, own hint, HUD
- radioon_sw:/radiooff_sw:/radiofuseon_sw:/radiofuseoff_sw: are now loaded as push-button gauges in initialize_gauge, so they can be clicked; the enable/disable commands press them while held. radiotoggle and radiofusetoggle flip the state directly, so they don't move them. - New driver hint "Close radio fuse" (radiofuseon); "Switch on radio" is given only when the radio's own switch is off. - The HUD shows the radio channel only with the fuse closed. (eu07/maszyna#438)
This commit is contained in:
@@ -130,13 +130,22 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
|
||||
case driver_hint::radioon: {
|
||||
if( AIControllFlag ) {
|
||||
mvOccupied->Radio = true;
|
||||
mvOccupied->RadioFuse = true;
|
||||
}
|
||||
remove_hint( driver_hint::radiooff );
|
||||
hint(
|
||||
Action,
|
||||
[this](float const /*Parameter*/) {
|
||||
return mvOccupied->Radio && mvOccupied->RadioFuse; } );
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user