Beispiel #1
0
        public void SetLobbyPlayer(Game.Lobby.LobbyPlayer lobbyPlayer, bool isMe)
        {
            IsMe = isMe;

            this.InvokeIfRequired(() =>
            {
                labelPlayerName.Text  = lobbyPlayer.PlayerName;
                buttonColor.BackColor = lobbyPlayer.Color;
                panelPlayer.BackColor = isMe ? Color.Aqua : SystemColors.Control;
                panelPlayer.Visible   = true;
            });
        }
Beispiel #2
0
 private void OnChatPlayerMessage(Game.Lobby.LobbyPlayer lobbyPlayer, string message)
 {
     _view.AddChatMessage($"{lobbyPlayer.PlayerName}: {message}");
 }