Пример #1
0
 public SnapCardButton(FML f, bool invert)
     : base(f)
 {
     this.invert = invert;
 }
Пример #2
0
 public void showGraveyard(Player p)
 {
     FML f = new FML((a) => { gameElementPressed(new GameElement(a.Card)); }, (a, b) => { }, () => { }, (c) => setFocusCard(c.Card));
     CardPanel l = new CardPanel(() => new CardButton(f), new LayoutArgs(false, false),p.graveyard);
     GUI.showWindow(l, new WindowedPanelArgs("Graveyard", true, true, false));
 }
Пример #3
0
        public CardButton(FML arg)
            : this()
        {
            Click += (object o, EventArgs a) =>
            {
                arg.clickCallBack(this);
            };

            MouseEnter += (sender, args) =>
            {
                arg.addArrows(this, targets);
                arg.mouseEnters(this);
            };

            MouseLeave += (sender, args) =>
            {
                arg.clearArrows();
            };
        }