Changeset 289 for trunk/Forms
- Timestamp:
- Mar 24, 2019, 11:15:07 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGameSystem.lfm
r283 r289 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = ' 1.8.4.0'14 LCLVersion = '2.0.0.4' 15 15 object ButtonSave: TButton 16 16 Left = 160 … … 58 58 Top = 16 59 59 Width = 744 60 ActivePage = TabSheet Nations60 ActivePage = TabSheetBuildings 61 61 Anchors = [akTop, akLeft, akRight, akBottom] 62 TabIndex = 262 TabIndex = 3 63 63 TabOrder = 4 64 64 object TabSheetGeneral: TTabSheet … … 97 97 Caption = 'Nations' 98 98 end 99 object TabSheetBuildings: TTabSheet 100 Caption = 'Buildings' 101 end 99 102 end 100 103 object OpenDialog1: TOpenDialog -
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.