Esempio n. 1
0
        MyMapDisplay SetMapBoard(MyMapDisplay mapBoard, int fovRadius)
        {
            mapBoard.FovRadius = fovRadius;
            RefreshLandmarkMenu(mapBoard);

            CustomCoords.SetMatrices(new IntMatrix2D(2, 0, 0, -2, 0, 2 * mapBoard.MapSizeHexes.Height - 1, 2));
            return(mapBoard);
        }
        public HexgridExampleForm()
        {
            InitializeComponent();
            Application.AddMessageFilter(this);

            LoadTraceMenu();

            toolStripComboBox1.SelectedIndex = 0;
            CustomCoords.SetMatrices(new IntMatrix2D(2, 0, 0, -2, 0, 2 * MapBoard.MapSizeHexes.Height - 1, 2));
        }
        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();
        }
Esempio n. 4
0
        public HexgridExampleForm()
        {
            InitializeComponent();
            Application.AddMessageFilter(this);

            this.hexgridPanel.ScaleChange += new EventHandler <EventArgs>((o, e) => OnResizeEnd(e));

            LoadTraceMenu();

            toolStripComboBox1.SelectedIndex = 1;
            CustomCoords.SetMatrices(new IntMatrix2D(2, 0, 0, -2, 0, 2 * MapBoard.MapSizeHexes.Height - 1, 2));

//      helpProvider1.SetShowHelp(this,true);
        }