Ignore:
Timestamp:
Mar 10, 2014, 11:01:14 PM (11 years ago)
Author:
chronos
Message:
  • Added: Option to create hexagonal or square map. This is implemented using object inheritance and virtual methods of class TMap.
  • Added: Dummy actions to load and save map.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r38 r39  
    2121    CheckBoxVoid: TCheckBox;
    2222    CheckBoxCity: TCheckBox;
     23    ComboBoxGridType: TComboBox;
    2324    Label1: TLabel;
    2425    Label2: TLabel;
    2526    Label3: TLabel;
    2627    Label4: TLabel;
     28    Label5: TLabel;
    2729    ListView1: TListView;
    2830    RadioGroupGrowCells: TRadioGroup;
     
    194196  RadioGroupGrowAmount.ItemIndex := Integer(Game.GrowAmount);
    195197  RadioGroupGrowCells.ItemIndex := Integer(Game.GrowCells);
     198  ComboBoxGridType.ItemIndex := Integer(Game.MapType) - 1;
    196199end;
    197200
     
    215218  Game.GrowAmount := TGrowAmount(RadioGroupGrowAmount.ItemIndex);
    216219  Game.GrowCells := TGrowCells(RadioGroupGrowCells.ItemIndex);
     220  Game.MapType := TMapType(ComboBoxGridType.ItemIndex + 1);
    217221end;
    218222
Note: See TracChangeset for help on using the changeset viewer.