Merge remote-tracking branch 'refs/remotes/wizards/master'
# Conflicts: # Content.Server/Chat/Systems/AnnounceOnSpawnSystem.cs # Content.Server/Chat/Systems/ChatSystem.cs
This commit is contained in:
commit
30458496b6
8 changed files with 1720 additions and 2157 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<Popup xmlns="https://spacestation14.io"
|
||||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client">
|
||||
<PanelContainer StyleClasses="BackgroundDark">
|
||||
<PanelContainer>
|
||||
<PanelContainer.PanelOverride>
|
||||
<gfx:StyleBoxFlat BorderThickness="1" BorderColor="#18181B"/>
|
||||
<gfx:StyleBoxFlat BorderThickness="2" BorderColor="#18181B" BackgroundColor="#25252a"/>
|
||||
</PanelContainer.PanelOverride>
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<BoxContainer Orientation="Vertical" Margin="4 4 4 4">
|
||||
<Label Name="PlayerNameLabel"/>
|
||||
<Label Name="IdLabel"/>
|
||||
<Label Name="TypeLabel"/>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public sealed class AnnounceOnSpawnSystem : EntitySystem
|
|||
private void OnInit(EntityUid uid, AnnounceOnSpawnComponent comp, MapInitEvent args)
|
||||
{
|
||||
var message = Loc.GetString(comp.Message);
|
||||
var sender = comp.Sender != null ? Loc.GetString(comp.Sender) : "Central Command";
|
||||
var sender = comp.Sender != null ? Loc.GetString(comp.Sender) : Loc.GetString("chat-manager-sender-announcement");
|
||||
_chat.DispatchGlobalAnnouncement(message, sender, playDefault: true, announcementSound: comp.Sound, colorOverride: comp.Color);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||
/// <param name="colorOverride">Optional color for the announcement message</param>
|
||||
public void DispatchGlobalAnnouncement(
|
||||
string message,
|
||||
string sender = "Центральное коммандование", // Sunrise-edit
|
||||
string? sender = null,
|
||||
bool playDefault = true,
|
||||
SoundSpecifier? announcementSound = null,
|
||||
bool playTts = true, // Sunrise-edit,
|
||||
|
|
@ -330,6 +330,8 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||
Color? colorOverride = null
|
||||
)
|
||||
{
|
||||
sender ??= Loc.GetString("chat-manager-sender-announcement");
|
||||
|
||||
var wrappedMessage = Loc.GetString("chat-manager-sender-announcement-wrap-message", ("sender", sender), ("message", FormattedMessage.EscapeText(message)));
|
||||
_chatManager.ChatMessageToAll(ChatChannel.Radio, message, wrappedMessage, default, false, true, colorOverride);
|
||||
|
||||
|
|
@ -362,13 +364,15 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||
public void DispatchStationAnnouncement(
|
||||
EntityUid source,
|
||||
string message,
|
||||
string sender = "Центральное коммандование", // Sunrise-edit
|
||||
string? sender = null,
|
||||
bool playDefault = true, // Sunrise-edit
|
||||
bool playTts = true,// Sunrise-edit
|
||||
bool playTts = true, // Sunrise-edit
|
||||
Color? colorOverride = null,
|
||||
string? announceVoice = null,
|
||||
SoundSpecifier? announcementSound = null)
|
||||
{
|
||||
sender ??= Loc.GetString("chat-manager-sender-announcement");
|
||||
|
||||
var wrappedMessage = Loc.GetString("chat-manager-sender-announcement-wrap-message", ("sender", sender), ("message", FormattedMessage.EscapeText(message)));
|
||||
var station = _stationSystem.GetOwningStation(source);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,4 @@
|
|||
Entries:
|
||||
- author: Vermidia
|
||||
changes:
|
||||
- message: Most medical roles now can choose to start with nitrile or latex gloves,
|
||||
or a sterile mask in their loadout, Medical Doctors can also start with a nurse
|
||||
hat.
|
||||
type: Add
|
||||
id: 6404
|
||||
time: '2024-04-20T06:22:48.0000000+00:00'
|
||||
url: https://github.com/space-wizards/space-station-14/pull/27029
|
||||
- author: MilenVolf
|
||||
changes:
|
||||
- message: Most crates can now go through plastic flaps.
|
||||
|
|
@ -3826,3 +3817,10 @@
|
|||
id: 6903
|
||||
time: '2024-07-11T05:53:15.0000000+00:00'
|
||||
url: https://github.com/space-wizards/space-station-14/pull/29790
|
||||
- author: Winkarst-cpu
|
||||
changes:
|
||||
- message: Admin notes popups are now more readable.
|
||||
type: Tweak
|
||||
id: 6904
|
||||
time: '2024-07-11T14:03:22.0000000+00:00'
|
||||
url: https://github.com/space-wizards/space-station-14/pull/29909
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ chat-manager-no-such-channel = There is no channel with key '{$key}'!
|
|||
chat-manager-whisper-headset-on-message = You can't whisper on the radio!
|
||||
|
||||
chat-manager-server-wrap-message = [bold]{$message}[/bold]
|
||||
chat-manager-sender-announcement = Central Command
|
||||
chat-manager-sender-announcement-wrap-message = [font size=14][bold]{$sender} Announcement:[/font][font size=12]
|
||||
{$message}[/bold][/font]
|
||||
chat-manager-entity-say-wrap-message = [BubbleHeader][bold][Name]{$entityName}[/Name][/bold][/BubbleHeader] {$verb}, [font={$fontType} size={$fontSize}]"[BubbleContent]{$message}[/BubbleContent]"[/font]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -9,7 +9,7 @@
|
|||
stationProto: StandardNanotrasenStation
|
||||
components:
|
||||
- type: StationEmergencyShuttle
|
||||
emergencyShuttlePath: /Maps/Shuttles/emergency_omega.yml
|
||||
emergencyShuttlePath: /Maps/Shuttles/emergency_cluster.yml
|
||||
- type: StationNameSetup
|
||||
mapNameTemplate: '{0} Cluster Station {1}'
|
||||
nameGenerator:
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
nameGenerator:
|
||||
!type:NanotrasenNameGenerator
|
||||
prefixCreator: '14'
|
||||
- type: StationEmergencyShuttle
|
||||
emergencyShuttlePath: /Maps/Shuttles/emergency_transit.yml
|
||||
- type: StationJobs
|
||||
availableJobs:
|
||||
#service
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue