From 76562908313cbf993a3b4c9a80a3925d268c8164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Ueti?= <52474532+Mirino97@users.noreply.github.com> Date: Fri, 15 Apr 2022 18:41:27 -0300 Subject: [PATCH] Add roles to Ghost Warp Menu (#7546) --- Content.Client/Ghost/UI/GhostTargetWindow.xaml | 7 ++++--- Content.Client/Ghost/UI/GhostTargetWindow.xaml.cs | 7 ++++--- Content.Server/Ghost/GhostSystem.cs | 7 ++++++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Content.Client/Ghost/UI/GhostTargetWindow.xaml b/Content.Client/Ghost/UI/GhostTargetWindow.xaml index 1107657ac5..df42f22c47 100644 --- a/Content.Client/Ghost/UI/GhostTargetWindow.xaml +++ b/Content.Client/Ghost/UI/GhostTargetWindow.xaml @@ -1,9 +1,10 @@  + MinSize="450 450" + SetSize="450 450"> + HorizontalExpand="True" + HScrollEnabled="False"> (attached).EntityName); + TryComp(attached, out var mind); + + string playerInfo = $"{EntityManager.GetComponent(attached).EntityName} ({mind?.Mind?.CurrentJob?.Name ?? "Unknown"})"; + + if (TryComp(attached, out var state) && !state.IsDead()) + players.Add(attached, playerInfo); } }