18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 15:45:23 +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:
jerrrrycho
2026-11-08 17:52:39 +01:00
parent 30bdc3da61
commit 43fc80f452
7 changed files with 94 additions and 34 deletions

View File

@@ -271,6 +271,8 @@ std::string locale::label_cab_control(std::string const &Label)
{ "converteroff_sw:", STRN("converter") },
{ "main_sw:", STRN("line breaker") },
{ "radio_sw:", STRN("radio") },
{ "radioon_sw:", STRN("radio") },
{ "radiooff_sw:", STRN("radio") },
{ "radiofuse_sw:", STRN("radio fuse") },
{ "radiofuseon_sw:", STRN("radio fuse") },
{ "radiofuseoff_sw:", STRN("radio fuse") },