Changeset 289 for trunk/Forms/UFormGameSystem.pas
- Timestamp:
- Mar 24, 2019, 11:15:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGameSystem.pas
r284 r289 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UGameSystem, UFormUnitKinds, UFormNations ;9 ComCtrls, UGameSystem, UFormUnitKinds, UFormNations, UFormBuildingKinds; 10 10 11 11 type … … 24 24 PageControl1: TPageControl; 25 25 SaveDialog1: TSaveDialog; 26 TabSheetBuildings: TTabSheet; 26 27 TabSheetNations: TTabSheet; 27 28 TabSheetGeneral: TTabSheet; … … 37 38 FormUnitKinds: TFormUnitKinds; 38 39 FormNations: TFormNations; 40 FormBuildingKinds: TFormBuildingKinds; 39 41 procedure SetGameSystem(AValue: TGameSystem); 40 42 public … … 100 102 FormNations.Align := alClient; 101 103 FormNations.Visible := True; 104 FormBuildingKinds := TFormBuildingKinds.Create(nil); 105 FormBuildingKinds.ManualDock(TabSheetBuildings, nil, alClient); 106 FormBuildingKinds.Align := alClient; 107 FormBuildingKinds.Visible := True; 102 108 end; 103 109 … … 107 113 FreeAndNil(FormNations); 108 114 FreeAndNil(FormUnitKinds); 115 FreeAndNil(FormBuildingKinds); 109 116 end; 110 117 … … 120 127 FormUnitKinds.UnitKinds := nil; 121 128 FormNations.Nations := nil; 129 FormBuildingKinds.BuildingKinds := nil; 122 130 end; 123 131 FGameSystem := AValue; … … 125 133 FormUnitKinds.UnitKinds := GameSystem.UnitKinds; 126 134 FormNations.Nations := GameSystem.Nations; 135 FormBuildingKinds.BuildingKinds := GameSystem.BuildingKinds; 127 136 end; 128 137 end; … … 138 147 FormUnitKinds.UpdateList; 139 148 FormUnitKinds.UpdateInterface; 149 FormBuildingKinds.UpdateList; 150 FormBuildingKinds.UpdateInterface; 140 151 Caption := ExtractFileName(Self.GameSystem.FileName) + ' - ' + SGameSystem; 141 152 end;
Note:
See TracChangeset
for help on using the changeset viewer.