Changeset 11 for trunk/Forms/UFormSettings.pas
- Timestamp:
- Oct 4, 2019, 11:57:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSettings.pas
r8 r11 6 6 7 7 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs ;8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls; 9 9 10 10 type 11 12 { TFormSettings } 13 11 14 TFormSettings = class(TForm) 15 ButtonOk: TButton; 16 ButtonCancel: TButton; 17 Label1: TLabel; 18 TrackBar1: TTrackBar; 19 procedure ButtonCancelClick(Sender: TObject); 20 procedure ButtonOkClick(Sender: TObject); 21 procedure FormShow(Sender: TObject); 12 22 private 13 23 … … 23 33 {$R *.lfm} 24 34 35 uses 36 UCore; 37 38 { TFormSettings } 39 40 procedure TFormSettings.ButtonCancelClick(Sender: TObject); 41 begin 42 Close; 43 end; 44 45 procedure TFormSettings.ButtonOkClick(Sender: TObject); 46 begin 47 Core.Game.AnimationDuration := TrackBar1.Position; 48 Close; 49 end; 50 51 procedure TFormSettings.FormShow(Sender: TObject); 52 begin 53 TrackBar1.Position := Core.Game.AnimationDuration; 54 end; 55 25 56 end. 26 57
Note:
See TracChangeset
for help on using the changeset viewer.