Changeset 106 for trunk/Forms/FormNew.pas
- Timestamp:
- Dec 9, 2024, 8:54:41 PM (13 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.pas
r105 r106 19 19 Label1: TLabel; 20 20 Label2: TLabel; 21 Label3: TLabel; 21 22 ScrollBox1: TScrollBox; 22 23 SpinEditDisabledTiles: TSpinEdit; 24 SpinEditUnmergeableTiles: TSpinEdit; 23 25 procedure ComboBoxSizeChange(Sender: TObject); 24 26 public … … 41 43 42 44 procedure TFormNew.UpdateInterface; 45 var 46 MaxDisabledTiles: Integer; 43 47 begin 44 SpinEditDisabledTiles.MaxValue := ComboBoxSize.ItemIndex + 2; 48 MaxDisabledTiles := ComboBoxSize.ItemIndex + 2; 49 MaxDisabledTiles := MaxDisabledTiles * MaxDisabledTiles - 3; 50 SpinEditDisabledTiles.MaxValue := MaxDisabledTiles; 51 SpinEditUnmergeableTiles.MaxValue := MaxDisabledTiles; 45 52 end; 46 53 … … 51 58 CheckBoxRecordHistory.Checked := Game.RecordHistory; 52 59 SpinEditDisabledTiles.Value := Game.DisabledTilesCount; 60 SpinEditUnmergeableTiles.Value := Game.UnmergeableTilesCount; 53 61 UpdateInterface; 54 62 end; … … 60 68 Game.RecordHistory := CheckBoxRecordHistory.Checked; 61 69 Game.DisabledTilesCount := SpinEditDisabledTiles.Value; 70 Game.UnmergeableTilesCount := SpinEditUnmergeableTiles.Value; 62 71 end; 63 72
Note:
See TracChangeset
for help on using the changeset viewer.