示例#1
0
        private void RemovePlayerUI(UIEODLobbyPlayer player)
        {
            if (player.PersonButton != null)
            {
                Remove(player.PersonButton);
                player.PersonButton = null;
            }

            if (CaptionFunction != null)
            {
                player.Label.Caption = CaptionFunction(player, null);
            }
        }
示例#2
0
        private void UpdatePlayerUI(UIEODLobbyPlayer player, VMAvatar avatar)
        {
            if (player.PersonButton != null)
            {
                Remove(player.PersonButton);
                player.PersonButton = null;
            }

            player.PersonButton          = new UIVMPersonButton((VMAvatar)avatar, EOD.EODController.Lot.vm, true);
            player.PersonButton.Position = player.Image.Position + new Microsoft.Xna.Framework.Vector2(2, 2);
            Add(player.PersonButton);

            if (CaptionFunction != null)
            {
                player.Label.Caption = CaptionFunction(player, avatar);
            }
        }
示例#3
0
 public UIEODLobby WithPlayerUI(UIEODLobbyPlayer player)
 {
     PlayerUI.Add(player);
     return(this);
 }