public SnapCardButton(FML f, bool invert) : base(f) { this.invert = invert; }
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)); }
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(); }; }