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/Select.pas

    r363 r431  
    7474    // -2=empty, -1=ambiguous, other=only choice
    7575    procedure OffscreenPaint; override;
    76     procedure ShowNewContent(NewMode: integer; ListKind: TListKind);
    77     procedure ShowNewContent_CityProject(NewMode, cix: integer);
    78     procedure ShowNewContent_MilReport(NewMode, p: integer);
     76    procedure ShowNewContent(NewMode: TWindowMode; ListKind: TListKind);
     77    procedure ShowNewContent_CityProject(NewMode: TWindowMode; cix: integer);
     78    procedure ShowNewContent_MilReport(NewMode: TWindowMode; p: integer);
    7979    procedure EcoChange;
    8080    procedure TechChange;
     
    928928        kModels, kChooseModel:
    929929          if lix <> mixAll then
    930             UnitStatDlg.ShowNewContent_OwnModel(FWindowMode or
    931               wmPersistent, lix);
     930            UnitStatDlg.ShowNewContent_OwnModel(wmPersistent, lix);
    932931        kEModels:
    933           UnitStatDlg.ShowNewContent_EnemyModel(FWindowMode or wmPersistent,
     932          UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent,
    934933            code[1, sb.Position + Sel]);
    935934        kAllEModels, kChooseEModel:
    936935          if lix <> mixAll then
    937             UnitStatDlg.ShowNewContent_EnemyModel(FWindowMode or
    938               wmPersistent, lix);
     936            UnitStatDlg.ShowNewContent_EnemyModel(wmPersistent, lix);
    939937        kAdvance, kFarAdvance, kScience, kChooseTech, kChooseETech, kStealTech:
    940938          if lix = adMilitary then
    941             HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText,
     939            HelpDlg.ShowNewContent(wmPersistent, hkText,
    942940              HelpDlg.TextIndex('MILRES'))
    943941          else if lix < adMilitary then
    944             HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkAdv, lix);
     942            HelpDlg.ShowNewContent(wmPersistent, hkAdv, lix);
    945943        kProject:
    946944          if lix = cpImp + imTrGoods then
    947             HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkText,
     945            HelpDlg.ShowNewContent(wmPersistent, hkText,
    948946              HelpDlg.TextIndex('TRADINGGOODS'))
    949947          else if lix and (cpImp + cpType) = 0 then
    950             UnitStatDlg.ShowNewContent_OwnModel(FWindowMode or wmPersistent,
     948            UnitStatDlg.ShowNewContent_OwnModel(wmPersistent,
    951949              lix and cpIndex)
    952950          else if (lix and cpType = 0) and (lix <> cpImp + imTrGoods) then
    953             HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkImp,
     951            HelpDlg.ShowNewContent(wmPersistent, hkImp,
    954952              lix and cpIndex);
    955953        kGov:
    956           HelpDlg.ShowNewContent(FWindowMode or wmPersistent, hkMisc,
     954          HelpDlg.ShowNewContent(wmPersistent, hkMisc,
    957955            miscGovList);
    958956        kShipPart, kEShipPart:
     
    16551653end;
    16561654
    1657 procedure TListDlg.ShowNewContent(NewMode: integer; ListKind: TListKind);
     1655procedure TListDlg.ShowNewContent(NewMode: TWindowMode; ListKind: TListKind);
    16581656var
    16591657  i: integer;
     
    17401738end; // ShowNewContent
    17411739
    1742 procedure TListDlg.ShowNewContent_CityProject(NewMode, cix: integer);
     1740procedure TListDlg.ShowNewContent_CityProject(NewMode: TWindowMode; cix: integer);
    17431741begin
    17441742  cixProject := cix;
     
    17461744end;
    17471745
    1748 procedure TListDlg.ShowNewContent_MilReport(NewMode, p: integer);
     1746procedure TListDlg.ShowNewContent_MilReport(NewMode: TWindowMode; p: integer);
    17491747begin
    17501748  pView := p;
Note: See TracChangeset for help on using the changeset viewer.