Ignore:
Timestamp:
Aug 18, 2014, 9:34:15 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: More translation of TGroupBox and TComboBox items.
  • Fixed: Shape of hexagon was not regular due to rounding error in polygon generation and drawing. Cells are now generated internally as bigger to avoid rounding error.
  • Fixed: After game end do not allow to execute End turn and End game actions.
  • Added: Preparation for random voronoi map. So far hidden in developer mode as algorithm is missing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormPlayer.pas

    r29 r55  
    2525    { private declarations }
    2626  public
     27    procedure Translate;
    2728    procedure Load(Player: TPlayer);
    2829    procedure Save(Player: TPlayer);
     
    3637{$R *.lfm}
    3738
     39resourcestring
     40  SHuman = 'Human';
     41  SComputer = 'Computer';
     42
    3843{ TFormPlayer }
     44
     45procedure TFormPlayer.Translate;
     46var
     47  LastIndex: Integer;
     48begin
     49  with ComboBox1 do begin
     50    LastIndex := ItemIndex;
     51    Clear;
     52    Items.Add(SHuman);
     53    Items.Add(SComputer);
     54    ItemIndex := LastIndex;
     55  end;
     56end;
    3957
    4058procedure TFormPlayer.Load(Player: TPlayer);
Note: See TracChangeset for help on using the changeset viewer.