close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Changeset 151


Ignore:
Timestamp:
Nov 14, 2017, 11:11:57 PM (6 years ago)
Author:
chronos
Message:
  • Added: Map can have rounded shape.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.lfm

    r134 r151  
    1313  OnShow = FormShow
    1414  Position = poMainFormCenter
    15   LCLVersion = '1.6.4.0'
     15  LCLVersion = '1.8.0.4'
    1616  object ButtonCancel: TButton
    1717    Left = 454
     
    3939    Top = 4
    4040    Width = 669
    41     ActivePage = TabSheet1
     41    ActivePage = TabSheet2
    4242    Align = alTop
    4343    Anchors = [akTop, akLeft, akRight, akBottom]
    4444    BorderSpacing.Around = 4
    45     TabIndex = 0
     45    TabIndex = 1
    4646    TabOrder = 2
    4747    object TabSheet1: TTabSheet
    4848      Caption = 'Players'
    49       ClientHeight = 397
     49      ClientHeight = 395
    5050      ClientWidth = 663
    5151      object ListView1: TListView
    5252        Left = 4
    53         Height = 347
     53        Height = 345
    5454        Top = 4
    5555        Width = 655
     
    9090        Left = 224
    9191        Height = 25
    92         Top = 359
     92        Top = 357
    9393        Width = 83
    9494        Action = APlayerRemove
     
    9999        Left = 16
    100100        Height = 25
    101         Top = 359
     101        Top = 357
    102102        Width = 83
    103103        Action = APlayerAdd
     
    108108        Left = 120
    109109        Height = 25
    110         Top = 359
     110        Top = 357
    111111        Width = 83
    112112        Action = APlayerModify
     
    118118    object TabSheet2: TTabSheet
    119119      Caption = 'Map'
    120       ClientHeight = 397
     120      ClientHeight = 395
    121121      ClientWidth = 663
    122122      object Label1: TLabel
    123123        Left = 8
    124         Height = 24
     124        Height = 26
    125125        Top = 9
    126126        Width = 95
     
    130130      object Label2: TLabel
    131131        Left = 8
    132         Height = 24
     132        Height = 26
    133133        Top = 57
    134134        Width = 102
     
    138138      object SpinEditMapSizeX: TSpinEdit
    139139        Left = 128
    140         Height = 34
     140        Height = 36
    141141        Top = 4
    142142        Width = 98
     
    148148      object SpinEditMapSizeY: TSpinEdit
    149149        Left = 128
    150         Height = 34
     150        Height = 36
    151151        Top = 55
    152152        Width = 98
     
    158158      object TrackBarSizeX: TTrackBar
    159159        Left = 240
    160         Height = 46
     160        Height = 47
    161161        Top = 8
    162162        Width = 412
     
    171171      object TrackBarSizeY: TTrackBar
    172172        Left = 240
    173         Height = 46
     173        Height = 47
    174174        Top = 49
    175175        Width = 412
     
    184184      object Label5: TLabel
    185185        Left = 8
    186         Height = 24
     186        Height = 26
    187187        Top = 104
    188188        Width = 83
     
    192192      object ComboBoxGridType: TComboBox
    193193        Left = 146
    194         Height = 38
     194        Height = 36
    195195        Top = 104
    196196        Width = 208
     
    206206      object ComboBoxMapShape: TComboBox
    207207        Left = 146
    208         Height = 38
     208        Height = 36
    209209        Top = 144
    210210        Width = 208
     
    221221      object Label8: TLabel
    222222        Left = 8
    223         Height = 24
     223        Height = 26
    224224        Top = 144
    225225        Width = 98
     
    239239      object SpinEditVoidPercent: TSpinEdit
    240240        Left = 216
    241         Height = 34
     241        Height = 36
    242242        Top = 224
    243243        Width = 106
     
    248248      object CheckBoxVoid: TCheckBox
    249249        Left = 8
    250         Height = 28
     250        Height = 30
    251251        Top = 232
    252252        Width = 187
     
    257257      object CheckBoxCity: TCheckBox
    258258        Left = 8
    259         Height = 28
     259        Height = 30
    260260        Top = 272
    261261        Width = 71
     
    266266      object SpinEditCityPercent: TSpinEdit
    267267        Left = 216
    268         Height = 34
     268        Height = 36
    269269        Top = 272
    270270        Width = 106
     
    275275      object Label4: TLabel
    276276        Left = 331
    277         Height = 24
     277        Height = 26
    278278        Top = 272
    279279        Width = 15
     
    283283      object Label3: TLabel
    284284        Left = 331
    285         Height = 24
     285        Height = 26
    286286        Top = 232
    287287        Width = 15
     
    291291      object SpinEditNeutralUnits: TSpinEdit
    292292        Left = 408
    293         Height = 34
     293        Height = 36
    294294        Top = 352
    295295        Width = 98
     
    301301      object Label7: TLabel
    302302        Left = 8
    303         Height = 24
     303        Height = 26
    304304        Top = 352
    305305        Width = 227
     
    309309      object EditImageFile: TEdit
    310310        Left = 144
    311         Height = 34
     311        Height = 36
    312312        Top = 184
    313313        Width = 396
     
    327327      object Label9: TLabel
    328328        Left = 8
    329         Height = 24
     329        Height = 26
    330330        Top = 184
    331331        Width = 90
     
    335335      object CheckBoxBridges: TCheckBox
    336336        Left = 8
    337         Height = 28
     337        Height = 30
    338338        Top = 310
    339339        Width = 210
     
    344344    object TabSheet3: TTabSheet
    345345      Caption = 'Rules'
    346       ClientHeight = 397
     346      ClientHeight = 395
    347347      ClientWidth = 663
    348348      object RadioGroupGrowCells: TRadioGroup
     
    360360        ChildSizing.Layout = cclLeftToRightThenTopToBottom
    361361        ChildSizing.ControlsPerLine = 1
    362         ClientHeight = 79
     362        ClientHeight = 77
    363363        ClientWidth = 308
    364364        Items.Strings = (
     
    406406        ChildSizing.Layout = cclLeftToRightThenTopToBottom
    407407        ChildSizing.ControlsPerLine = 1
    408         ClientHeight = 50
     408        ClientHeight = 48
    409409        ClientWidth = 301
    410410        Items.Strings = (
  • trunk/Forms/UFormNew.pas

    r130 r151  
    120120  SGrowAmountBySquareRoot = 'By square root';
    121121  SRectangular = 'Rectangular';
     122  SRounded = 'Rounded';
    122123  SFromImageFile = 'From image file';
    123124
     
    207208    Items.Add(SRectangular);
    208209    Items.Add(SFromImageFile);
     210    Items.Add(SRounded);
    209211    ItemIndex := LastIndex;
    210212  end;
  • trunk/Languages/xtactics.cs.po

    r148 r151  
    99"MIME-Version: 1.0\n"
    1010"Content-Transfer-Encoding: 8bit\n"
    11 "X-Generator: Poedit 2.0.2\n"
     11"X-Generator: Poedit 2.0.4\n"
    1212"Language: cs\n"
    1313
     
    8686
    8787#: tcore.ashowcharts.caption
    88 #, fuzzy
    89 #| msgid "Show charts"
    9088msgctxt "tcore.ashowcharts.caption"
    9189msgid "Charts"
    92 msgstr "Ukázat grafy"
     90msgstr "Grafy vývoje"
    9391
    9492#: tcore.ashowunitmoves.caption
    9593msgctxt "tcore.ashowunitmoves.caption"
    9694msgid "Unit moves"
    97 msgstr ""
     95msgstr "Pohyby jednotek"
    9896
    9997#: tformabout.buttonclose.caption
     
    334332#: tformnew.label8.caption
    335333msgid "Map shape:"
    336 msgstr "Tvar mapy"
     334msgstr "Tvar mapy:"
    337335
    338336#: tformnew.label9.caption
     
    362360#: tformnew.radiogroupgrowcells.caption
    363361msgid "Growing cells"
    364 msgstr "Rostoucí buňky:"
     362msgstr "Rostoucí buňky"
    365363
    366364#: tformnew.tabsheet1.caption
     
    440438
    441439#: tformsettings.checkboxautosaveturn.caption
    442 #, fuzzy
    443440msgctxt "tformsettings.checkboxautosaveturn.caption"
    444441msgid "Autosave game on each turn"
     
    481478msgctxt "tformunitmoves.caption"
    482479msgid "Unit moves"
    483 msgstr ""
     480msgstr "Pohyby jednotek"
    484481
    485482#: tformunitmoves.listview1.columns[0].caption
    486483msgid "From cell"
    487 msgstr ""
     484msgstr "Z buňky"
    488485
    489486#: tformunitmoves.listview1.columns[1].caption
    490487msgid "To cell"
    491 msgstr ""
     488msgstr "Do buňky"
    492489
    493490#: tformunitmoves.listview1.columns[2].caption
    494491msgid "Once count"
    495 msgstr ""
     492msgstr "Počet jednorázově"
    496493
    497494#: tformunitmoves.listview1.columns[3].caption
    498495msgid "Repeat count"
    499 msgstr ""
     496msgstr "Počet opakovaně"
    500497
    501498#: ucore.sendgame
     
    613610msgstr "Obdelníkový"
    614611
     612#: uformnew.srounded
     613msgid "Rounded"
     614msgstr "Zakulacený"
     615
    615616#: uformnew.swinobjectivecaptureposition
    616617msgid "Capture position"
     
    685686msgid "Zero zoom not allowed"
    686687msgstr "Nulové přiblížení není povoleno"
    687 
  • trunk/Languages/xtactics.po

    r148 r151  
    589589msgstr ""
    590590
     591#: uformnew.srounded
     592msgid "Rounded"
     593msgstr ""
     594
    591595#: uformnew.swinobjectivecaptureposition
    592596msgid "Capture position"
  • trunk/UGame.pas

    r149 r151  
    150150  end;
    151151
    152   TMapShape = (msRectangle, msImage);
     152  TMapShape = (msRectangle, msImage, msRounded);
    153153
    154154  { TMapArea }
     
    12691269  Color: TColor;
    12701270  Pos: TPoint;
     1271  Center: TPoint;
    12711272begin
    12721273  case Shape of
     
    12811282      Result := Color <> clWhite;
    12821283    end;
     1284    msRounded: begin
     1285      Rect := GetPixelRect;
     1286      Center := Point(Rect.Left + Rect.Width div 2, Rect.Top + Rect.Height div 2);
     1287      Result := Sqr(Coord.X - Center.X) / Sqr(Rect.Width div 2) +
     1288        Sqr(Coord.Y - Center.Y) / Sqr(Rect.Height div 2) > 1;
     1289    end
    12831290    else Result := False;
    12841291  end;
  • trunk/xtactics.lpi

    r148 r151  
    253253        <IsPartOfProject Value="True"/>
    254254        <ComponentName Value="FormUnitMoves"/>
     255        <HasResources Value="True"/>
    255256        <ResourceBaseClass Value="Form"/>
    256257      </Unit12>
Note: See TracChangeset for help on using the changeset viewer.