Сообщения в ПДА (#564)
* add: Сообщения в ПДА * Search bar and colors in messages on the PDA
This commit is contained in:
@@ -14,6 +14,7 @@ using Content.Shared.CartridgeLoader;
|
||||
using Content.Shared.Chat;
|
||||
using Content.Shared.Light.Components;
|
||||
using Content.Shared.PDA;
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Server.Containers;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -90,12 +91,24 @@ namespace Content.Server.PDA
|
||||
UpdatePdaUi(uid, pda);
|
||||
}
|
||||
|
||||
public void SetOwner(EntityUid uid, PdaComponent pda, string ownerName)
|
||||
public void SetOwnerName(EntityUid uid, PdaComponent pda, string ownerName)
|
||||
{
|
||||
pda.OwnerName = ownerName;
|
||||
UpdatePdaUi(uid, pda);
|
||||
}
|
||||
|
||||
public void SetOwnerJob(EntityUid uid, PdaComponent pda, string ownerJob)
|
||||
{
|
||||
pda.OwnerJob = ownerJob;
|
||||
UpdatePdaUi(uid, pda);
|
||||
}
|
||||
|
||||
public void SetOwnerDepartment(EntityUid uid, PdaComponent pda, string ownerDepartment)
|
||||
{
|
||||
pda.OwnerDepartment = ownerDepartment;
|
||||
UpdatePdaUi(uid, pda);
|
||||
}
|
||||
|
||||
private void OnStationRenamed(StationRenamedEvent ev)
|
||||
{
|
||||
UpdateAllPdaUisOnStation();
|
||||
@@ -172,6 +185,7 @@ namespace Content.Server.PDA
|
||||
new PdaIdInfoText
|
||||
{
|
||||
ActualOwnerName = pda.OwnerName,
|
||||
ActualOwnerJob = pda.OwnerJob, // WD EDIT
|
||||
IdOwner = id?.FullName,
|
||||
JobTitle = id?.JobTitle,
|
||||
StationAlertLevel = pda.StationAlertLevel,
|
||||
|
||||
Reference in New Issue
Block a user