Changeset 290 for trunk/Forms
- Timestamp:
- Mar 25, 2019, 12:51:41 AM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 added
- 8 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGameSystem.pas
r289 r290 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UGameSystem, UFormUnitKinds, UFormNations, UFormBuildingKinds; 9 ComCtrls, UGameSystem, UFormUnitKinds, 10 UFormList; 10 11 11 12 type … … 37 38 FGameSystem: TGameSystem; 38 39 FormUnitKinds: TFormUnitKinds; 39 FormNations: TForm Nations;40 FormBuildingKinds: TForm BuildingKinds;40 FormNations: TFormList; 41 FormBuildingKinds: TFormList; 41 42 procedure SetGameSystem(AValue: TGameSystem); 42 43 public … … 98 99 FormUnitKinds.Align := alClient; 99 100 FormUnitKinds.Visible := True; 100 FormNations := TForm Nations.Create(nil);101 FormNations := TFormList.Create(nil); 101 102 FormNations.ManualDock(TabSheetNations, nil, alClient); 102 103 FormNations.Align := alClient; 103 104 FormNations.Visible := True; 104 FormBuildingKinds := TForm BuildingKinds.Create(nil);105 FormBuildingKinds := TFormList.Create(nil); 105 106 FormBuildingKinds.ManualDock(TabSheetBuildings, nil, alClient); 106 107 FormBuildingKinds.Align := alClient; … … 126 127 if Assigned(FGameSystem) then begin 127 128 FormUnitKinds.UnitKinds := nil; 128 FormNations. Nations:= nil;129 FormBuildingKinds. BuildingKinds:= nil;129 FormNations.List := nil; 130 FormBuildingKinds.List := nil; 130 131 end; 131 132 FGameSystem := AValue; 132 133 if Assigned(FGameSystem) then begin 133 134 FormUnitKinds.UnitKinds := GameSystem.UnitKinds; 134 FormNations. Nations:= GameSystem.Nations;135 FormBuildingKinds. BuildingKinds:= GameSystem.BuildingKinds;135 FormNations.List := GameSystem.Nations; 136 FormBuildingKinds.List := GameSystem.BuildingKinds; 136 137 end; 137 138 end;
Note:
See TracChangeset
for help on using the changeset viewer.