@@ -689,7 +689,7 @@ public sealed partial class ChatUIController : UIController
|
|||||||
radioChannel = null;
|
radioChannel = null;
|
||||||
return _player.LocalEntity is EntityUid { Valid: true } uid
|
return _player.LocalEntity is EntityUid { Valid: true } uid
|
||||||
&& _chatSys != null
|
&& _chatSys != null
|
||||||
&& _chatSys.TryProccessRadioMessage(uid, text, out _, out radioChannel, quiet: true);
|
&& _chatSys.TryProcessRadioMessage(uid, text, out _, out radioChannel, quiet: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateSelectedChannel(ChatBox box)
|
public void UpdateSelectedChannel(ChatBox box)
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||||||
// This message may have a radio prefix, and should then be whispered to the resolved radio channel
|
// This message may have a radio prefix, and should then be whispered to the resolved radio channel
|
||||||
if (checkRadioPrefix)
|
if (checkRadioPrefix)
|
||||||
{
|
{
|
||||||
if (TryProccessRadioMessage(source, message, out var modMessage, out var channel))
|
if (TryProcessRadioMessage(source, message, out var modMessage, out var channel))
|
||||||
{
|
{
|
||||||
SendEntityWhisper(source, modMessage, range, channel, nameOverride, hideLog, ignoreActionBlocker);
|
SendEntityWhisper(source, modMessage, range, channel, nameOverride, hideLog, ignoreActionBlocker);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ public abstract partial class SharedChatSystem : EntitySystem
|
|||||||
/// <param name="channel">The channel that was requested, if any</param>
|
/// <param name="channel">The channel that was requested, if any</param>
|
||||||
/// <param name="quiet">Whether or not to generate an informative pop-up message.</param>
|
/// <param name="quiet">Whether or not to generate an informative pop-up message.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool TryProccessRadioMessage(
|
public bool TryProcessRadioMessage(
|
||||||
EntityUid source,
|
EntityUid source,
|
||||||
string input,
|
string input,
|
||||||
out string output,
|
out string output,
|
||||||
|
|||||||
Reference in New Issue
Block a user