Fixy fix time, Keen touched the chat system
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Torch.Server
|
||||
|
||||
private const string RUNSCRIPT = @"force_install_dir ../
|
||||
login anonymous
|
||||
app_update 298740 -beta publictest -betapassword nt8WuDw9kdvE validate
|
||||
app_update 298740
|
||||
quit";
|
||||
|
||||
private TorchConfig _config;
|
||||
|
@@ -15,6 +15,7 @@ using Torch.API;
|
||||
using Torch.API.Managers;
|
||||
using Torch.Utils;
|
||||
using VRage.Game;
|
||||
using VRageMath;
|
||||
|
||||
namespace Torch.Managers.ChatManager
|
||||
{
|
||||
@@ -82,7 +83,7 @@ namespace Torch.Managers.ChatManager
|
||||
_chatMessageRecievedReplacer.Replace(new Action<ulong, string, ChatChannel, long, string>(Multiplayer_ChatMessageReceived),
|
||||
MyMultiplayer.Static);
|
||||
_scriptedChatMessageRecievedReplacer.Replace(
|
||||
new Action<string, string, string>(Multiplayer_ScriptedChatMessageReceived), MyMultiplayer.Static);
|
||||
new Action<string, string, string, Color>(Multiplayer_ScriptedChatMessageReceived), MyMultiplayer.Static);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -141,7 +142,7 @@ namespace Torch.Managers.ChatManager
|
||||
_hudChatMessageReceived.Invoke(MyHud.Chat, steamUserId, messageText, channel, targetId, customAuthorName);
|
||||
}
|
||||
|
||||
private void Multiplayer_ScriptedChatMessageReceived(string message, string author, string font)
|
||||
private void Multiplayer_ScriptedChatMessageReceived(string message, string author, string font, Color color)
|
||||
{
|
||||
var torchMsg = new TorchChatMessage(author, message, font);
|
||||
if (!RaiseMessageRecieved(torchMsg) && HasHud)
|
||||
|
Reference in New Issue
Block a user