Ignore:
Timestamp:
Sep 14, 2024, 11:02:08 AM (6 days ago)
Author:
chronos
Message:
  • Added: Allow to rename city with mouse right click on city caption in City screen.
  • Fixed: Do not overflow city name text in City screen.
  • Fixed: Repaint main screen after city and unit rename.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r612 r613  
    442442    procedure UpdateViews(UpdateCityScreen: Boolean = False);
    443443    function ContactRefused(P: Integer; Item: String): Boolean;
     444    procedure RepaintAll;
    444445    // Forms
    445446    property WondersDlg: TWondersDlg read GetWondersDlg;
     
    44064407                MessgText := Format(Phrases.Lookup(MsgItem), [CityName(ID)]);
    44074408                Kind := mkYesNo;
    4408                 // BigIcon:=29;
     4409                // BigIcon := 29;
    44094410                ShowModal;
    44104411                Zoom := ModalResult <> mrOK;
     
    47874788  MiniMapPaint;
    47884789  PanelPaint;
     4790end;
     4791
     4792procedure TMainScreen.RepaintAll;
     4793begin
     4794  RectInvalidate(0, TopBarHeight, Width, TopBarHeight + MapHeight);
     4795  MapValid := False;
     4796  PaintAll;
    47894797end;
    47904798
     
    83788386  ManagementArea.Top := TopBarHeight + MapHeight - Overlap + yPalace;
    83798387  ArrangeMidPanel;
    8380   if RepaintOnResize then begin
    8381     RectInvalidate(0, TopBarHeight, Width, TopBarHeight + MapHeight);
    8382     MapValid := False;
    8383     PaintAll;
    8384   end;
     8388  if RepaintOnResize then RepaintAll;
    83858389end;
    83868390
Note: See TracChangeset for help on using the changeset viewer.