Changeset 291 for trunk/Forms
- Timestamp:
- Mar 26, 2019, 1:16:27 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r274 r291 199 199 end else begin 200 200 {$ifdef WINDOWS} 201 PaintBox1.Canvas.Brush.Color := BackgroundColor; //clBackground; //PaintBox1.GetColorResolvingParent;201 PaintBox1.Canvas.Brush.Color := MapBackgroundColor; //clBackground; //PaintBox1.GetColorResolvingParent; 202 202 PaintBox1.Canvas.FillRect(0, 0, PaintBox1.Width, PaintBox1.Height); 203 203 {$endif} -
trunk/Forms/UFormGameSystem.lfm
r289 r291 1 1 object FormGameSystem: TFormGameSystem 2 2 Left = 571 3 Height = 5783 Height = 482 4 4 Top = 364 5 Width = 7815 Width = 651 6 6 Caption = 'Game system' 7 ClientHeight = 5788 ClientWidth = 7819 DesignTimePPI = 1 447 ClientHeight = 482 8 ClientWidth = 651 9 DesignTimePPI = 120 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate … … 14 14 LCLVersion = '2.0.0.4' 15 15 object ButtonSave: TButton 16 Left = 1 6017 Height = 3 818 Top = 52819 Width = 11316 Left = 133 17 Height = 32 18 Top = 440 19 Width = 94 20 20 Anchors = [akLeft, akBottom] 21 21 Caption = 'Save' 22 22 OnClick = ButtonSaveClick 23 ParentFont = False 23 24 TabOrder = 0 24 25 end 25 26 object ButtonLoad: TButton 26 Left = 2 427 Height = 3 828 Top = 52829 Width = 11327 Left = 20 28 Height = 32 29 Top = 440 30 Width = 94 30 31 Anchors = [akLeft, akBottom] 31 32 Caption = 'Load' 32 33 OnClick = ButtonLoadClick 34 ParentFont = False 33 35 TabOrder = 1 34 36 end 35 37 object ButtonCancel: TButton 36 Left = 50437 Height = 3 838 Top = 52839 Width = 11338 Left = 420 39 Height = 32 40 Top = 440 41 Width = 94 40 42 Anchors = [akRight, akBottom] 41 43 Caption = 'Cancel' 42 44 ModalResult = 2 45 ParentFont = False 43 46 TabOrder = 2 44 47 end 45 48 object ButtonOk: TButton 46 Left = 64747 Height = 3 848 Top = 52849 Width = 11349 Left = 539 50 Height = 32 51 Top = 440 52 Width = 94 50 53 Anchors = [akRight, akBottom] 51 54 Caption = 'OK' 52 55 ModalResult = 1 56 ParentFont = False 53 57 TabOrder = 3 54 58 end 55 59 object PageControl1: TPageControl 56 Left = 1 657 Height = 4 9658 Top = 1 659 Width = 74460 Left = 13 61 Height = 414 62 Top = 13 63 Width = 620 60 64 ActivePage = TabSheetBuildings 61 65 Anchors = [akTop, akLeft, akRight, akBottom] 66 ParentFont = False 62 67 TabIndex = 3 63 68 TabOrder = 4 … … 66 71 ClientHeight = 456 67 72 ClientWidth = 734 73 ParentFont = False 68 74 object CheckBoxEmptyCellsNeutral: TCheckBox 69 Left = 1 675 Left = 13 70 76 Height = 30 71 Top = 1 677 Top = 13 72 78 Width = 362 73 79 Caption = 'Set cells without player units as neutral' 80 ParentFont = False 74 81 TabOrder = 0 75 82 end 76 83 object CheckBoxUnitsSplitMerge: TCheckBox 77 Left = 1 684 Left = 13 78 85 Height = 30 79 Top = 5586 Top = 46 80 87 Width = 231 81 88 Caption = 'Units can split or merge' 89 ParentFont = False 82 90 TabOrder = 1 83 91 end 84 92 object CheckBoxUnitsMoveImmediately: TCheckBox 85 Left = 1 693 Left = 13 86 94 Height = 30 87 Top = 9595 Top = 79 88 96 Width = 234 89 97 Caption = 'Units move immediately' 98 ParentFont = False 90 99 TabOrder = 2 91 100 end … … 93 102 object TabSheetUnits: TTabSheet 94 103 Caption = 'Units' 104 ParentFont = False 95 105 end 96 106 object TabSheetNations: TTabSheet 97 107 Caption = 'Nations' 108 ParentFont = False 98 109 end 99 110 object TabSheetBuildings: TTabSheet 100 111 Caption = 'Buildings' 112 ParentFont = False 101 113 end 102 114 end 103 115 object OpenDialog1: TOpenDialog 104 left = 440105 top = 1 60116 left = 367 117 top = 133 106 118 end 107 119 object SaveDialog1: TSaveDialog 108 left = 232109 top = 1 60120 left = 193 121 top = 133 110 122 end 111 123 end -
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; -
trunk/Forms/UFormItem.pas
r290 r291 79 79 InitControls; 80 80 LoadData(Item); 81 Caption := Item.GetClass SysName;81 Caption := Item.GetClassName; 82 82 end else begin 83 83 DataControls.Clear; … … 157 157 NewControl := TCheckBox.Create(nil); 158 158 end else raise Exception.Create('Unsupported type ' + IntToStr(Integer(DataType))); 159 NewControl.Left := 1 00;159 NewControl.Left := 150; 160 160 NewControl.Top := Y; 161 161 NewControl.Parent := Self; 162 162 Core.CoolTranslator1.TranslateComponent(NewControl); 163 Core.ThemeManager1.ApplyTheme(NewControl); 163 164 NewControl.Visible := True; 164 165 DataControls.Add(NewControl);
Note:
See TracChangeset
for help on using the changeset viewer.