Make more Fields VV and more editable (#2051)

* Make more Fields VV and more editable

* Applied feedback

Co-authored-by: David Tan <>
This commit is contained in:
DTanxxx
2020-09-14 00:04:00 +12:00
committed by GitHub
parent a359b6b8b0
commit 4d50666ee4
11 changed files with 12 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
[ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionContainerComponent>();
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
[ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(ReagentDispenserUiKey.Key);