Ignore:
Timestamp:
Jun 21, 2024, 12:44:53 PM (2 weeks ago)
Author:
chronos
Message:
  • Modified: Remove U prefix from unit names.
  • Modified: Use TFormEx for all forms for code simplification.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormNew.lfm

    r316 r317  
    11object FormNew: TFormNew
    2   Left = 478
    3   Height = 745
    4   Top = 526
    5   Width = 1211
     2  Left = 449
     3  Height = 688
     4  Top = 511
     5  Width = 1209
    66  Caption = 'New game'
    7   ClientHeight = 745
    8   ClientWidth = 1211
     7  ClientHeight = 688
     8  ClientWidth = 1209
    99  Constraints.MinHeight = 502
    1010  Constraints.MinWidth = 667
    1111  DesignTimePPI = 144
    12   OnClose = FormClose
    1312  OnCreate = FormCreate
    1413  OnDestroy = FormDestroy
    1514  OnShow = FormShow
    1615  Position = poMainFormCenter
    17   LCLVersion = '2.0.2.0'
     16  LCLVersion = '3.4.0.0'
    1817  object PageControl1: TPageControl
    1918    Left = 4
    20     Height = 635
     19    Height = 578
    2120    Top = 60
    22     Width = 806
    23     ActivePage = TabSheetRules
     21    Width = 804
     22    ActivePage = TabSheetPlayers
    2423    Align = alClient
    2524    BorderSpacing.Around = 4
    2625    ParentFont = False
    27     TabIndex = 3
     26    TabIndex = 1
    2827    TabOrder = 0
    2928    OnChange = PageControl1Change
    3029    object TabSheetMode: TTabSheet
    3130      Caption = 'Mode'
    32       ClientHeight = 595
    33       ClientWidth = 796
     31      ClientHeight = 538
     32      ClientWidth = 794
    3433      ParentFont = False
    3534      object Panel3: TPanel
    3635        Left = 0
    37         Height = 596
     36        Height = 538
    3837        Top = 0
    39         Width = 796
     38        Width = 794
    4039        Align = alClient
    4140        BevelOuter = bvNone
    42         ClientHeight = 596
    43         ClientWidth = 796
     41        ClientHeight = 538
     42        ClientWidth = 794
    4443        ParentFont = False
    4544        TabOrder = 0
     
    5150          Caption = 'Local'
    5251          Checked = True
    53           OnChange = RadioButtonModeLocalChange
    5452          ParentFont = False
    5553          TabOrder = 0
    5654          TabStop = True
     55          OnChange = RadioButtonModeLocalChange
    5756        end
    5857        object RadioButtonModeNetworkServer: TRadioButton
     
    6059          Height = 30
    6160          Top = 48
    62           Width = 156
     61          Width = 155
    6362          Caption = 'Network server'
     63          ParentFont = False
     64          TabOrder = 1
    6465          OnChange = RadioButtonModeLocalChange
    65           ParentFont = False
    66           TabOrder = 1
    6766        end
    6867        object RadioButtonModeNetworkClient: TRadioButton
     
    7069          Height = 30
    7170          Top = 152
    72           Width = 151
     71          Width = 149
    7372          Caption = 'Network client'
     73          ParentFont = False
     74          TabOrder = 2
    7475          OnChange = RadioButtonModeLocalChange
    75           ParentFont = False
    76           TabOrder = 2
    7776        end
    7877        object EditServerAddress: TEdit
     
    9796          Height = 26
    9897          Top = 88
    99           Width = 41
     98          Width = 40
    10099          Caption = 'Port:'
    101100          ParentColor = False
     
    113112        object ListViewServers: TListView
    114113          Left = 26
    115           Height = 365
     114          Height = 307
    116115          Top = 181
    117116          Width = 334
     
    142141          Left = 26
    143142          Height = 31
    144           Top = 557
     143          Top = 499
    145144          Width = 94
    146145          Action = AServerAdd
     
    152151          Left = 240
    153152          Height = 31
    154           Top = 557
     153          Top = 499
    155154          Width = 94
    156155          Action = AServerRemove
     
    162161          Left = 136
    163162          Height = 30
    164           Top = 556
     163          Top = 498
    165164          Width = 94
    166165          Action = AServerModify
     
    173172    object TabSheetPlayers: TTabSheet
    174173      Caption = 'Players'
    175       ClientHeight = 595
    176       ClientWidth = 796
     174      ClientHeight = 538
     175      ClientWidth = 794
    177176      ParentFont = False
    178177      object Panel2: TPanel
    179178        Left = 0
    180         Height = 596
     179        Height = 538
    181180        Top = 0
    182         Width = 796
     181        Width = 794
    183182        Align = alClient
    184183        BevelOuter = bvNone
     
    189188    object TabSheetMap: TTabSheet
    190189      Caption = 'Map'
    191       ClientHeight = 595
    192       ClientWidth = 796
     190      ClientHeight = 538
     191      ClientWidth = 794
    193192      OnShow = TabSheetMapShow
    194193      ParentFont = False
    195194      object Panel1: TPanel
    196195        Left = 0
    197         Height = 596
     196        Height = 538
    198197        Top = 0
    199         Width = 796
     198        Width = 794
    200199        Align = alClient
    201200        BevelOuter = bvNone
    202         ClientHeight = 596
    203         ClientWidth = 796
     201        ClientHeight = 538
     202        ClientWidth = 794
    204203        ParentFont = False
    205204        TabOrder = 0
     
    208207          Height = 26
    209208          Top = 10
    210           Width = 95
     209          Width = 94
    211210          Caption = 'Map width:'
    212211          ParentColor = False
     
    217216          Height = 26
    218217          Top = 58
    219           Width = 102
     218          Width = 101
    220219          Caption = 'Map height:'
    221220          ParentColor = False
     
    248247          Height = 58
    249248          Top = 8
    250           Width = 545
     249          Width = 543
    251250          Max = 100
    252251          Min = 2
     
    262261          Height = 58
    263262          Top = 49
    264           Width = 545
     263          Width = 543
    265264          Max = 100
    266265          Min = 2
     
    276275          Height = 26
    277276          Top = 104
    278           Width = 83
     277          Width = 82
    279278          Caption = 'Grid type:'
    280279          ParentColor = False
     
    283282        object ComboBoxGridType: TComboBox
    284283          Left = 146
    285           Height = 28
     284          Height = 38
    286285          Top = 104
    287286          Width = 304
     
    294293            'Isometric'
    295294          )
    296           OnChange = ComboBoxGridTypeChange
    297295          ParentFont = False
    298296          Style = csDropDownList
    299297          TabOrder = 4
     298          OnChange = ComboBoxGridTypeChange
    300299        end
    301300        object ComboBoxMapShape: TComboBox
    302301          Left = 146
    303           Height = 28
     302          Height = 38
    304303          Top = 144
    305304          Width = 304
     
    310309            'Triangular'
    311310          )
    312           OnChange = ComboBoxMapShapeChange
    313311          ParentFont = False
    314312          Style = csDropDownList
    315313          TabOrder = 5
     314          OnChange = ComboBoxMapShapeChange
    316315        end
    317316        object Label8: TLabel
     
    328327          Height = 26
    329328          Top = 248
    330           Width = 308
     329          Width = 543
    331330          Anchors = [akTop, akLeft, akRight]
    332331          AutoSize = False
    333332          Caption = 'Symetric map'
     333          ParentFont = False
     334          TabOrder = 6
    334335          OnChange = CheckBoxSymetricMapChange
    335           ParentFont = False
    336           TabOrder = 6
    337336        end
    338337        object SpinEditVoidPercent: TSpinEdit
     
    353352          Width = 189
    354353          Caption = 'Inaccessible places'
     354          ParentFont = False
     355          TabOrder = 8
    355356          OnChange = CheckBoxVoidChange
    356           ParentFont = False
    357           TabOrder = 8
    358357        end
    359358        object CheckBoxCity: TCheckBox
     
    361360          Height = 30
    362361          Top = 368
    363           Width = 73
     362          Width = 72
    364363          Caption = 'Cities'
     364          ParentFont = False
     365          TabOrder = 9
    365366          OnChange = CheckBoxCityChange
    366           ParentFont = False
    367           TabOrder = 9
    368367        end
    369368        object SpinEditCityPercent: TSpinEdit
     
    411410          Height = 26
    412411          Top = 496
    413           Width = 227
     412          Width = 225
    414413          Caption = 'Max random neutral units:'
    415414          ParentColor = False
     
    420419          Height = 43
    421420          Top = 184
    422           Width = 530
     421          Width = 543
    423422          Anchors = [akTop, akLeft, akRight]
     423          ParentFont = False
     424          TabOrder = 12
    424425          OnChange = EditImageFileChange
    425           ParentFont = False
    426           TabOrder = 12
    427426        end
    428427        object ButtonImageBrowse: TButton
    429           Left = 681
     428          Left = 679
    430429          Height = 38
    431430          Top = 190
     
    433432          Anchors = [akTop, akRight]
    434433          Caption = 'Browse'
     434          ParentFont = False
     435          TabOrder = 13
    435436          OnClick = ButtonImageBrowseClick
    436           ParentFont = False
    437           TabOrder = 13
    438437        end
    439438        object Label9: TLabel
     
    450449          Height = 30
    451450          Top = 408
    452           Width = 212
     451          Width = 211
    453452          Caption = 'Bridges between cells'
     453          ParentFont = False
     454          TabOrder = 14
    454455          OnChange = CheckBoxBridgesChange
    455           ParentFont = False
    456           TabOrder = 14
    457456        end
    458457        object SpinEditMaxPower: TSpinEdit
     
    472471          Height = 26
    473472          Top = 448
    474           Width = 156
     473          Width = 155
    475474          Caption = 'Max units per cell:'
    476475          ParentColor = False
     
    481480          Height = 26
    482481          Top = 283
    483           Width = 308
     482          Width = 543
    484483          Anchors = [akTop, akLeft, akRight]
    485484          AutoSize = False
    486485          Caption = 'Cyclic map'
     486          ParentFont = False
     487          TabOrder = 16
    487488          OnChange = CheckBoxCyclicMapChange
    488           ParentFont = False
    489           TabOrder = 16
    490489        end
    491490        object Image1: TImage
     
    493492          Height = 316
    494493          Top = 272
    495           Width = 359
     494          Width = 542
    496495          Anchors = [akTop, akLeft, akRight]
    497496          OnResize = Image1Resize
     
    512511          Width = 154
    513512          Caption = 'Randomize'
     513          ParentFont = False
     514          TabOrder = 17
    514515          OnClick = ButtonRandomizeClick
    515           ParentFont = False
    516           TabOrder = 17
    517516        end
    518517      end
     
    520519    object TabSheetRules: TTabSheet
    521520      Caption = 'Rules'
    522       ClientHeight = 595
    523       ClientWidth = 796
     521      ClientHeight = 538
     522      ClientWidth = 794
    524523      ParentFont = False
    525524      object Panel4: TPanel
    526525        Left = 0
    527         Height = 595
     526        Height = 538
    528527        Top = 0
    529         Width = 796
     528        Width = 794
    530529        Align = alClient
    531530        BevelOuter = bvNone
    532         ClientHeight = 595
    533         ClientWidth = 796
     531        ClientHeight = 538
     532        ClientWidth = 794
    534533        ParentFont = False
    535534        TabOrder = 0
     
    562561          Height = 26
    563562          Top = 248
    564           Width = 120
     563          Width = 119
    565564          Caption = 'Win objective:'
    566565          ParentColor = False
     
    579578            'Stay alive for number of turns'
    580579          )
    581           OnChange = ComboBoxWinObjectiveChange
    582580          ParentFont = False
    583581          Style = csDropDownList
    584582          TabOrder = 1
     583          OnChange = ComboBoxWinObjectiveChange
    585584        end
    586585        object RadioGroupGrowAmount: TRadioGroup
     
    620619          Height = 78
    621620          Top = 290
    622           Width = 773
     621          Width = 771
    623622          ActivePage = TabSheetCaptureEntireMap
    624623          Anchors = [akTop, akLeft, akRight]
     
    635634          object TabSheetCaptureCells: TTabSheet
    636635            ClientHeight = 74
    637             ClientWidth = 763
     636            ClientWidth = 761
    638637            ParentFont = False
    639638            object Label14: TLabel
    640639              Left = 8
    641               Height = 20
     640              Height = 26
    642641              Top = 16
    643               Width = 125
     642              Width = 161
    644643              Caption = 'Special cells count:'
    645644              ParentColor = False
     
    648647            object SpinEditSpecialCells: TSpinEdit
    649648              Left = 236
    650               Height = 28
     649              Height = 43
    651650              Top = 8
    652651              Width = 158
     
    660659          object TabSheetStayAliveTurns: TTabSheet
    661660            ClientHeight = 74
    662             ClientWidth = 763
     661            ClientWidth = 761
    663662            ParentFont = False
    664663            object Label13: TLabel
    665664              Left = 8
    666               Height = 20
     665              Height = 26
    667666              Top = 16
    668               Width = 111
     667              Width = 146
    669668              Caption = 'Number of turns:'
    670669              ParentColor = False
     
    673672            object SpinEditTurns: TSpinEdit
    674673              Left = 236
    675               Height = 28
     674              Height = 43
    676675              Top = 8
    677676              Width = 158
     
    696695    Left = 0
    697696    Height = 46
    698     Top = 699
    699     Width = 1211
     697    Top = 642
     698    Width = 1209
    700699    Align = alBottom
    701700    BevelOuter = bvNone
    702701    ClientHeight = 46
    703     ClientWidth = 1211
     702    ClientWidth = 1209
    704703    ParentFont = False
    705704    TabOrder = 1
    706705    object ButtonOk: TButton
    707       Left = 1024
     706      Left = 1022
    708707      Height = 25
    709708      Top = 7
     
    712711      Caption = 'Ok'
    713712      ModalResult = 1
    714       OnClick = ButtonOkClick
    715713      ParentFont = False
    716714      TabOrder = 0
     715      OnClick = ButtonOkClick
    717716    end
    718717    object ButtonCancel: TButton
    719       Left = 1127
     718      Left = 1125
    720719      Height = 25
    721720      Top = 7
     
    729728  end
    730729  object PanelChat: TPanel
    731     Left = 820
    732     Height = 643
     730    Left = 818
     731    Height = 586
    733732    Top = 56
    734733    Width = 391
     
    739738  end
    740739  object Splitter1: TSplitter
    741     Left = 814
    742     Height = 643
     740    Left = 812
     741    Height = 586
    743742    Top = 56
    744743    Width = 6
     
    750749    Height = 56
    751750    Top = 0
    752     Width = 1211
     751    Width = 1209
    753752    Align = alTop
    754753    BevelOuter = bvNone
    755754    ClientHeight = 56
    756     ClientWidth = 1211
     755    ClientWidth = 1209
    757756    ParentFont = False
    758757    TabOrder = 4
     
    761760      Height = 26
    762761      Top = 16
    763       Width = 121
     762      Width = 120
    764763      Caption = 'Game system:'
    765764      ParentColor = False
     
    772771      Width = 254
    773772      ItemHeight = 0
    774       OnChange = ComboBoxGameSystemChange
    775773      ParentFont = False
    776774      Style = csDropDownList
    777775      TabOrder = 0
     776      OnChange = ComboBoxGameSystemChange
    778777    end
    779778    object ButtonGameSystems: TButton
     
    783782      Width = 113
    784783      Caption = 'Manage'
    785       OnClick = ButtonGameSystemsClick
    786784      ParentFont = False
    787785      TabOrder = 1
     786      OnClick = ButtonGameSystemsClick
    788787    end
    789788  end
    790789  object ActionList1: TActionList
    791790    Images = Core.ImageListSmall
    792     left = 864
    793     top = 216
     791    Left = 864
     792    Top = 216
    794793    object AServerAdd: TAction
    795794      Caption = 'Add'
     
    806805  end
    807806  object OpenPictureDialog1: TOpenPictureDialog
    808     left = 864
    809     top = 360
     807    Left = 864
     808    Top = 360
    810809  end
    811810  object PopupMenuServers: TPopupMenu
    812     left = 864
    813     top = 136
     811    Left = 864
     812    Top = 136
    814813    object MenuItem4: TMenuItem
    815814      Action = AServerAdd
     
    825824    Interval = 500
    826825    OnTimer = TimerMapPreviewTimer
    827     left = 864
    828     top = 446
     826    Left = 864
     827    Top = 446
    829828  end
    830829end
Note: See TracChangeset for help on using the changeset viewer.