Ignore:
Timestamp:
Mar 25, 2019, 12:51:41 AM (6 years ago)
Author:
chronos
Message:
  • Modified: List and item forms for BuildingKind and Nation converted to generic forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormGameSystem.pas

    r289 r290  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ComCtrls, UGameSystem, UFormUnitKinds, UFormNations, UFormBuildingKinds;
     9  ComCtrls, UGameSystem, UFormUnitKinds,
     10  UFormList;
    1011
    1112type
     
    3738    FGameSystem: TGameSystem;
    3839    FormUnitKinds: TFormUnitKinds;
    39     FormNations: TFormNations;
    40     FormBuildingKinds: TFormBuildingKinds;
     40    FormNations: TFormList;
     41    FormBuildingKinds: TFormList;
    4142    procedure SetGameSystem(AValue: TGameSystem);
    4243  public
     
    9899  FormUnitKinds.Align := alClient;
    99100  FormUnitKinds.Visible := True;
    100   FormNations := TFormNations.Create(nil);
     101  FormNations := TFormList.Create(nil);
    101102  FormNations.ManualDock(TabSheetNations, nil, alClient);
    102103  FormNations.Align := alClient;
    103104  FormNations.Visible := True;
    104   FormBuildingKinds := TFormBuildingKinds.Create(nil);
     105  FormBuildingKinds := TFormList.Create(nil);
    105106  FormBuildingKinds.ManualDock(TabSheetBuildings, nil, alClient);
    106107  FormBuildingKinds.Align := alClient;
     
    126127  if Assigned(FGameSystem) then begin
    127128    FormUnitKinds.UnitKinds := nil;
    128     FormNations.Nations := nil;
    129     FormBuildingKinds.BuildingKinds := nil;
     129    FormNations.List := nil;
     130    FormBuildingKinds.List := nil;
    130131  end;
    131132  FGameSystem := AValue;
    132133  if Assigned(FGameSystem) then begin
    133134    FormUnitKinds.UnitKinds := GameSystem.UnitKinds;
    134     FormNations.Nations := GameSystem.Nations;
    135     FormBuildingKinds.BuildingKinds := GameSystem.BuildingKinds;
     135    FormNations.List := GameSystem.Nations;
     136    FormBuildingKinds.List := GameSystem.BuildingKinds;
    136137  end;
    137138end;
Note: See TracChangeset for help on using the changeset viewer.