Ejemplo n.º 1
0
        private void pbMapViewer_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;

            //// Draw the selected hexagons.
            //foreach (PointF point in Hexagons)
            //{
            //    //e.Graphics.FillPolygon(Brushes.LightBlue,HexToPoints(HexHeight, point.X, point.Y));
            //    e.Graphics.FillPolygon(Brushes.Purple, HexToPoints(HexHeight, point.X, point.Y));
            //}

            ctrlMap.DrawBaseMap(e.Graphics, Pens.Black, pbMapViewer.ClientSize);
            ctrlMap.DrawPlayerOnMap(ctrlPlayer.GetPlayerTile(), e.Graphics);
            //ctrlMap.DrawStringOnTile(ctrlPlayer.GetPlayerTile(), e.Graphics, Font);
        }
Ejemplo n.º 2
0
 private void PbMap_Paint(object sender, PaintEventArgs e)
 {
     e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
     ctrlMap.DrawMapPlayerRect(ctrlPlayer.GetPlayerTile(), e.Graphics, Pens.Black, PbMap.ClientSize);
     //map.DrawPlayerOnMap(player.GetPlayerTile(), e.Graphics);
 }