Changeset 291 for trunk/Forms/UFormGameSystem.pas
- Timestamp:
- Mar 26, 2019, 1:16:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGameSystem.pas
r290 r291 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UGameSystem, UFormUnitKinds, 10 UFormList; 9 ComCtrls, UGameSystem, UFormList; 11 10 12 11 type … … 37 36 private 38 37 FGameSystem: TGameSystem; 39 FormUnitKinds: TForm UnitKinds;38 FormUnitKinds: TFormList; 40 39 FormNations: TFormList; 41 40 FormBuildingKinds: TFormList; … … 95 94 Core.ThemeManager1.UseTheme(Self); 96 95 Core.CoolTranslator1.TranslateComponentRecursive(Self); 97 FormUnitKinds := TForm UnitKinds.Create(nil);96 FormUnitKinds := TFormList.Create(nil); 98 97 FormUnitKinds.ManualDock(TabSheetUnits, nil, alClient); 99 98 FormUnitKinds.Align := alClient; … … 126 125 if FGameSystem = AValue then Exit; 127 126 if Assigned(FGameSystem) then begin 128 FormUnitKinds. UnitKinds:= nil;127 FormUnitKinds.List := nil; 129 128 FormNations.List := nil; 130 129 FormBuildingKinds.List := nil; … … 132 131 FGameSystem := AValue; 133 132 if Assigned(FGameSystem) then begin 134 FormUnitKinds. UnitKinds:= GameSystem.UnitKinds;133 FormUnitKinds.List := GameSystem.UnitKinds; 135 134 FormNations.List := GameSystem.Nations; 136 135 FormBuildingKinds.List := GameSystem.BuildingKinds;
Note:
See TracChangeset
for help on using the changeset viewer.