Ignore:
Timestamp:
Mar 26, 2019, 1:16:27 PM (6 years ago)
Author:
chronos
Message:
  • Modified: UnitKind list and items converted to general item list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormGameSystem.pas

    r290 r291  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ComCtrls, UGameSystem, UFormUnitKinds,
    10   UFormList;
     9  ComCtrls, UGameSystem, UFormList;
    1110
    1211type
     
    3736  private
    3837    FGameSystem: TGameSystem;
    39     FormUnitKinds: TFormUnitKinds;
     38    FormUnitKinds: TFormList;
    4039    FormNations: TFormList;
    4140    FormBuildingKinds: TFormList;
     
    9594  Core.ThemeManager1.UseTheme(Self);
    9695  Core.CoolTranslator1.TranslateComponentRecursive(Self);
    97   FormUnitKinds := TFormUnitKinds.Create(nil);
     96  FormUnitKinds := TFormList.Create(nil);
    9897  FormUnitKinds.ManualDock(TabSheetUnits, nil, alClient);
    9998  FormUnitKinds.Align := alClient;
     
    126125  if FGameSystem = AValue then Exit;
    127126  if Assigned(FGameSystem) then begin
    128     FormUnitKinds.UnitKinds := nil;
     127    FormUnitKinds.List := nil;
    129128    FormNations.List := nil;
    130129    FormBuildingKinds.List := nil;
     
    132131  FGameSystem := AValue;
    133132  if Assigned(FGameSystem) then begin
    134     FormUnitKinds.UnitKinds := GameSystem.UnitKinds;
     133    FormUnitKinds.List := GameSystem.UnitKinds;
    135134    FormNations.List := GameSystem.Nations;
    136135    FormBuildingKinds.List := GameSystem.BuildingKinds;
Note: See TracChangeset for help on using the changeset viewer.