anchor.diff:      Town_ScriptRefresh
     else
     if aPage = Panel_Defence then
  -  begin
  -    fGame.MapEditor.VisibleLayers := fGame.MapEditor.VisibleLayers + [mlDefences];
  -    Town_DefenceRefresh;
  -  end else
  +    Town_DefenceRefresh
  +  else
     if aPage = Panel_Offence then
       Attacks_Refresh
     else
  
positive.code:     Image_ExtraClose.OnClick := SwitchPage;
      Image_ExtraClose.HighlightOnMouseOver := True;
  
      TrackBar_Passability := TKMTrackBar.Create(Panel_Extra, 18, 50, 184, 0, Byte(High(TPassability)));
      TrackBar_Passability.Caption := 'View passability';
      TrackBar_Passability.Position := 0; //Disabled by default
      TrackBar_Passability.OnChange := View_Passability;
      Label_Passability := TKMLabel.Create(Panel_Extra, 18, 90, 184, 0, 'Off', fnt_Metal, taLeft);
  end;
  
  
  
negative.code:   GameCursor.Mode := cmNone;
    GameCursor.Tag1 := 0;
  
    //If the user clicks on the tab that is open, it closes it (main buttons only)
    if ((Sender = Button_Main[1]) and Panel_Terrain.Visible) or
       ((Sender = Button_Main[2]) and Panel_Town.Visible) or
  