Changeset 166 for trunk/LocalPlayer


Ignore:
Timestamp:
Jun 14, 2019, 11:16:47 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Moved BaseWin unit to CevoPackages as it contains classes which need to be registered design-time class.
Location:
trunk/LocalPlayer
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Help.pas

    r89 r166  
    8989    procedure line(ca: TCanvas; i: integer; lit: boolean);
    9090    procedure Prepare(sbPos: integer = 0);
     91    procedure ShowNewContentProcExecute(NewMode: Integer; HelpContext: string);
    9192    procedure WaterSign(x0, y0, iix: integer);
    9293    procedure Search(SearchString: string);
     
    234235  SearchContent := '';
    235236  nHist := -1;
     237  ShowNewContentProc := ShowNewContentProcExecute;
     238end;
     239
     240procedure THelpDlg.ShowNewContentProcExecute(NewMode: Integer;
     241  HelpContext: string);
     242begin
     243  HelpDlg.ShowNewContent(NewMode, hkText,
     244    HelpDlg.TextIndex(HelpContext))
    236245end;
    237246
     
    243252procedure THelpDlg.FormDestroy(Sender: TObject);
    244253begin
     254  ShowNewContentProc := nil;
    245255  FreeAndNil(sb);
    246256  FreeAndNil(MainText);
  • trunk/LocalPlayer/Term.pas

    r155 r166  
    34083408  i, j: integer;
    34093409begin
     3410  MainFormKeyDown := FormKeyDown;
    34103411  BaseWin.CreateOffscreen(Offscreen);
    34113412
     
    35363537procedure TMainScreen.FormDestroy(Sender: TObject);
    35373538var
    3538   i: integer;
    3539 begin
     3539  I: Integer;
     3540begin
     3541  MainFormKeyDown := nil;
    35403542  FreeAndNil(sb);
    35413543  FreeAndNil(TopBar);
     
    35433545  FreeAndNil(Buffer);
    35443546  FreeAndNil(Panel);
    3545   for i := 0 to nPl - 1 do
     3547  for I := 0 to nPl - 1 do
    35463548    if AILogo[i] <> nil then
    3547       FreeAndNil(AILogo[i]);
     3549      FreeAndNil(AILogo[I]);
    35483550  FreeAndNil(Offscreen);
    35493551end;
Note: See TracChangeset for help on using the changeset viewer.