private void SelectRegion(int regionId)
        {
            var r = _mapSetting.GetRegion(regionId);

            if (r.scale <= 1)
            {
                _scaleMap.Show(false);
                _mainMap.SelectRegion(r.Id);

                _mapSelect.Show(false);
                return;
            }

            _scaleMap.SelectRegion(r.Id);
            _mainMap.SelectRegion(r.Id);

            _scaleMap.MoveMap(r.Position, r.scale);
            _scaleMap.Show(true);

            var size = 200 - 20 * r.scale;
            var pos  = r.Position * -1;

            _mapSelect.Show(true);
            _mapSelect.SetPosition(pos, size);
        }
Example #2
0
 private void testButton_Click(object sender, EventArgs e)
 {
     gameMap = new GameMap(3, 3);
     this.Hide();
     gameMap.Show();
 }
Example #3
0
 private void createButton_Click(object sender, EventArgs e)
 {
     gameMap = new GameMap(X, Y);
     this.Hide();
     gameMap.Show();
 }