示例#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();
        }
示例#4
0
        private void SetMapBoard(IPanelModel 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();
        }
示例#5
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);
        }