Silence ringtones on admin PDAs (#29801)
* Silence ringtones on invisible PDAs * Revert "Silence ringtones on invisible PDAs" This reverts commit afc1041f31eebe82e83630a856a8856b877a9826. * Literally just this * Add an admin announcement for news article publishing
This commit is contained in:
@@ -20,6 +20,7 @@ using Content.Server.Station.Systems;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.StationRecords;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Content.Server.Chat.Managers;
|
||||
|
||||
namespace Content.Server.MassMedia.Systems;
|
||||
|
||||
@@ -35,6 +36,7 @@ public sealed class NewsSystem : SharedNewsSystem
|
||||
[Dependency] private readonly GameTicker _ticker = default!;
|
||||
[Dependency] private readonly AccessReaderSystem _accessReader = default!;
|
||||
[Dependency] private readonly IdCardSystem _idCardSystem = default!;
|
||||
[Dependency] private readonly IChatManager _chatManager = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -161,6 +163,12 @@ public sealed class NewsSystem : SharedNewsSystem
|
||||
$"{ToPrettyString(msg.Actor):actor} created news article {article.Title} by {article.Author}: {article.Content}"
|
||||
);
|
||||
|
||||
_chatManager.SendAdminAnnouncement(Loc.GetString("news-publish-admin-announcement",
|
||||
("actor", msg.Actor),
|
||||
("title", article.Title),
|
||||
("author", article.Author ?? Loc.GetString("news-read-ui-no-author"))
|
||||
));
|
||||
|
||||
articles.Add(article);
|
||||
|
||||
var args = new NewsArticlePublishedEvent(article);
|
||||
|
||||
@@ -34,3 +34,4 @@ news-write-ui-richtext-tooltip = News articles support rich text
|
||||
{"[bullet/]bullet[/color]"}
|
||||
|
||||
news-pda-notification-header = New news article
|
||||
news-publish-admin-announcement = {$actor} published news article {$title} by {$author}"
|
||||
|
||||
@@ -667,6 +667,7 @@
|
||||
scanDelay: 0
|
||||
- type: CartridgeLoader
|
||||
uiKey: enum.PdaUiKey.Key
|
||||
notificationsEnabled: false
|
||||
preinstalled:
|
||||
- CrewManifestCartridge
|
||||
- NotekeeperCartridge
|
||||
|
||||
Reference in New Issue
Block a user