Changeset 301 for trunk/Forms
- Timestamp:
- Jul 10, 2019, 11:35:10 PM (5 years ago)
- Location:
- trunk/Forms
- Files:
-
- 6 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAbout.lfm
r295 r301 1 1 object FormAbout: TFormAbout 2 Left = 10143 Height = 4 484 Top = 4425 Width = 7 052 Left = 868 3 Height = 402 4 Top = 565 5 Width = 720 6 6 Caption = 'About' 7 ClientHeight = 4 488 ClientWidth = 7 059 DesignTimePPI = 1 207 ClientHeight = 402 8 ClientWidth = 720 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnShow = FormShow 12 12 Position = poScreenCenter 13 LCLVersion = '2.0. 0.4'13 LCLVersion = '2.0.2.0' 14 14 object LabelDescription: TLabel 15 Left = 2516 Height = 4017 Top = 13 718 Width = 6 5515 Left = 30 16 Height = 24 17 Top = 134 18 Width = 660 19 19 Align = alTop 20 BorderSpacing.Around = 25 21 Caption = 'Turn-based strategy game inspired by classic Risk board game. The game is highly configurable to allow to adjust battle field and game rules.' 20 BorderSpacing.Left = 30 21 BorderSpacing.Right = 30 22 BorderSpacing.Bottom = 30 23 Constraints.MinHeight = 24 22 24 ParentColor = False 23 25 ParentFont = False … … 25 27 end 26 28 object ButtonClose: TButton 27 Left = 5 6428 Height = 3 129 Top = 3 9830 Width = 1 1629 Left = 551 30 Height = 37 31 Top = 342 32 Width = 139 31 33 Anchors = [akRight, akBottom] 32 34 Caption = 'Close' … … 36 38 end 37 39 object LabelContent: TLabel 38 Left = 2539 Height = 2 040 Top = 20241 Width = 6 5540 Left = 30 41 Height = 26 42 Top = 188 43 Width = 660 42 44 Align = alTop 43 BorderSpacing.Around = 2545 BorderSpacing.Around = 30 44 46 Caption = ' ' 45 47 ParentColor = False … … 47 49 end 48 50 object ButtonHomePage: TButton 49 Left = 2 050 Height = 3 151 Top = 3 9852 Width = 2 2051 Left = 24 52 Height = 37 53 Top = 342 54 Width = 264 53 55 Anchors = [akLeft, akBottom] 54 56 Caption = 'Home page' … … 59 61 object Panel1: TPanel 60 62 Left = 0 61 Height = 1 1263 Height = 134 62 64 Top = 0 63 Width = 7 0565 Width = 720 64 66 Align = alTop 65 67 BevelOuter = bvNone 66 ClientHeight = 1 1267 ClientWidth = 7 0568 ClientHeight = 134 69 ClientWidth = 720 68 70 FullRepaint = False 69 71 ParentFont = False 70 72 TabOrder = 2 71 73 object LabelAppName: TLabel 72 Left = 96 73 Height = 67 74 Top = 20 75 Width = 170 76 Align = alCustom 77 BorderSpacing.Around = 25 78 Caption = 'xTactics' 79 Font.Height = -50 74 Left = 130 75 Height = 100 76 Top = 30 77 Width = 560 78 Align = alTop 79 BorderSpacing.Left = 100 80 BorderSpacing.Around = 30 81 Constraints.MinHeight = 100 82 Font.Height = -60 80 83 ParentColor = False 81 84 ParentFont = False … … 83 86 end 84 87 object Image1: TImage 85 Left = 2 086 Height = 8287 Top = 2588 Width = 8288 Left = 24 89 Height = 98 90 Top = 30 91 Width = 98 89 92 Picture.Data = { 90 93 1754506F727461626C654E6574776F726B47726170686963CF01000089504E47 -
trunk/Forms/UFormAbout.lrj
r295 r301 1 1 {"version":1,"strings":[ 2 2 {"hash":4691652,"name":"tformabout.caption","sourcebytes":[65,98,111,117,116],"value":"About"}, 3 {"hash":120622558,"name":"tformabout.labeldescription.caption","sourcebytes":[84,117,114,110,45,98,97,115,101,100,32,115,116,114,97,116,101,103,121,32,103,97,109,101,32,105,110,115,112,105,114,101,100,32,98,121,32,99,108,97,115,115,105,99,32,82,105,115,107,32,98,111,97,114,100,32,103,97,109,101,46,32,84,104,101,32,103,97,109,101,32,105,115,32,104,105,103,104,108,121,32,99,111,110,102,105,103,117,114,97,98,108,101,32,116,111,32,97,108,108,111,119,32,116,111,32,97,100,106,117,115,116,32,98,97,116,116,108,101,32,102,105,101,108,100,32,97,110,100,32,103,97,109,101,32,114,117,108,101,115,46],"value":"Turn-based strategy game inspired by classic Risk board game. The game is highly configurable to allow to adjust battle field and game rules."},4 3 {"hash":4863637,"name":"tformabout.buttonclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"}, 5 4 {"hash":8736,"name":"tformabout.labelcontent.caption","sourcebytes":[32,32,32],"value":" "}, 6 {"hash":58140853,"name":"tformabout.buttonhomepage.caption","sourcebytes":[72,111,109,101,32,112,97,103,101],"value":"Home page"}, 7 {"hash":175810675,"name":"tformabout.labelappname.caption","sourcebytes":[120,84,97,99,116,105,99,115],"value":"xTactics"} 5 {"hash":58140853,"name":"tformabout.buttonhomepage.caption","sourcebytes":[72,111,109,101,32,112,97,103,101],"value":"Home page"} 8 6 ]} -
trunk/Forms/UFormAbout.pas
r243 r301 24 24 procedure FormCreate(Sender: TObject); 25 25 procedure FormShow(Sender: TObject); 26 private27 { private declarations }28 26 public 29 { public declarations }27 ApplicationInfo: TApplicationInfo; 30 28 end; 31 29 … … 50 48 begin 51 49 Core.ThemeManager1.UseTheme(Self); 52 with Core dobegin50 if Assigned(ApplicationInfo) then begin 53 51 LabelAppName.Caption := ApplicationInfo.AppName; 54 52 LabelContent.Caption := SVersion + ': ' + ApplicationInfo.Version + LineEnding + 55 53 SReleaseDate + ': ' + DateToStr(ApplicationInfo.ReleaseDate) + LineEnding + 56 54 SLicense + ': ' + ApplicationInfo.License; 55 LabelDescription.Caption := ApplicationInfo.Description; 57 56 end; 58 57 end; … … 60 59 procedure TFormAbout.ButtonHomePageClick(Sender: TObject); 61 60 begin 62 OpenWebPage(Core.ApplicationInfo.HomePage); 61 if Assigned(ApplicationInfo) then 62 OpenWebPage(ApplicationInfo.HomePage); 63 63 end; 64 64 -
trunk/Forms/UFormList.lfm
r300 r301 35 35 OnDblClick = AModifyExecute 36 36 OnKeyPress = ListView1KeyPress 37 OnKeyUp = ListView1KeyUp 37 38 OnSelectItem = ListView1SelectItem 38 39 end … … 43 44 Width = 480 44 45 Align = alBottom 46 Images = Core.ImageListSmall 45 47 ParentFont = False 46 48 TabOrder = 1 … … 67 69 end 68 70 object ActionList1: TActionList 71 Images = Core.ImageListSmall 69 72 left = 208 70 73 top = 163 … … 96 99 end 97 100 object PopupMenu1: TPopupMenu 101 Images = Core.ImageListSmall 98 102 left = 352 99 103 top = 160 -
trunk/Forms/UFormList.pas
r300 r301 44 44 procedure ListView1Data(Sender: TObject; Item: TListItem); 45 45 procedure ListView1KeyPress(Sender: TObject; var Key: char); 46 procedure ListView1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState 47 ); 46 48 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 47 49 Selected: Boolean); … … 129 131 FormItem := TFormItem.Create(Self); 130 132 try 131 TempEntry.Name := SNew + ' ' + LowerCase(List.GetItemClass.GetClassName);133 TempEntry.Name := List.GetNextAvailableName(SNew + ' ' + LowerCase(List.GetItemClass.GetClassName)); 132 134 FormItem.Item := TempEntry; 133 135 if FormItem.ShowModal = mrOk then begin … … 250 252 end; 251 253 254 procedure TFormList.ListView1KeyUp(Sender: TObject; var Key: Word; 255 Shift: TShiftState); 256 begin 257 if Key = 45 then AAdd.Execute; 258 if Key = 46 then ARemove.Execute; 259 end; 260 252 261 procedure TFormList.ListView1SelectItem(Sender: TObject; 253 262 Item: TListItem; Selected: Boolean);
Note:
See TracChangeset
for help on using the changeset viewer.