Changeset 106 for trunk/Forms
- Timestamp:
- Dec 9, 2024, 8:54:41 PM (6 weeks ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.lfm
r105 r106 35 35 Width = 497 36 36 HorzScrollBar.Page = 435 37 VertScrollBar.Page = 16037 VertScrollBar.Page = 211 38 38 Anchors = [akTop, akLeft, akRight, akBottom] 39 39 ClientHeight = 245 … … 90 90 Left = 16 91 91 Height = 26 92 Top = 12 292 Top = 128 93 93 Width = 119 94 94 Caption = 'Disabled tiles:' … … 102 102 TabOrder = 3 103 103 end 104 object Label3: TLabel 105 Left = 16 106 Height = 26 107 Top = 176 108 Width = 160 109 Caption = 'Unmergeable tiles:' 110 end 111 object SpinEditUnmergeableTiles: TSpinEdit 112 Left = 320 113 Height = 43 114 Top = 168 115 Width = 115 116 MaxValue = 10000 117 TabOrder = 4 118 end 104 119 end 105 120 end -
trunk/Forms/FormNew.lrj
r105 r106 6 6 {"hash":260260820,"name":"tformnew.checkboxundoenabled.caption","sourcebytes":[85,110,100,111,32,101,110,97,98,108,101,100],"value":"Undo enabled"}, 7 7 {"hash":146862089,"name":"tformnew.checkboxrecordhistory.caption","sourcebytes":[82,101,99,111,114,100,32,109,111,118,101,115,32,104,105,115,116,111,114,121],"value":"Record moves history"}, 8 {"hash":248990730,"name":"tformnew.label2.caption","sourcebytes":[68,105,115,97,98,108,101,100,32,116,105,108,101,115,58],"value":"Disabled tiles:"} 8 {"hash":248990730,"name":"tformnew.label2.caption","sourcebytes":[68,105,115,97,98,108,101,100,32,116,105,108,101,115,58],"value":"Disabled tiles:"}, 9 {"hash":266265242,"name":"tformnew.label3.caption","sourcebytes":[85,110,109,101,114,103,101,97,98,108,101,32,116,105,108,101,115,58],"value":"Unmergeable tiles:"} 9 10 ]} -
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.