Refactoring of solar control console (#4072)

* Refactor/fix client-side of solar control computer (introduce ComputerBoundUserInterface & fix bugs)

* Refactor server side of solar control computer (introduce BaseComputerUserInterfaceComponent)

* If you can't interact, then messages to computers are blocked.

* Add 'not powered' messages, migrate activation logic partially to an EntitySystem

* Move solar control console to a XAML UI

* Remove useless comment on UserInterfaceKey

* BaseComputerUserInterfaceComponent: Remove EnsureComponent<PowerReceiver>, it's not necessary

* Fix solar panel occlusion check direction

* Solar Control Console refactors/etc. : Handle namespace renames
This commit is contained in:
20kdc
2021-06-16 15:49:02 +01:00
committed by GitHub
parent 69969bbdc6
commit a2f5c953dc
11 changed files with 466 additions and 268 deletions

View File

@@ -0,0 +1,3 @@
base-computer-ui-component-cannot-interact = You can't interact with a computer right now.
base-computer-ui-component-not-powered = The computer is not powered.

View File

@@ -0,0 +1,10 @@
solar-control-window-title = Solar Control Console
solar-control-window-output-power = Output Power:
solar-control-window-watts = W
solar-control-window-sun-angle = Sun Angle:
solar-control-window-degrees = °
solar-control-window-panel-angle = Panel Angle:
solar-control-window-panel-angular-velocity = Panel Angular Velocity:
solar-control-window-degrees-per-minute = °/min.
solar-control-window-press-enter-to-confirm = Press Enter to confirm.