Changeset 301 for trunk/Forms


Ignore:
Timestamp:
Jul 10, 2019, 11:35:10 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Corrected dimensions in About dialog.
  • Removed: Old Player and Players forms replaced by general item list.
Location:
trunk/Forms
Files:
6 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormAbout.lfm

    r295 r301  
    11object FormAbout: TFormAbout
    2   Left = 1014
    3   Height = 448
    4   Top = 442
    5   Width = 705
     2  Left = 868
     3  Height = 402
     4  Top = 565
     5  Width = 720
    66  Caption = 'About'
    7   ClientHeight = 448
    8   ClientWidth = 705
    9   DesignTimePPI = 120
     7  ClientHeight = 402
     8  ClientWidth = 720
     9  DesignTimePPI = 144
    1010  OnCreate = FormCreate
    1111  OnShow = FormShow
    1212  Position = poScreenCenter
    13   LCLVersion = '2.0.0.4'
     13  LCLVersion = '2.0.2.0'
    1414  object LabelDescription: TLabel
    15     Left = 25
    16     Height = 40
    17     Top = 137
    18     Width = 655
     15    Left = 30
     16    Height = 24
     17    Top = 134
     18    Width = 660
    1919    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
    2224    ParentColor = False
    2325    ParentFont = False
     
    2527  end
    2628  object ButtonClose: TButton
    27     Left = 564
    28     Height = 31
    29     Top = 398
    30     Width = 116
     29    Left = 551
     30    Height = 37
     31    Top = 342
     32    Width = 139
    3133    Anchors = [akRight, akBottom]
    3234    Caption = 'Close'
     
    3638  end
    3739  object LabelContent: TLabel
    38     Left = 25
    39     Height = 20
    40     Top = 202
    41     Width = 655
     40    Left = 30
     41    Height = 26
     42    Top = 188
     43    Width = 660
    4244    Align = alTop
    43     BorderSpacing.Around = 25
     45    BorderSpacing.Around = 30
    4446    Caption = '   '
    4547    ParentColor = False
     
    4749  end
    4850  object ButtonHomePage: TButton
    49     Left = 20
    50     Height = 31
    51     Top = 398
    52     Width = 220
     51    Left = 24
     52    Height = 37
     53    Top = 342
     54    Width = 264
    5355    Anchors = [akLeft, akBottom]
    5456    Caption = 'Home page'
     
    5961  object Panel1: TPanel
    6062    Left = 0
    61     Height = 112
     63    Height = 134
    6264    Top = 0
    63     Width = 705
     65    Width = 720
    6466    Align = alTop
    6567    BevelOuter = bvNone
    66     ClientHeight = 112
    67     ClientWidth = 705
     68    ClientHeight = 134
     69    ClientWidth = 720
    6870    FullRepaint = False
    6971    ParentFont = False
    7072    TabOrder = 2
    7173    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
    8083      ParentColor = False
    8184      ParentFont = False
     
    8386    end
    8487    object Image1: TImage
    85       Left = 20
    86       Height = 82
    87       Top = 25
    88       Width = 82
     88      Left = 24
     89      Height = 98
     90      Top = 30
     91      Width = 98
    8992      Picture.Data = {
    9093        1754506F727461626C654E6574776F726B47726170686963CF01000089504E47
  • trunk/Forms/UFormAbout.lrj

    r295 r301  
    11{"version":1,"strings":[
    22{"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."},
    43{"hash":4863637,"name":"tformabout.buttonclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"},
    54{"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"}
    86]}
  • trunk/Forms/UFormAbout.pas

    r243 r301  
    2424    procedure FormCreate(Sender: TObject);
    2525    procedure FormShow(Sender: TObject);
    26   private
    27     { private declarations }
    2826  public
    29     { public declarations }
     27    ApplicationInfo: TApplicationInfo;
    3028  end;
    3129
     
    5048begin
    5149  Core.ThemeManager1.UseTheme(Self);
    52   with Core do begin
     50  if Assigned(ApplicationInfo) then begin
    5351    LabelAppName.Caption := ApplicationInfo.AppName;
    5452    LabelContent.Caption := SVersion + ': ' + ApplicationInfo.Version + LineEnding +
    5553      SReleaseDate + ': ' + DateToStr(ApplicationInfo.ReleaseDate) + LineEnding +
    5654      SLicense + ': ' + ApplicationInfo.License;
     55    LabelDescription.Caption := ApplicationInfo.Description;
    5756  end;
    5857end;
     
    6059procedure TFormAbout.ButtonHomePageClick(Sender: TObject);
    6160begin
    62   OpenWebPage(Core.ApplicationInfo.HomePage);
     61  if Assigned(ApplicationInfo) then
     62    OpenWebPage(ApplicationInfo.HomePage);
    6363end;
    6464
  • trunk/Forms/UFormList.lfm

    r300 r301  
    3535    OnDblClick = AModifyExecute
    3636    OnKeyPress = ListView1KeyPress
     37    OnKeyUp = ListView1KeyUp
    3738    OnSelectItem = ListView1SelectItem
    3839  end
     
    4344    Width = 480
    4445    Align = alBottom
     46    Images = Core.ImageListSmall
    4547    ParentFont = False
    4648    TabOrder = 1
     
    6769  end
    6870  object ActionList1: TActionList
     71    Images = Core.ImageListSmall
    6972    left = 208
    7073    top = 163
     
    9699  end
    97100  object PopupMenu1: TPopupMenu
     101    Images = Core.ImageListSmall
    98102    left = 352
    99103    top = 160
  • trunk/Forms/UFormList.pas

    r300 r301  
    4444    procedure ListView1Data(Sender: TObject; Item: TListItem);
    4545    procedure ListView1KeyPress(Sender: TObject; var Key: char);
     46    procedure ListView1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
     47      );
    4648    procedure ListView1SelectItem(Sender: TObject; Item: TListItem;
    4749      Selected: Boolean);
     
    129131  FormItem := TFormItem.Create(Self);
    130132  try
    131     TempEntry.Name := SNew + ' ' + LowerCase(List.GetItemClass.GetClassName);
     133    TempEntry.Name := List.GetNextAvailableName(SNew + ' ' + LowerCase(List.GetItemClass.GetClassName));
    132134    FormItem.Item := TempEntry;
    133135    if FormItem.ShowModal = mrOk then begin
     
    250252end;
    251253
     254procedure TFormList.ListView1KeyUp(Sender: TObject; var Key: Word;
     255  Shift: TShiftState);
     256begin
     257  if Key = 45 then AAdd.Execute;
     258  if Key = 46 then ARemove.Execute;
     259end;
     260
    252261procedure TFormList.ListView1SelectItem(Sender: TObject;
    253262  Item: TListItem; Selected: Boolean);
Note: See TracChangeset for help on using the changeset viewer.