anchor.diff:        Radio_MapEd_MapType: TKMRadioGroup;
         MinimapView_MapEd: TKMMinimapView;
         Button_MapEdBack,Button_MapEd_Create,Button_MapEd_Load: TKMButton;
  +      NumEdit_MapSizeX: TKMNumericEdit;
  +      NumEdit_MapSizeY: TKMNumericEdit;
     public
       constructor Create(aParent: TKMPanel; aOnPageChange: TGUIEventText);
       destructor Destroy; override;
  
positive.code: 
  { TKMGUIMainMapEditor }
  constructor TKMMenuMapEditor.Create(aParent: TKMPanel; aOnPageChange: TGUIEventText);
  var I: Integer;
  begin
    inherited Create;
  
  
negative.code:       fGameApp.NewMapEditor(Maps[ID].FullPath('.dat'), 0, 0);
      Maps.Unlock;
    end;
  end;
  
  
  procedure TKMMenuMapEditor.SizeChangeByEdit(Sender: TObject);
  var
    I: Integer;
  begin
    Radio_MapEdSizeX.ItemIndex := -1;
    Radio_MapEdSizeY.ItemIndex := -1;
  
    for I := 1 to MAPSIZES_COUNT do
    if NumEdit_MapSizeX.Value = MapSize[I] then
      Radio_MapEdSizeX.ItemIndex := I - 1;
  
    for I := 1 to MAPSIZES_COUNT do
    if NumEdit_MapSizeY.Value = MapSize[I] then
      Radio_MapEdSizeY.ItemIndex := I - 1;
  end;
  
  
  procedure TKMMenuMapEditor.SizeChangeByRadio(Sender: TObject);
  begin
    if Radio_MapEdSizeX.ItemIndex <> -1 then
      NumEdit_MapSizeX.Value := MapSize[Radio_MapEdSizeX.ItemIndex + 1];
    if Radio_MapEdSizeY.ItemIndex <> -1 then
      NumEdit_MapSizeY.Value := MapSize[Radio_MapEdSizeY.ItemIndex + 1];
  end;
  
  
  