diff --git a/Torch.API/IMultiplayer.cs b/Torch.API/IMultiplayer.cs index abf2b31..e873657 100644 --- a/Torch.API/IMultiplayer.cs +++ b/Torch.API/IMultiplayer.cs @@ -18,6 +18,6 @@ namespace Torch.API void BanPlayer(ulong steamId, bool banned = true); IMyPlayer GetPlayerBySteamId(ulong id); IMyPlayer GetPlayerByName(string name); - MTObservableCollection ChatHistory { get; } + List ChatHistory { get; } } } \ No newline at end of file diff --git a/Torch.API/Torch.API.csproj b/Torch.API/Torch.API.csproj index 4d94a0b..322ac1d 100644 --- a/Torch.API/Torch.API.csproj +++ b/Torch.API/Torch.API.csproj @@ -69,9 +69,6 @@ - - ..\Torch.Server\bin\x64\Release\Torch.dll - C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\VRage.dll False diff --git a/Torch.Client/Properties/AssemblyInfo.cs b/Torch.Client/Properties/AssemblyInfo.cs index f7f3f23..ef76e4b 100644 --- a/Torch.Client/Properties/AssemblyInfo.cs +++ b/Torch.Client/Properties/AssemblyInfo.cs @@ -12,5 +12,5 @@ using System.Runtime.InteropServices; [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.0.89.455")] -[assembly: AssemblyFileVersion("1.0.89.455")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.89.507")] +[assembly: AssemblyFileVersion("1.0.89.507")] \ No newline at end of file diff --git a/Torch.Server/Properties/AssemblyInfo.cs b/Torch.Server/Properties/AssemblyInfo.cs index f23c7fb..3a5bf8e 100644 --- a/Torch.Server/Properties/AssemblyInfo.cs +++ b/Torch.Server/Properties/AssemblyInfo.cs @@ -12,5 +12,5 @@ using System.Runtime.InteropServices; [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.0.89.455")] -[assembly: AssemblyFileVersion("1.0.89.455")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.89.507")] +[assembly: AssemblyFileVersion("1.0.89.507")] \ No newline at end of file diff --git a/Torch.Server/Views/ChatControl.xaml.cs b/Torch.Server/Views/ChatControl.xaml.cs index 1afa54e..33e05e2 100644 --- a/Torch.Server/Views/ChatControl.xaml.cs +++ b/Torch.Server/Views/ChatControl.xaml.cs @@ -36,17 +36,16 @@ namespace Torch.Server public void BindServer(ITorchServer server) { - //ChatItems.ItemsSource = server.Multiplayer.ChatHistory; - //server.Multiplayer.MessageReceived += Refresh; - //Refresh(); + _server = server; + server.Multiplayer.MessageReceived += Refresh; } - private void Refresh(IChatMessage chatItem = null) + private void Refresh(IChatMessage chatItem, ref bool sendToOthers) { Dispatcher.Invoke(() => { ChatItems.ItemsSource = null; - //ChatItems.ItemsSource = _server.Multiplayer.Chat; + ChatItems.ItemsSource = _server.Multiplayer.ChatHistory; }); } diff --git a/Torch.Server/Views/ConfigControl.xaml b/Torch.Server/Views/ConfigControl.xaml index 91c9626..2781b88 100644 --- a/Torch.Server/Views/ConfigControl.xaml +++ b/Torch.Server/Views/ConfigControl.xaml @@ -40,7 +40,7 @@