Changeset 89 for trunk/Forms
- Timestamp:
- Jun 7, 2024, 4:35:46 PM (5 months ago)
- Location:
- trunk/Forms
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.lfm
r86 r89 1 1 object FormNew: TFormNew 2 Left = 7033 Height = 2664 Top = 6945 Width = 5 012 Left = 1029 3 Height = 322 4 Top = 587 5 Width = 514 6 6 Caption = 'New game' 7 ClientHeight = 2668 ClientWidth = 5 017 ClientHeight = 322 8 ClientWidth = 514 9 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 LCLVersion = '3.4.0.0' 12 object Label1: TLabel 13 Left = 16 14 Height = 26 15 Top = 16 16 Width = 93 17 Caption = 'Board size:' 18 ParentColor = False 19 end 20 object ComboBoxSize: TComboBox 21 Left = 173 12 object ButtonCancel: TButton 13 Left = 255 22 14 Height = 38 23 Top = 11 24 Width = 262 25 ItemHeight = 0 26 Items.Strings = ( 27 '2 x 2' 28 '3 x 3' 29 '4 x 4' 30 '5 x 5' 31 '6 x 6' 32 '7 x 7' 33 '8 x 8' 34 '9 x 9' 35 '10 x 10 ' 36 '11 x 11' 37 '12 x 12' 38 ) 39 Style = csDropDownList 15 Top = 271 16 Width = 116 17 Anchors = [akRight, akBottom] 18 Caption = 'Cancel' 19 ModalResult = 2 40 20 TabOrder = 0 41 21 end 42 object Button Cancel: TButton43 Left = 12022 object ButtonOk: TButton 23 Left = 391 44 24 Height = 38 45 Top = 2 1246 Width = 11 347 Anchors = [ak Left, akBottom]48 Caption = ' Cancel'49 ModalResult = 225 Top = 271 26 Width = 116 27 Anchors = [akRight, akBottom] 28 Caption = 'OK' 29 ModalResult = 1 50 30 TabOrder = 1 51 31 end 52 object ButtonOk: TButton 53 Left = 280 54 Height = 38 55 Top = 212 56 Width = 113 57 Anchors = [akLeft, akBottom] 58 Caption = 'OK' 59 ModalResult = 1 32 object ScrollBox1: TScrollBox 33 Left = 8 34 Height = 247 35 Top = 8 36 Width = 497 37 HorzScrollBar.Page = 435 38 VertScrollBar.Page = 214 39 Anchors = [akTop, akLeft, akRight, akBottom] 40 ClientHeight = 245 41 ClientWidth = 495 60 42 TabOrder = 2 61 end 62 object CheckBoxUndoEnabled: TCheckBox 63 Left = 16 64 Height = 30 65 Top = 56 66 Width = 145 67 Caption = 'Undo enabled' 68 TabOrder = 3 69 end 70 object CheckBoxRecordHistory: TCheckBox 71 Left = 16 72 Height = 30 73 Top = 88 74 Width = 209 75 Caption = 'Record moves history' 76 TabOrder = 4 77 end 78 object Label2: TLabel 79 Left = 16 80 Height = 26 81 Top = 125 82 Width = 75 83 Caption = 'Tile skin:' 84 ParentColor = False 85 end 86 object ComboBoxSkin: TComboBox 87 Left = 173 88 Height = 38 89 Top = 120 90 Width = 262 91 ItemHeight = 0 92 Items.Strings = ( 93 '' 94 ) 95 Style = csDropDownList 96 TabOrder = 5 43 object Label1: TLabel 44 Left = 16 45 Height = 26 46 Top = 16 47 Width = 93 48 Caption = 'Board size:' 49 ParentColor = False 50 end 51 object ComboBoxSize: TComboBox 52 Left = 173 53 Height = 38 54 Top = 11 55 Width = 262 56 ItemHeight = 0 57 Items.Strings = ( 58 '2 x 2' 59 '3 x 3' 60 '4 x 4' 61 '5 x 5' 62 '6 x 6' 63 '7 x 7' 64 '8 x 8' 65 '9 x 9' 66 '10 x 10 ' 67 '11 x 11' 68 '12 x 12' 69 ) 70 Style = csDropDownList 71 TabOrder = 0 72 end 73 object CheckBoxUndoEnabled: TCheckBox 74 Left = 16 75 Height = 30 76 Top = 56 77 Width = 145 78 Caption = 'Undo enabled' 79 TabOrder = 1 80 end 81 object CheckBoxRecordHistory: TCheckBox 82 Left = 16 83 Height = 30 84 Top = 88 85 Width = 209 86 Caption = 'Record moves history' 87 TabOrder = 2 88 end 89 object Label2: TLabel 90 Left = 16 91 Height = 26 92 Top = 133 93 Width = 75 94 Caption = 'Tile skin:' 95 ParentColor = False 96 end 97 object ComboBoxSkin: TComboBox 98 Left = 173 99 Height = 38 100 Top = 128 101 Width = 262 102 ItemHeight = 0 103 Items.Strings = ( 104 '' 105 ) 106 Style = csDropDownList 107 TabOrder = 3 108 end 109 object Label3: TLabel 110 Left = 16 111 Height = 26 112 Top = 181 113 Width = 113 114 Caption = 'Color palette:' 115 ParentColor = False 116 end 117 object ComboBoxColorPalette: TComboBox 118 Left = 173 119 Height = 38 120 Top = 176 121 Width = 262 122 ItemHeight = 0 123 Items.Strings = ( 124 'RGB' 125 'RBG' 126 'GRB' 127 'GBR' 128 'BGR' 129 'BRG' 130 ) 131 Style = csDropDownList 132 TabOrder = 4 133 end 97 134 end 98 135 end -
trunk/Forms/FormNew.lrj
r86 r89 1 1 {"version":1,"strings":[ 2 2 {"hash":211211125,"name":"tformnew.caption","sourcebytes":[78,101,119,32,103,97,109,101],"value":"New game"}, 3 {"hash":103901194,"name":"tformnew.label1.caption","sourcebytes":[66,111,97,114,100,32,115,105,122,101,58],"value":"Board size:"},4 3 {"hash":77089212,"name":"tformnew.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 5 4 {"hash":1339,"name":"tformnew.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, 5 {"hash":103901194,"name":"tformnew.label1.caption","sourcebytes":[66,111,97,114,100,32,115,105,122,101,58],"value":"Board size:"}, 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":125677626,"name":"tformnew.label2.caption","sourcebytes":[84,105,108,101,32,115,107,105,110,58],"value":"Tile skin:"} 8 {"hash":125677626,"name":"tformnew.label2.caption","sourcebytes":[84,105,108,101,32,115,107,105,110,58],"value":"Tile skin:"}, 9 {"hash":35322186,"name":"tformnew.label3.caption","sourcebytes":[67,111,108,111,114,32,112,97,108,101,116,116,101,58],"value":"Color palette:"} 9 10 ]} -
trunk/Forms/FormNew.pas
r86 r89 16 16 CheckBoxRecordHistory: TCheckBox; 17 17 CheckBoxUndoEnabled: TCheckBox; 18 ComboBoxColorPalette: TComboBox; 18 19 ComboBoxSize: TComboBox; 19 20 ComboBoxSkin: TComboBox; 20 21 Label1: TLabel; 21 22 Label2: TLabel; 23 Label3: TLabel; 24 ScrollBox1: TScrollBox; 22 25 procedure FormCreate(Sender: TObject); 23 26 public … … 31 34 {$R *.lfm} 32 35 33 uses34 Core;35 36 36 { TFormNew } 37 37 38 38 procedure TFormNew.FormCreate(Sender: TObject); 39 39 var 40 I: TTileSkin; 40 TileSkin: TTileSkin; 41 ColorPalette: TColorPalette; 41 42 begin 42 43 ComboBoxSkin.Items.BeginUpdate; 43 44 try 44 45 ComboBoxSkin.Items.Clear; 45 for I:= Low(SkinText) to High(SkinText) do46 ComboBoxSkin.Items.Add(SkinText[ I]);46 for TileSkin := Low(SkinText) to High(SkinText) do 47 ComboBoxSkin.Items.Add(SkinText[TileSkin]); 47 48 finally 48 49 ComboBoxSkin.Items.EndUpdate; 50 end; 51 52 ComboBoxColorPalette.Items.BeginUpdate; 53 try 54 ComboBoxColorPalette.Items.Clear; 55 for ColorPalette := Low(ColorPaletteText) to High(ColorPaletteText) do 56 ComboBoxColorPalette.Items.Add(ColorPaletteText[ColorPalette]); 57 finally 58 ComboBoxColorPalette.Items.EndUpdate; 49 59 end; 50 60 end; … … 56 66 CheckBoxRecordHistory.Checked := Game.RecordHistory; 57 67 ComboBoxSkin.ItemIndex := Integer(Game.Skin); 68 ComboBoxColorPalette.ItemIndex := Integer(Game.ColorPalette); 58 69 end; 59 70 … … 64 75 Game.RecordHistory := CheckBoxRecordHistory.Checked; 65 76 Game.Skin := TTileSkin(ComboBoxSkin.ItemIndex); 77 Game.ColorPalette := TColorPalette(ComboBoxColorPalette.ItemIndex); 66 78 end; 67 79 -
trunk/Forms/FormSettings.lfm
r86 r89 1 1 object FormSettings: TFormSettings 2 Left = 9793 Height = 3 604 Top = 3855 Width = 4802 Left = 838 3 Height = 331 4 Top = 468 5 Width = 612 6 6 Caption = 'Settings' 7 ClientHeight = 3 608 ClientWidth = 4807 ClientHeight = 331 8 ClientWidth = 612 9 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnShow = FormShow 12 12 LCLVersion = '3.4.0.0' 13 object Label1: TLabel 14 Left = 19 15 Height = 26 16 Top = 24 17 Width = 170 18 Caption = 'Animation duration:' 19 ParentColor = False 20 end 21 object TrackBar1: TTrackBar 22 Left = 208 23 Height = 58 24 Top = 16 25 Width = 240 26 Max = 1000 27 Position = 0 28 Anchors = [akTop, akLeft, akRight] 13 object ButtonOk: TButton 14 Left = 488 15 Height = 38 16 Top = 283 17 Width = 113 18 Anchors = [akRight, akBottom] 19 Caption = 'OK' 29 20 TabOrder = 0 30 end31 object ButtonOk: TButton32 Left = 11233 Height = 3834 Top = 29135 Width = 11336 Anchors = [akLeft, akBottom]37 Caption = 'OK'38 TabOrder = 139 21 OnClick = ButtonOkClick 40 22 end 41 23 object ButtonCancel: TButton 42 Left = 25624 Left = 352 43 25 Height = 38 44 Top = 28 826 Top = 283 45 27 Width = 113 46 Anchors = [ak Left, akBottom]28 Anchors = [akRight, akBottom] 47 29 Caption = 'Cancel' 48 TabOrder = 230 TabOrder = 1 49 31 OnClick = ButtonCancelClick 50 32 end 51 object ComboBoxLanguage: TComboBox 52 Left = 208 53 Height = 42 54 Top = 86 55 Width = 230 56 ItemHeight = 0 57 Style = csDropDownList 58 TabOrder = 3 59 end 60 object Label2: TLabel 61 Left = 19 62 Height = 26 63 Top = 94 64 Width = 88 65 Caption = 'Language:' 66 ParentColor = False 67 end 68 object ComboBoxTheme: TComboBox 69 Left = 208 70 Height = 42 71 Top = 136 72 Width = 230 73 ItemHeight = 0 74 Style = csDropDownList 75 TabOrder = 4 76 end 77 object Label3: TLabel 78 Left = 19 79 Height = 26 80 Top = 144 81 Width = 63 82 Caption = 'Theme:' 83 ParentColor = False 33 object ScrollBox1: TScrollBox 34 Left = 8 35 Height = 262 36 Top = 8 37 Width = 595 38 HorzScrollBar.Page = 438 39 VertScrollBar.Page = 178 40 Anchors = [akTop, akLeft, akRight, akBottom] 41 ClientHeight = 260 42 ClientWidth = 593 43 TabOrder = 2 44 object Label1: TLabel 45 Left = 19 46 Height = 26 47 Top = 24 48 Width = 170 49 Caption = 'Animation duration:' 50 ParentColor = False 51 end 52 object TrackBar1: TTrackBar 53 Left = 208 54 Height = 58 55 Top = 16 56 Width = 372 57 Max = 1000 58 Position = 0 59 Anchors = [akTop, akLeft, akRight] 60 TabOrder = 0 61 end 62 object ComboBoxLanguage: TComboBox 63 Left = 208 64 Height = 42 65 Top = 86 66 Width = 230 67 ItemHeight = 0 68 Style = csDropDownList 69 TabOrder = 1 70 end 71 object Label2: TLabel 72 Left = 19 73 Height = 26 74 Top = 94 75 Width = 88 76 Caption = 'Language:' 77 ParentColor = False 78 end 79 object ComboBoxTheme: TComboBox 80 Left = 208 81 Height = 42 82 Top = 136 83 Width = 230 84 ItemHeight = 0 85 Style = csDropDownList 86 TabOrder = 2 87 end 88 object Label3: TLabel 89 Left = 19 90 Height = 26 91 Top = 144 92 Width = 63 93 Caption = 'Theme:' 94 ParentColor = False 95 end 84 96 end 85 97 end -
trunk/Forms/FormSettings.lrj
r86 r89 1 1 {"version":1,"strings":[ 2 2 {"hash":213582195,"name":"tformsettings.caption","sourcebytes":[83,101,116,116,105,110,103,115],"value":"Settings"}, 3 {"hash":10139450,"name":"tformsettings.label1.caption","sourcebytes":[65,110,105,109,97,116,105,111,110,32,100,117,114,97,116,105,111,110,58],"value":"Animation duration:"},4 3 {"hash":1339,"name":"tformsettings.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, 5 4 {"hash":77089212,"name":"tformsettings.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 5 {"hash":10139450,"name":"tformsettings.label1.caption","sourcebytes":[65,110,105,109,97,116,105,111,110,32,100,117,114,97,116,105,111,110,58],"value":"Animation duration:"}, 6 6 {"hash":82521866,"name":"tformsettings.label2.caption","sourcebytes":[76,97,110,103,117,97,103,101,58],"value":"Language:"}, 7 7 {"hash":95339402,"name":"tformsettings.label3.caption","sourcebytes":[84,104,101,109,101,58],"value":"Theme:"} -
trunk/Forms/FormSettings.pas
r86 r89 19 19 Label2: TLabel; 20 20 Label3: TLabel; 21 ScrollBox1: TScrollBox; 21 22 TrackBar1: TTrackBar; 22 23 procedure ButtonCancelClick(Sender: TObject);
Note:
See TracChangeset
for help on using the changeset viewer.