Changeset 105 for trunk/Forms/FormNew.pas
- Timestamp:
- Dec 9, 2024, 4:40:34 PM (13 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.pas
r103 r105 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 Game, FormEx;7 Spin, Game, FormEx, Math; 8 8 9 9 type … … 18 18 ComboBoxSize: TComboBox; 19 19 Label1: TLabel; 20 Label2: TLabel; 20 21 ScrollBox1: TScrollBox; 22 SpinEditDisabledTiles: TSpinEdit; 23 procedure ComboBoxSizeChange(Sender: TObject); 21 24 public 25 procedure UpdateInterface; 22 26 procedure Load(Game: TGame); 23 27 procedure Save(Game: TGame); … … 30 34 31 35 { TFormNew } 36 37 procedure TFormNew.ComboBoxSizeChange(Sender: TObject); 38 begin 39 UpdateInterface; 40 end; 41 42 procedure TFormNew.UpdateInterface; 43 begin 44 SpinEditDisabledTiles.MaxValue := ComboBoxSize.ItemIndex + 2; 45 end; 46 32 47 procedure TFormNew.Load(Game: TGame); 33 48 begin … … 35 50 CheckBoxUndoEnabled.Checked := Game.UndoEnabled; 36 51 CheckBoxRecordHistory.Checked := Game.RecordHistory; 52 SpinEditDisabledTiles.Value := Game.DisabledTilesCount; 53 UpdateInterface; 37 54 end; 38 55 … … 42 59 Game.UndoEnabled := CheckBoxUndoEnabled.Checked; 43 60 Game.RecordHistory := CheckBoxRecordHistory.Checked; 61 Game.DisabledTilesCount := SpinEditDisabledTiles.Value; 44 62 end; 45 63
Note:
See TracChangeset
for help on using the changeset viewer.