- Timestamp:
- Sep 26, 2019, 9:36:37 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 45 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Game2048.lpi
r6 r7 54 54 </CompilerOptions> 55 55 </Item2> 56 <SharedMatrixOptions Count="2"> 57 <Item1 ID="940799555322" Targets="Common" Modes="Debug" Value="-g -gl -gh -CirotR -O1"/> 58 <Item2 ID="173967671653" Targets="Common" Modes="Debug" Value="-CX -XX -O3"/> 59 </SharedMatrixOptions> 56 60 </BuildModes> 57 61 <PublishOptions> … … 64 68 </Modes> 65 69 </RunParams> 66 <RequiredPackages Count=" 1">70 <RequiredPackages Count="2"> 67 71 <Item1> 72 <PackageName Value="Common"/> 73 <DefaultFilename Value="Packages/Common/Common.lpk" Prefer="True"/> 74 </Item1> 75 <Item2> 68 76 <PackageName Value="LCL"/> 69 </Item 1>77 </Item2> 70 78 </RequiredPackages> 71 79 <Units Count="4"> -
trunk/Game2048.lpr
r6 r7 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, SysUtils,// this includes the LCL widgetset 10 Forms, UFormMain, UGame, UFormNew 10 Forms, UFormMain, UGame, UFormNew, Common 11 11 { you can add units after this }; 12 12 -
trunk/UFormMain.lfm
r5 r7 7 7 DesignTimePPI = 144 8 8 Menu = MainMenu1 9 OnClose = FormClose 9 10 OnCreate = FormCreate 10 11 OnDestroy = FormDestroy … … 38 39 end 39 40 end 41 object PersistentForm1: TPersistentForm 42 MinVisiblePart = 50 43 EntireVisible = False 44 left = 161 45 top = 258 46 end 47 object ApplicationInfo1: TApplicationInfo 48 Identification = 1 49 VersionMajor = 1 50 VersionMinor = 0 51 VersionBugFix = 0 52 HomePage = 'https://app.zdechov.net/2048' 53 AuthorsName = 'Chronos' 54 EmailContact = 'robie@centrum.cz' 55 AppName = '2048' 56 Description = 'Classic 2048 game.' 57 ReleaseDate = 43733 58 RegistryKey = '\Software\Chronosoft\2048' 59 RegistryRoot = rrKeyCurrentUser 60 License = 'CC0' 61 left = 320 62 top = 258 63 end 40 64 end -
trunk/UFormMain.pas
r6 r7 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, ExtCtrls, StdCtrls, UGame ;9 ActnList, ExtCtrls, StdCtrls, UGame, UPersistentForm, UApplicationInfo; 10 10 11 11 type … … 17 17 AGameNew: TAction; 18 18 ActionList1: TActionList; 19 ApplicationInfo1: TApplicationInfo; 19 20 MainMenu1: TMainMenu; 20 21 MenuItem1: TMenuItem; 21 22 MenuItem2: TMenuItem; 22 23 MenuItemGame: TMenuItem; 24 PersistentForm1: TPersistentForm; 23 25 procedure AExitExecute(Sender: TObject); 24 26 procedure AGameNewExecute(Sender: TObject); 27 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 25 28 procedure FormCreate(Sender: TObject); 26 29 procedure FormDestroy(Sender: TObject); … … 79 82 end; 80 83 84 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 85 begin 86 PersistentForm1.Save(Self); 87 end; 88 81 89 procedure TFormMain.AExitExecute(Sender: TObject); 82 90 begin … … 99 107 procedure TFormMain.FormShow(Sender: TObject); 100 108 begin 109 PersistentForm1.RegistryContext := ApplicationInfo1.GetRegistryContext; 110 PersistentForm1.Load(Self); 101 111 Game.New; 102 112 {
Note:
See TracChangeset
for help on using the changeset viewer.