public override void MouseMoveHandler(int mX, int mY) { mouseMoveDisplay.Draw(slate, new Pen(Color.Green, 20)); mouseMoveDisplay.Fill(slate, Brushes.White); mouseMoveDisplay.DrawText(slate, "Mouse Pos X:" + mX + " Y:" + mY, arialblk_8pt, blueBrush); statusBar.Clear(slate); if (TopCardGraphic.CheckPoint(mX, mY)) { statusBar.DrawText(slate, "Mouse in top card", arialblk_8pt, redBrush); } // See if the mouse is in any of the player cards for (int i = 0; i < PlayerBox.Length; ++i) { if (PlayerBox[i].CheckPoint(mX, mY)) { statusBar.DrawText(slate, "Mouse in player " + i + " cards: pos=" + MouseInCardPosition(mX, mY, PlayerBox[i].Dimension), arialblk_8pt, redBrush); break; // out of for loop } } }
public void DisplayTopCard(Card TopCard) { TopCardGraphic.DrawImage(slate, pic_list[TopCard.Index()]); }