Changeset 89 for trunk/Forms/FormNew.pas
- Timestamp:
- Jun 7, 2024, 4:35:46 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.