Forensics (#8451)
* Port forensics from nyanotrasen * port updates * printing * Update Resources/Locale/en-US/forensics/forensics.ftl Co-authored-by: Veritius <veritiusgaming@gmail.com> * Update Content.Server/Forensics/Components/ForensicPadComponent.cs Co-authored-by: Kara <lunarautomaton6@gmail.com> * Update Content.Server/Forensics/Systems/ForensicPadSystem.cs Co-authored-by: Kara <lunarautomaton6@gmail.com> * Update Content.Server/Forensics/Systems/ForensicScannerSystem.cs Co-authored-by: Kara <lunarautomaton6@gmail.com> * partially address reviews * comments * redo the events * handle it * rewrite loc * master fixes Co-authored-by: ike709 <ike709@github.com> Co-authored-by: Veritius <veritiusgaming@gmail.com> Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
37
Content.Client/Forensics/ForensicScannerMenu.xaml.cs
Normal file
37
Content.Client/Forensics/ForensicScannerMenu.xaml.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Text;
|
||||
using Content.Shared.Forensics;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
||||
namespace Content.Client.Forensics
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class ForensicScannerMenu : DefaultWindow
|
||||
{
|
||||
public ForensicScannerMenu()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
public void Populate(ForensicScannerUserMessage msg)
|
||||
{
|
||||
Print.Disabled = false;
|
||||
var text = new StringBuilder();
|
||||
|
||||
text.AppendLine(Loc.GetString("forensic-scanner-interface-fingerprints"));
|
||||
foreach (var fingerprint in msg.Fingerprints)
|
||||
{
|
||||
text.AppendLine(fingerprint);
|
||||
}
|
||||
text.AppendLine();
|
||||
text.AppendLine(Loc.GetString("forensic-scanner-interface-fibers"));
|
||||
foreach (var fiber in msg.Fibers)
|
||||
{
|
||||
text.AppendLine(fiber);
|
||||
}
|
||||
Diagnostics.Text = text.ToString();
|
||||
SetSize = (350, 600);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user