Restore Shift+1/2/3 turbine toggles; keep numpad for rods
This commit is contained in:
@@ -119,7 +119,7 @@ class ReactorDashboard:
|
||||
"Turbines / Grid",
|
||||
[
|
||||
DashboardKey("t", "Toggle turbine bank"),
|
||||
DashboardKey("1/2/3", "Toggle turbine units 1-3"),
|
||||
DashboardKey("Shift+1/2/3", "Toggle turbine units 1-3"),
|
||||
DashboardKey("y/u/i", "Maintain turbine 1/2/3"),
|
||||
DashboardKey("c", "Toggle consumer"),
|
||||
],
|
||||
@@ -216,8 +216,8 @@ class ReactorDashboard:
|
||||
elif keyname and keyname.startswith(b"KP_") and keyname[-1:] in b"123456789":
|
||||
target = (keyname[-1] - ord("0")) / 10.0 # type: ignore[arg-type]
|
||||
self._queue_command(ReactorCommand(rod_position=target, rod_manual=True))
|
||||
elif ord("1") <= ch <= ord("3"):
|
||||
idx = ch - ord("1")
|
||||
elif ch in (ord("!"), ord("@"), ord("#")):
|
||||
idx = ch - ord("!")
|
||||
self._toggle_turbine_unit(idx)
|
||||
elif ch in _NUMPAD_ROD_KEYS:
|
||||
self._queue_command(ReactorCommand(rod_position=_NUMPAD_ROD_KEYS[ch], rod_manual=True))
|
||||
|
||||
Reference in New Issue
Block a user