diff --git a/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUi.cs b/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUi.cs new file mode 100644 index 00000000000..ea5aa3cf256 --- /dev/null +++ b/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUi.cs @@ -0,0 +1,35 @@ +using Robust.Client.UserInterface; +using Content.Client.UserInterface.Fragments; +using Content.Shared.DeltaV.CartridgeLoader.Cartridges; +using Content.Shared.CartridgeLoader; +using Robust.Shared.Prototypes; + +namespace Content.Client.DeltaV.CartridgeLoader.Cartridges; + +public sealed partial class CrimeAssistUi : UIFragment +{ + private CrimeAssistUiFragment? _fragment; + + public override Control GetUIFragmentRoot() + { + return _fragment!; + } + + public override void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner) + { + _fragment = new CrimeAssistUiFragment(); + + _fragment.OnSync += _ => SendSyncMessage(userInterface); + } + + private void SendSyncMessage(BoundUserInterface userInterface) + { + var syncMessage = new CrimeAssistSyncMessageEvent(); + var message = new CartridgeUiMessage(syncMessage); + userInterface.SendMessage(message); + } + + public override void UpdateState(BoundUserInterfaceState state) + { + } +} diff --git a/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUiFragment.xaml b/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUiFragment.xaml new file mode 100644 index 00000000000..8186986d8fb --- /dev/null +++ b/Content.Client/DeltaV/CartridgeLoader/Cartridges/CrimeAssistUiFragment.xaml @@ -0,0 +1,16 @@ + + + + + + + + + +