protected void highlightPosition(TDrawBoardEvent e, TPosition pos) { if (pos != null) e.gfx.FillRectangle(new SolidBrush(Color.Red), pos.x * 16, pos.y * 16, 16, 16); }
public override void onDrawBoard(TDrawBoardEvent e) { base.onDrawBoard(e); if (e.type == EDrawBoardEventType.backgroundDrawed && showMove != null) { highlightPosition(e, showMove.start); highlightPosition(e, showMove.target); } }