Ignore:
Timestamp:
Apr 28, 2022, 10:40:37 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Changed WindowMode numerical constants to enumeration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Enhance.pas

    r350 r431  
    3939    NoMap: TIsoMap;
    4040  public
    41     procedure ShowNewContent(NewMode: integer; TerrType: integer = -1);
     41    procedure ShowNewContent(NewMode: TWindowMode; TerrType: integer = -1);
    4242  protected
    4343    Page: integer;
     
    117117end;
    118118
    119 procedure TEnhanceDlg.ShowNewContent(NewMode, TerrType: integer);
     119procedure TEnhanceDlg.ShowNewContent(NewMode: TWindowMode; TerrType: integer);
    120120begin
    121121  if (TerrType < fGrass) or (TerrType > fMountains) then
     
    384384  ShortCut := KeyToShortCut(Key, Shift);
    385385  if BHelp.Test(ShortCut) then
    386     HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText,
     386    HelpDlg.ShowNewContent(WindowModePersistent(FWindowMode), hkText,
    387387      HelpDlg.TextIndex('MACRO'))
    388388end;
Note: See TracChangeset for help on using the changeset viewer.