Examine prediction (#23565)

* Initial prediction

* new group handling

* groups for all examines that use multiple rn

* compile

* why was it doing this??

* handle newlines with sorting properly
This commit is contained in:
Kara
2024-01-05 23:53:13 -07:00
committed by GitHub
parent 731cfc278a
commit 0ae3858b69
41 changed files with 693 additions and 431 deletions

View File

@@ -15,18 +15,21 @@ public abstract class SharedWiresSystem : EntitySystem
private void OnExamine(EntityUid uid, WiresPanelComponent component, ExaminedEvent args)
{
if (!component.Open)
using (args.PushGroup(nameof(WiresPanelComponent)))
{
args.PushMarkup(Loc.GetString("wires-panel-component-on-examine-closed"));
}
else
{
args.PushMarkup(Loc.GetString("wires-panel-component-on-examine-open"));
if (TryComp<WiresPanelSecurityComponent>(uid, out var wiresPanelSecurity) &&
wiresPanelSecurity.Examine != null)
if (!component.Open)
{
args.PushMarkup(Loc.GetString(wiresPanelSecurity.Examine));
args.PushMarkup(Loc.GetString("wires-panel-component-on-examine-closed"));
}
else
{
args.PushMarkup(Loc.GetString("wires-panel-component-on-examine-open"));
if (TryComp<WiresPanelSecurityComponent>(uid, out var wiresPanelSecurity) &&
wiresPanelSecurity.Examine != null)
{
args.PushMarkup(Loc.GetString(wiresPanelSecurity.Examine));
}
}
}
}