Esempio n. 1
0
        public void Init(Player p, ICardSelectMethod method)
        {
            canClick              = true;
            selectMethod          = method;
            selectMethod.Selector = this;
            selectMethod.Init(p);
            BackColor = Color.FromArgb(100, Color.Black);

            region.ClearRegion();
            var cardCount = method.GetCards().Length;
            var margin    = (Width - 2 * 150 - 120) / (cardCount - 1);

            for (int i = 0; i < cardCount; i++)
            {
                region.AddRegion(new SwitchButtonRegion(i + 1, margin * i + 150, 100, 120, 120, "ErrorButton.PNG", ""));
            }

            UpdateCards();
        }
Esempio n. 2
0
 private void LeftPlayerShowCardSelector(Player p, ICardSelectMethod method)
 {
     cardSelector1.Init(p, method);
 }