anchor.diff:    Build_ButtonClick(nil);
   
     //Set LastVisiblePage to which ever page was last visible, out of the ones needed
  -  if KMPanel_Settings.Visible then LastVisiblePage := KMPanel_Settings else
  -  if KMPanel_Save.Visible     then LastVisiblePage := KMPanel_Save     else
  -  if KMPanel_Load.Visible     then LastVisiblePage := KMPanel_Load     else
  +  if Panel_Settings.Visible then LastVisiblePage := Panel_Settings else
  +  if Panel_Save.Visible     then LastVisiblePage := Panel_Save     else
  +  if Panel_Load.Visible     then LastVisiblePage := Panel_Load     else
       LastVisiblePage := nil;
   
     //If they just closed settings then we should save them (if something has changed)
  -  if LastVisiblePage = KMPanel_Settings then
  +  if LastVisiblePage = Panel_Settings then
       if fGame.fGameSettings.GetNeedsSave then
         fGame.fGameSettings.SaveSettings;
   
     //First thing - hide all existing pages, except for message page
  -    for i:=1 to KMPanel_Main.ChildCount do
  -      if (KMPanel_Main.Childs[i] is TKMPanel) and (KMPanel_Main.Childs[i] <> KMPanel_Message) then
  -        KMPanel_Main.Childs[i].Hide;
  +    for i:=1 to Panel_Main.ChildCount do
  +      if (Panel_Main.Childs[i] is TKMPanel) and (Panel_Main.Childs[i] <> Panel_Message) then
  +        Panel_Main.Childs[i].Hide;
     //First thing - hide all existing pages
  -    for i:=1 to KMPanel_House.ChildCount do
  -      if KMPanel_House.Childs[i] is TKMPanel then
  -        KMPanel_House.Childs[i].Hide;
  +    for i:=1 to Panel_House.ChildCount do
  +      if Panel_House.Childs[i] is TKMPanel then
  +        Panel_House.Childs[i].Hide;
   
     //If Sender is one of 4 main buttons, then open the page, hide the buttons and show Return button
     Flip4MainButtons(false);
  -  if Sender=KMButtonMain[1] then begin
  +  if Sender=Button_Main[1] then begin
       Build_Fill(nil);
  -    KMPanel_Build.Show;
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(166);
  +    Panel_Build.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(166);
       Build_SelectRoad;
     end else
   
  -  if Sender=KMButtonMain[2] then begin
  -    KMPanel_Ratios.Show;
  -    SwitchPageRatios(KMButton_Ratios[1]); //Open 1st tab
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(167);
  +  if Sender=Button_Main[2] then begin
  +    Panel_Ratios.Show;
  +    SwitchPageRatios(Button_Ratios[1]); //Open 1st tab
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(167);
     end else
   
  -  if Sender=KMButtonMain[3] then begin
  +  if Sender=Button_Main[3] then begin
       Stats_Fill(nil);
  -    KMPanel_Stats.Show;
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(168);
  +    Panel_Stats.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(168);
     end else
   
  -  if (Sender=KMButtonMain[4]) or (Sender=KMButton_Quit_No) or
  -     ((Sender=KMButtonMain[5]) and (LastVisiblePage=KMPanel_Settings)) or
  -     ((Sender=KMButtonMain[5]) and (LastVisiblePage=KMPanel_Load)) or
  -     ((Sender=KMButtonMain[5]) and (LastVisiblePage=KMPanel_Save)) then begin
  +  if (Sender=Button_Main[4]) or (Sender=Button_Quit_No) or
  +     ((Sender=Button_Main[5]) and (LastVisiblePage=Panel_Settings)) or
  +     ((Sender=Button_Main[5]) and (LastVisiblePage=Panel_Load)) or
  +     ((Sender=Button_Main[5]) and (LastVisiblePage=Panel_Save)) then begin
       Menu_Fill(Sender); //Make sure updating happens before it is shown
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(170);
  -    KMPanel_Menu.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(170);
  +    Panel_Menu.Show;
     end else
   
  -  if Sender=KMButton_Menu_Save then begin
  -    KMPanel_Save.Show;
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(173);
  +  if Sender=Button_Menu_Save then begin
  +    Panel_Save.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(173);
     end else
   
  -  if Sender=KMButton_Menu_Load then begin
  -    KMPanel_Load.Show;
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(172);
  +  if Sender=Button_Menu_Load then begin
  +    Panel_Load.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(172);
     end else
   
  -  if Sender=KMButton_Menu_Settings then begin
  -    KMPanel_Settings.Show;
  -    KMLabel_MenuTitle.Caption:=fTextLibrary.GetTextString(179);
  +  if Sender=Button_Menu_Settings then begin
  +    Panel_Settings.Show;
  +    Label_MenuTitle.Caption:=fTextLibrary.GetTextString(179);
     end else
   
  -  if Sender=KMButton_Menu_Quit then begin
  -    KMPanel_Quit.Show;
  +  if Sender=Button_Menu_Quit then begin
  +    Panel_Quit.Show;
     end else
       //If Sender is anything else - then show all 4 buttons and hide Return button
       Flip4MainButtons(true);
   
     //Now process all other kinds of pages
  -  if Sender=KMPanel_Unit then begin
  +  if Sender=Panel_Unit then begin
       TKMPanel(Sender).Show;
     end else
   
  -  if Sender=KMPanel_House then begin
  +  if Sender=Panel_House then begin
       TKMPanel(Sender).Show;
     end;
   
  -  if Sender=KMPanel_House_Common then begin
  +  if Sender=Panel_House_Common then begin
       TKMPanel(Sender).Parent.Show;
       TKMPanel(Sender).Show;
     end else
   
  -  if Sender=KMPanel_House_School then begin
  +  if Sender=Panel_House_School then begin
       TKMPanel(Sender).Parent.Show;
       TKMPanel(Sender).Show;
     end else
   
  -  if Sender=KMPanel_HouseBarracks then begin
  +  if Sender=Panel_HouseBarracks then begin
       TKMPanel(Sender).Parent.Show;
       TKMPanel(Sender).Show;
     end else
   
  -  if Sender=KMPanel_HouseStore then begin
  +  if Sender=Panel_HouseStore then begin
       TKMPanel(Sender).Parent.Show;
       TKMPanel(Sender).Show;
     end;
  
positive.code:   UpdateMessageStack;
    fSoundLib.Play(sfx_MessageClose);
    ShownMessage := 0;
    KMPanel_Message.Hide;
  end;
  
  
  
negative.code: 
    with TKMHouse(fPlayers.Selected) do begin
      BuildingRepair := not BuildingRepair;
      if BuildingRepair then Button_House_Repair.TexID:=39
                        else Button_House_Repair.TexID:=40;
      if BuildingRepair then EnableRepair
                        else DisableRepair;
    end;
  