private void SetMapBoard(MapGridDisplay mapBoard) { _hexgridPanel.SetModel(_mapBoard = mapBoard); _mapBoard.ShowPathArrow = buttonPathArrow.Checked; _mapBoard.ShowFov = buttonFieldOfView.Checked; _mapBoard.FovRadius = _mapBoard.RangeCutoff = Int32.Parse(txtPathCutover.Tag.ToString(), CultureInfo.InvariantCulture); LoadLandmarkMenu(); CustomCoords.SetMatrices(new IntMatrix2D(2, 0, 0, -2, 0, 2 * _mapBoard.MapSizeHexes.Height - 1, 2)); _hexgridPanel.Focus(); }
private void SetMapBoard(MapGridDisplay mapBoard) { HexgridPanel.SetModel(MapBoard = mapBoard); MapBoard.ShowPathArrow = MenuBarToolStrip.ShowPathArrow; MapBoard.ShowFov = MenuBarToolStrip.ShowFieldOfView; MapBoard.FovRadius = MapBoard.RangeCutoff = MenuBarToolStrip.PathCutover; MenuBarToolStrip.LoadLandmarkMenu(MapBoard.Landmarks); CustomCoords = new CustomCoords(new IntMatrix2D(2, 0, 0, -2, 0, 2 * MapBoard.MapSizeHexes.Height - 1, 2)); HexgridPanel.Focus(); }