Changeset 274 for trunk/Forms
- Timestamp:
- Feb 3, 2019, 8:32:20 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.pas
r273 r274 155 155 FormMove.TrackBarRepeat.Max := FormMove.SpinEditRepeat.MaxValue; 156 156 FormMove.TrackBarRepeat.Position := FormMove.SpinEditRepeat.Value; 157 158 FormMove.AllowChangeOnce := Client.Game.GameSystem.UnitsSplitMerge; 159 157 160 if Assigned(CellTo.MapCell.OneUnit) then 158 161 FormMove.DefendCount := CellTo.MapCell.OneUnit.Power -
trunk/Forms/UFormMove.pas
r272 r274 48 48 AttackCount: Integer; 49 49 ShowWinProbability: Boolean; 50 AllowChangeOnce: Boolean; 50 51 procedure UpdateView; 51 52 end; … … 102 103 SpinEditRepeat.SetFocus; 103 104 end else begin 104 SpinEditOnce.Enabled := True; 105 TrackBarOnce.Enabled := True; 106 SpinEditOnce.SetFocus; 105 SpinEditOnce.Enabled := AllowChangeOnce; 106 TrackBarOnce.Enabled := AllowChangeOnce; 107 ButtonOnceMax.Enabled := AllowChangeOnce; 108 ButtonOnceMin.Enabled := AllowChangeOnce; 109 if SpinEditOnce.Enabled then SpinEditOnce.SetFocus 110 else if SpinEditRepeat.Enabled then SpinEditRepeat.SetFocus 111 else ButtonOk.SetFocus; 107 112 end; 108 113 UpdateView; -
trunk/Forms/UFormNew.lfm
r273 r274 33 33 object Panel3: TPanel 34 34 Left = 0 35 Height = 65 535 Height = 652 36 36 Top = 0 37 Width = 7 3937 Width = 796 38 38 Align = alClient 39 39 BevelOuter = bvNone 40 ClientHeight = 65 541 ClientWidth = 7 3940 ClientHeight = 652 41 ClientWidth = 796 42 42 TabOrder = 0 43 43 object RadioButtonModeLocal: TRadioButton … … 103 103 object ListViewServers: TListView 104 104 Left = 26 105 Height = 42 3105 Height = 420 106 106 Top = 181 107 107 Width = 334 … … 131 131 Left = 27 132 132 Height = 31 133 Top = 61 6133 Top = 613 134 134 Width = 94 135 135 Action = AServerAdd … … 140 140 Left = 240 141 141 Height = 31 142 Top = 61 6142 Top = 613 143 143 Width = 94 144 144 Action = AServerRemove … … 149 149 Left = 136 150 150 Height = 30 151 Top = 61 6151 Top = 613 152 152 Width = 94 153 153 Action = AServerModify … … 326 326 object ComboBoxGridType: TComboBox 327 327 Left = 146 328 Height = 42328 Height = 38 329 329 Top = 104 330 330 Width = 208 … … 343 343 object ComboBoxMapShape: TComboBox 344 344 Left = 146 345 Height = 42345 Height = 38 346 346 Top = 144 347 347 Width = 208 … … 587 587 object ComboBoxWinObjective: TComboBox 588 588 Left = 224 589 Height = 42589 Height = 38 590 590 Top = 244 591 591 Width = 328 … … 702 702 TabOrder = 5 703 703 end 704 object CheckBoxUnitsSplitMerge: TCheckBox 705 Left = 336 706 Height = 30 707 Top = 101 708 Width = 231 709 Caption = 'Units can split or merge' 710 TabOrder = 6 711 end 712 object CheckBoxUnitsMoveImmediately: TCheckBox 713 Left = 336 714 Height = 30 715 Top = 141 716 Width = 234 717 Caption = 'Units move immediately' 718 TabOrder = 7 719 end 704 720 end 705 721 end -
trunk/Forms/UFormNew.pas
r273 r274 32 32 ButtonPlayerModify: TButton; 33 33 ButtonPlayerRemove: TButton; 34 CheckBoxUnitsSplitMerge: TCheckBox; 34 35 CheckBoxEmptyCellsNeutral: TCheckBox; 35 36 CheckBoxBridges: TCheckBox; … … 38 39 CheckBoxFogOfWar: TCheckBox; 39 40 CheckBoxSymetricMap: TCheckBox; 41 CheckBoxUnitsMoveImmediately: TCheckBox; 40 42 CheckBoxVoid: TCheckBox; 41 43 ComboBoxGridType: TComboBox; … … 360 362 SpinEditSpecialCells.Value := SpecialCaptureCellCount; 361 363 CheckBoxEmptyCellsNeutral.Checked := GameSystem.EmptyCellsNeutral; 364 CheckBoxUnitsSplitMerge.Checked := GameSystem.UnitsSplitMerge; 365 CheckBoxUnitsMoveImmediately.Checked := GameSystem.UnitsMoveImmediately; 362 366 end; 363 367 end; … … 389 393 SpecialCaptureCellCount := SpinEditSpecialCells.Value; 390 394 GameSystem.EmptyCellsNeutral := CheckBoxEmptyCellsNeutral.Checked; 395 GameSystem.UnitsSplitMerge := CheckBoxUnitsSplitMerge.Checked; 396 GameSystem.UnitsMoveImmediately := CheckBoxUnitsMoveImmediately.Checked; 391 397 end; 392 398 end;
Note:
See TracChangeset
for help on using the changeset viewer.