Holopad UI tweak for incoming calls (#34137)
* Initial commit * Update * Comment correction * Minor margin increase
This commit is contained in:
@@ -7,8 +7,11 @@ using Content.Server.Speech;
|
||||
using Content.Server.Speech.Components;
|
||||
using Content.Shared.Chat;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.Labels.Components;
|
||||
using Content.Shared.Mind.Components;
|
||||
using Content.Shared.Power;
|
||||
using Content.Shared.Silicons.StationAi;
|
||||
using Content.Shared.Silicons.Borgs.Components;
|
||||
using Content.Shared.Speech;
|
||||
using Content.Shared.Telephone;
|
||||
using Robust.Server.GameObjects;
|
||||
@@ -19,8 +22,6 @@ using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Random;
|
||||
using Robust.Shared.Replays;
|
||||
using System.Linq;
|
||||
using Content.Shared.Silicons.StationAi;
|
||||
using Content.Shared.Silicons.Borgs.Components;
|
||||
|
||||
namespace Content.Server.Telephone;
|
||||
|
||||
@@ -215,7 +216,14 @@ public sealed class TelephoneSystem : SharedTelephoneSystem
|
||||
source.Comp.Muted = options?.MuteSource == true;
|
||||
|
||||
var callerInfo = GetNameAndJobOfCallingEntity(user);
|
||||
receiver.Comp.LastCallerId = (callerInfo.Item1, callerInfo.Item2, Name(source)); // This will be networked when the state changes
|
||||
|
||||
// Base the name of the device on its label
|
||||
string? deviceName = null;
|
||||
|
||||
if (TryComp<LabelComponent>(source, out var label))
|
||||
deviceName = label.CurrentLabel;
|
||||
|
||||
receiver.Comp.LastCallerId = (callerInfo.Item1, callerInfo.Item2, deviceName); // This will be networked when the state changes
|
||||
receiver.Comp.LinkedTelephones.Add(source);
|
||||
receiver.Comp.Muted = options?.MuteReceiver == true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user