Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     try
     {
         drawInfobackup    = drawInfo;
         richTextBox1.Text = GetDrawInfo();
         showGraphic();
     }
     catch { }
 }
Exemplo n.º 2
0
 public void showGraphic()
 {
     checkinvalidate();
     g.FillEllipse(new SolidBrush(Color.Red), drawInfo.start_point_red.x - 6, drawInfo.start_point_red.y - 6, 12, 12);
     g.FillEllipse(new SolidBrush(Color.White), drawInfo.start_point_white.x - 6, drawInfo.start_point_white.y - 6, 12, 12);
     g.FillEllipse(new SolidBrush(Color.Yellow), drawInfo.start_point_yellow.x - 6, drawInfo.start_point_yellow.y - 6, 12, 12);
     if (firstreplay)
     {
         drawInfobackup = new DRAW_INFO();
         firstreplay    = false;
     }
     if (drawInfobackup.white_point.x != 0 && drawInfobackup.white_point.y != 0)
     {
         g.DrawLine(new Pen(Color.White), drawInfo.white_point.x, drawInfo.white_point.y, drawInfobackup.white_point.x, drawInfobackup.white_point.y);
     }
     if (drawInfobackup.red_point.x != 0 && drawInfobackup.red_point.y != 0)
     {
         g.DrawLine(new Pen(Color.Red), drawInfo.red_point.x, drawInfo.red_point.y, drawInfobackup.red_point.x, drawInfobackup.red_point.y);
     }
     if (drawInfobackup.yellow_point.x != 0 && drawInfobackup.yellow_point.y != 0)
     {
         g.DrawLine(new Pen(Color.Yellow), drawInfo.yellow_point.x, drawInfo.yellow_point.y, drawInfobackup.yellow_point.x, drawInfobackup.yellow_point.y);
     }
 }
Exemplo n.º 3
0
 public static extern bool BTAPI_QueryDrawInfo(ref DRAW_INFO di, ref POINT white_hit, ref POINT yellow_hit, ref POINT red_hit, bool bReplay, int player, int shotNum);