Ignore:
Timestamp:
Nov 17, 2021, 1:18:21 AM (2 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/NatStat.pas

    r352 r414  
    55
    66uses
    7   Protocol, ClientTools, Term, ScreenTools, BaseWin,
    8 
    9   LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,
    10   ButtonB, ButtonC, Menus, EOTButton;
     7  Protocol, ClientTools, Term, ScreenTools, BaseWin, LCLIntf, LCLType, SysUtils,
     8  Classes, Graphics, Controls, Forms, ButtonB, ButtonC, Menus, EOTButton;
    119
    1210type
     
    3230    procedure ScrollDownBtnClick(Sender: TObject);
    3331    procedure TellAIBtnClick(Sender: TObject);
    34 
    3532  public
    3633    procedure CheckAge;
    3734    procedure ShowNewContent(NewMode: integer; p: integer = -1);
    3835    procedure EcoChange;
    39 
    4036  protected
    4137    procedure OffscreenPaint; override;
    42 
    4338  private
    4439    pView, AgePrepared, LinesDown: integer;
     
    305300          Phrases.Lookup('FREXTINCT'));
    306301        LoweredTextOut(Canvas, -1, MainTexture, xAttrib, yAttrib + 28,
    307           TurnToString(CurrentReport.TurnOfCivilReport))
     302          TurnToString(CurrentReport.TurnOfCivilReport));
    308303      end
    309304      else
     
    320315        s := Phrases.Lookup('FRNOCONTACT');
    321316        LoweredTextOut(Canvas, -1, MainTexture,
    322           (ClientWidth - BiColorTextWidth(Canvas, s)) div 2, yRelation + 9, s)
     317          (ClientWidth - BiColorTextWidth(Canvas, s)) div 2, yRelation + 9, s);
    323318      end
    324319      else if ShowContact then
     
    379374          end;
    380375          inc(y);
    381         end
     376        end;
    382377      end;
    383378    end
     
    403398procedure TNatStatDlg.CloseBtnClick(Sender: TObject);
    404399begin
    405   Close
     400  Close;
    406401end;
    407402
     
    421416      begin
    422417        if MainScreen.ContactRefused(pView, 'FRANARCHY') then
    423           SmartUpdateContent
     418          SmartUpdateContent;
    424419      end
    425420      else
     
    427422  end
    428423  else
    429     Close
     424    Close;
    430425end;
    431426
     
    501496  end
    502497  else
    503     inherited
     498    inherited;
    504499end;
    505500
     
    510505    SelfReport.Government := MyRO.Government;
    511506    SelfReport.Money := MyRO.Money;
    512     SmartUpdateContent
    513   end
     507    SmartUpdateContent;
     508  end;
    514509end;
    515510
     
    520515    dec(LinesDown);
    521516    SmartUpdateContent;
    522   end
     517  end;
    523518end;
    524519
     
    529524    inc(LinesDown);
    530525    SmartUpdateContent;
    531   end
     526  end;
    532527end;
    533528
     
    540535  else
    541536    TellAIBtn.ButtonIndex := 2;
    542   SmartUpdateContent
     537  SmartUpdateContent;
    543538end;
    544539
Note: See TracChangeset for help on using the changeset viewer.