diff --git a/DXMainClient/DXGUI/Multiplayer/GameLobby/CnCNetGameLobby.cs b/DXMainClient/DXGUI/Multiplayer/GameLobby/CnCNetGameLobby.cs index 1e7cee6ea..76cf42416 100644 --- a/DXMainClient/DXGUI/Multiplayer/GameLobby/CnCNetGameLobby.cs +++ b/DXMainClient/DXGUI/Multiplayer/GameLobby/CnCNetGameLobby.cs @@ -49,8 +49,9 @@ public CnCNetGameLobby( GameCollection gameCollection, CnCNetUserData cncnetUserData, MapLoader mapLoader, - DiscordHandler discordHandler - ) : base(windowManager, "MultiplayerGameLobby", topBar, mapLoader, discordHandler) + DiscordHandler discordHandler, + PrivateMessagingWindow pmWindow + ) : base(windowManager, "MultiplayerGameLobby", topBar, mapLoader, discordHandler, pmWindow) { this.connectionManager = connectionManager; localGame = ClientConfiguration.Instance.LocalGame; diff --git a/DXMainClient/DXGUI/Multiplayer/GameLobby/LANGameLobby.cs b/DXMainClient/DXGUI/Multiplayer/GameLobby/LANGameLobby.cs index b3c7891f2..b84d9dee0 100644 --- a/DXMainClient/DXGUI/Multiplayer/GameLobby/LANGameLobby.cs +++ b/DXMainClient/DXGUI/Multiplayer/GameLobby/LANGameLobby.cs @@ -17,6 +17,7 @@ using System.Net.Sockets; using System.Text; using System.Threading; +using DTAClient.DXGUI.Multiplayer.CnCNet; namespace DTAClient.DXGUI.Multiplayer.GameLobby @@ -43,8 +44,8 @@ public class LANGameLobby : MultiplayerGameLobby public const string PING = "PING"; public LANGameLobby(WindowManager windowManager, string iniName, - TopBar topBar, LANColor[] chatColors, MapLoader mapLoader, DiscordHandler discordHandler) : - base(windowManager, iniName, topBar, mapLoader, discordHandler) + TopBar topBar, LANColor[] chatColors, MapLoader mapLoader, DiscordHandler discordHandler, PrivateMessagingWindow pmWindow) : + base(windowManager, iniName, topBar, mapLoader, discordHandler, pmWindow) { this.chatColors = chatColors; encoding = Encoding.UTF8; diff --git a/DXMainClient/DXGUI/Multiplayer/GameLobby/MultiplayerGameLobby.cs b/DXMainClient/DXGUI/Multiplayer/GameLobby/MultiplayerGameLobby.cs index 31a07888f..08f903dd7 100644 --- a/DXMainClient/DXGUI/Multiplayer/GameLobby/MultiplayerGameLobby.cs +++ b/DXMainClient/DXGUI/Multiplayer/GameLobby/MultiplayerGameLobby.cs @@ -15,6 +15,7 @@ using DTAClient.Domain; using Microsoft.Xna.Framework.Graphics; using ClientCore.Extensions; +using DTAClient.DXGUI.Multiplayer.CnCNet; namespace DTAClient.DXGUI.Multiplayer.GameLobby { @@ -27,7 +28,7 @@ public abstract class MultiplayerGameLobby : GameLobbyBase, ISwitchable private const int MAX_DIE_SIDES = 100; public MultiplayerGameLobby(WindowManager windowManager, string iniName, - TopBar topBar, MapLoader mapLoader, DiscordHandler discordHandler) + TopBar topBar, MapLoader mapLoader, DiscordHandler discordHandler, PrivateMessagingWindow pmWindow) : base(windowManager, iniName, mapLoader, true, discordHandler) { TopBar = topBar; diff --git a/DXMainClient/DXGUI/Multiplayer/LANLobby.cs b/DXMainClient/DXGUI/Multiplayer/LANLobby.cs index c13102f46..45de651a9 100644 --- a/DXMainClient/DXGUI/Multiplayer/LANLobby.cs +++ b/DXMainClient/DXGUI/Multiplayer/LANLobby.cs @@ -25,6 +25,7 @@ using SixLabors.ImageSharp; using Color = Microsoft.Xna.Framework.Color; using Rectangle = Microsoft.Xna.Framework.Rectangle; +using DTAClient.DXGUI.Multiplayer.CnCNet; namespace DTAClient.DXGUI.Multiplayer { @@ -94,6 +95,7 @@ DiscordHandler discordHandler MapLoader mapLoader; DiscordHandler discordHandler; + PrivateMessagingWindow pmWindow; bool initSuccess = false; @@ -237,7 +239,7 @@ public override void Initialize() gameCreationPanel.SetPositionAndSize(); lanGameLobby = new LANGameLobby(WindowManager, "MultiplayerGameLobby", - null, chatColors, mapLoader, discordHandler); + null, chatColors, mapLoader, discordHandler, pmWindow); DarkeningPanel.AddAndInitializeWithControl(WindowManager, lanGameLobby); lanGameLobby.Disable();