mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +03:00
# Description Cherry-picks https://github.com/DeltaV-Station/Delta-v/pull/1237 All credit goes to the original author, deltanedas Adds a PDA app that lets seccies know who's wanted and who's about to be thrown out of an airlock without relying on the sechud and people having their IDs on them. # Media  (see the original PR for a better preview) # Changelog 🆑 deltanedas - add: Security can find the new SecWatch™ app in their PDAs to see current suspects and wanted criminals. Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: Azzy <azzydev@icloud.com>
22 lines
741 B
C#
22 lines
741 B
C#
using Content.Shared.CartridgeLoader.Cartridges;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.DeltaV.CartridgeLoader.Cartridges;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class SecWatchEntryControl : BoxContainer
|
|
{
|
|
public SecWatchEntryControl(SecWatchEntry entry)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
Status.Text = Loc.GetString($"criminal-records-status-{entry.Status.ToString().ToLower()}");
|
|
Title.Text = Loc.GetString("sec-watch-entry", ("name", entry.Name), ("job", entry.Job));
|
|
|
|
Reason.Text = entry.Reason ?? Loc.GetString("sec-watch-no-reason");
|
|
}
|
|
}
|