Beispiel #1
0
        protected override void HexgridPanel_MouseMove(object sender, MouseEventArgs e)
        {
            var hotHex = MapBoard.HotspotHex;

            base.HexgridPanel_MouseMove(sender, e);
            StatusBarToolStrip.StatusLabelText = string.Format(CustomCoords,
                                                               Properties.Resources.StatusLabelText,
                                                               hotHex, hotHex, hotHex,
                                                               MapBoard.StartHex - hotHex, MapBoard.Path.Match(path => path.TotalCost, () => 0))
                                                 + $"  Elevation: Ground={MapBoard.ElevationGroundASL(hotHex)};"
                                                 + $" Observer={MapBoard.ElevationObserverASL(hotHex)};"
                                                 + $" Target={MapBoard.ElevationTargetASL(hotHex)}";
        }