Changeset 49 for trunk/Forms
- Timestamp:
- Nov 3, 2019, 11:45:03 AM (5 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.lfm
r36 r49 78 78 TabOrder = 4 79 79 end 80 object Label2: TLabel 81 Left = 16 82 Height = 26 83 Top = 125 84 Width = 75 85 Caption = 'Tile skin:' 86 ParentColor = False 87 end 88 object ComboBoxSkin: TComboBox 89 Left = 173 90 Height = 38 91 Top = 120 92 Width = 262 93 ItemHeight = 0 94 Items.Strings = ( 95 '' 96 ) 97 Style = csDropDownList 98 TabOrder = 5 99 end 80 100 end -
trunk/Forms/UFormNew.lrj
r36 r49 5 5 {"hash":1339,"name":"tformnew.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, 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 {"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 {"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 9 ]} -
trunk/Forms/UFormNew.pas
r36 r49 19 19 CheckBoxUndoEnabled: TCheckBox; 20 20 ComboBoxSize: TComboBox; 21 ComboBoxSkin: TComboBox; 21 22 Label1: TLabel; 23 Label2: TLabel; 22 24 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 23 25 procedure FormCreate(Sender: TObject); … … 43 45 44 46 procedure TFormNew.FormCreate(Sender: TObject); 47 var 48 I: TTileSkin; 45 49 begin 46 50 Core.Translator1.TranslateComponentRecursive(Self); 51 ComboBoxSkin.Items.Clear; 52 for I := Low(SkinText) to High(SkinText) do 53 ComboBoxSkin.Items.Add(SkinText[I]); 47 54 end; 48 55 … … 62 69 CheckBoxUndoEnabled.Checked := Game.UndoEnabled; 63 70 CheckBoxRecordHistory.Checked := Game.RecordHistory; 71 ComboBoxSkin.ItemIndex := Integer(Game.Skin); 64 72 end; 65 73 … … 69 77 Game.UndoEnabled := CheckBoxUndoEnabled.Checked; 70 78 Game.RecordHistory := CheckBoxRecordHistory.Checked; 79 Game.Skin := TTileSkin(ComboBoxSkin.ItemIndex); 71 80 end; 72 81
Note:
See TracChangeset
for help on using the changeset viewer.