Changeset 317 for trunk/Forms/FormMove.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMove.pas
r316 r317 1 unit UFormMove;1 unit FormMove; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Spin, 7 StdCtrls, ComCtrls ;7 StdCtrls, ComCtrls, FormEx; 8 8 9 9 type … … 11 11 { TFormMove } 12 12 13 TFormMove = class(TForm )13 TFormMove = class(TFormEx) 14 14 ButtonRemove: TButton; 15 15 ButtonRepeatMax: TButton; … … 30 30 procedure ButtonRemoveClick(Sender: TObject); 31 31 procedure ButtonRepeatMinClick(Sender: TObject); 32 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);33 procedure FormCreate(Sender: TObject);34 32 procedure ButtonOnceMinClick(Sender: TObject); 35 33 procedure ButtonRepeatMaxClick(Sender: TObject); … … 48 46 end; 49 47 50 var51 FormMove: TFormMove;52 53 48 54 49 implementation … … 57 52 58 53 uses 59 UCore;54 Core; 60 55 61 56 { TFormMove } … … 78 73 Label3.Visible := ShowWinProbability; 79 74 LabelWinProbability.Caption := 80 IntToStr(Round(Core. Game.AttackProbability(AttackCount + SpinEditOnce.Value,75 IntToStr(Round(Core.Core.Game.AttackProbability(AttackCount + SpinEditOnce.Value, 81 76 DefendCount) * 100)) + ' %'; 82 77 end; … … 91 86 procedure TFormMove.FormShow(Sender: TObject); 92 87 begin 93 Core.PersistentForm.Load(Self);94 Core.ThemeManager1.UseTheme(Self);95 88 if SpinEditOnce.MaxValue < SpinEditOnce.Value then begin 96 89 SpinEditOnce.Enabled := False; … … 128 121 end; 129 122 130 procedure TFormMove.FormClose(Sender: TObject; var CloseAction: TCloseAction);131 begin132 Core.PersistentForm.Save(Self);133 end;134 135 procedure TFormMove.FormCreate(Sender: TObject);136 begin137 Core.CoolTranslator1.TranslateComponentRecursive(Self);138 end;139 140 123 procedure TFormMove.ButtonOnceMinClick(Sender: TObject); 141 124 begin
Note:
See TracChangeset
for help on using the changeset viewer.