Changeset 49 for trunk/Forms/UFormNew.pas
- Timestamp:
- Nov 3, 2019, 11:45:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.