diff --git a/Content.Server/Construction/MachineFrameSystem.cs b/Content.Server/Construction/MachineFrameSystem.cs index b62925f12e..5aa6175e0e 100644 --- a/Content.Server/Construction/MachineFrameSystem.cs +++ b/Content.Server/Construction/MachineFrameSystem.cs @@ -1,6 +1,7 @@ -using Content.Server.Construction.Components; +using Content.Server.Construction.Components; using Content.Server.Stack; using Content.Shared.Construction; +using Content.Shared.Examine; using Content.Shared.Interaction; using Content.Shared.Tag; using Robust.Shared.Containers; @@ -22,6 +23,7 @@ public sealed class MachineFrameSystem : EntitySystem SubscribeLocalEvent(OnInit); SubscribeLocalEvent(OnStartup); SubscribeLocalEvent(OnInteractUsing); + SubscribeLocalEvent(OnMachineFrameExamined); } private void OnInit(EntityUid uid, MachineFrameComponent component, ComponentInit args) @@ -295,4 +297,11 @@ public sealed class MachineFrameSystem : EntitySystem } } } + private void OnMachineFrameExamined(EntityUid uid, MachineFrameComponent component, ExaminedEvent args) + { + if (!args.IsInDetailsRange) + return; + if (component.HasBoard) + args.PushMarkup(Loc.GetString("machine-frame-component-on-examine-label", ("board", EntityManager.GetComponent(component.BoardContainer.ContainedEntities[0]).EntityName))); + } } diff --git a/Resources/Locale/en-US/construction/components/machine-frame-component.ftl b/Resources/Locale/en-US/construction/components/machine-frame-component.ftl new file mode 100644 index 0000000000..fb9027815c --- /dev/null +++ b/Resources/Locale/en-US/construction/components/machine-frame-component.ftl @@ -0,0 +1 @@ +machine-frame-component-on-examine-label = [color=white]Current machine board:[/color] [color=cyan]{$board}[/color]