Changeset 36 for trunk/Forms
- Timestamp:
- Oct 13, 2019, 5:14:50 PM (5 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r31 r36 37 37 Action = Core.AComputer 38 38 end 39 object MenuItem 5: TMenuItem39 object MenuItemMovesHistory: TMenuItem 40 40 Action = Core.AHistory 41 41 end -
trunk/Forms/UFormMain.pas
r35 r36 19 19 MenuItem3: TMenuItem; 20 20 MenuItem4: TMenuItem; 21 MenuItem 5: TMenuItem;21 MenuItemMovesHistory: TMenuItem; 22 22 MenuItemTools: TMenuItem; 23 23 MenuItemNew: TMenuItem; … … 88 88 Core.PersistentForm1.Load(Self); 89 89 UpdateInterface; 90 if Core.Game.Board.GetEmptyTilesCount > Core.Game.Board.Size.X * Core.Game.Board.Size.Y - 2 then 91 Core.Game.New; 90 92 end; 91 93 … … 108 110 ToolsVisible: Boolean; 109 111 begin 112 MenuItemMovesHistory.Visible := Core.Game.RecordHistory; 110 113 ToolsVisible := False; 111 114 for I := 0 to MenuItemTools.Count - 1 do -
trunk/Forms/UFormNew.lfm
r31 r36 1 1 object FormNew: TFormNew 2 2 Left = 703 3 Height = 2 124 Top = 7485 Width = 4873 Height = 266 4 Top = 694 5 Width = 501 6 6 Caption = 'New game' 7 ClientHeight = 2 128 ClientWidth = 4877 ClientHeight = 266 8 ClientWidth = 501 9 9 DesignTimePPI = 144 10 10 OnClose = FormClose … … 45 45 Left = 120 46 46 Height = 38 47 Top = 15847 Top = 212 48 48 Width = 113 49 49 Anchors = [akLeft, akBottom] … … 55 55 Left = 280 56 56 Height = 38 57 Top = 15857 Top = 212 58 58 Width = 113 59 59 Anchors = [akLeft, akBottom] … … 70 70 TabOrder = 3 71 71 end 72 object CheckBoxRecordHistory: TCheckBox 73 Left = 16 74 Height = 30 75 Top = 88 76 Width = 210 77 Caption = 'Record moves history' 78 TabOrder = 4 79 end 72 80 end -
trunk/Forms/UFormNew.lrj
r28 r36 4 4 {"hash":77089212,"name":"tformnew.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 5 5 {"hash":1339,"name":"tformnew.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, 6 {"hash":260260820,"name":"tformnew.checkboxundoenabled.caption","sourcebytes":[85,110,100,111,32,101,110,97,98,108,101,100],"value":"Undo enabled"} 6 {"hash":260260820,"name":"tformnew.checkboxundoenabled.caption","sourcebytes":[85,110,100,111,32,101,110,97,98,108,101,100],"value":"Undo enabled"}, 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"} 7 8 ]} -
trunk/Forms/UFormNew.pas
r31 r36 16 16 ButtonCancel: TButton; 17 17 ButtonOk: TButton; 18 CheckBoxRecordHistory: TCheckBox; 18 19 CheckBoxUndoEnabled: TCheckBox; 19 20 ComboBoxSize: TComboBox; … … 60 61 ComboBoxSize.ItemIndex := Game.Board.Size.X - 2; 61 62 CheckBoxUndoEnabled.Checked := Game.UndoEnabled; 63 CheckBoxRecordHistory.Checked := Game.RecordHistory; 62 64 end; 63 65 … … 66 68 Game.Board.Size := Point(2 + ComboBoxSize.ItemIndex, 2 + ComboBoxSize.ItemIndex); 67 69 Game.UndoEnabled := CheckBoxUndoEnabled.Checked; 70 Game.RecordHistory := CheckBoxRecordHistory.Checked; 68 71 end; 69 72 -
trunk/Forms/UFormSettings.pas
r15 r36 62 62 Core.Translator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 63 63 end; 64 Close;64 ModalResult := mrOk; 65 65 end; 66 66
Note:
See TracChangeset
for help on using the changeset viewer.