Ignore:
Timestamp:
Sep 28, 2011, 3:10:01 PM (13 years ago)
Author:
george
Message:
  • Added: Definition class for surface matter types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UNewGameForm.pas

    r21 r22  
    1818    Label1: TLabel;
    1919    ListView1: TListView;
     20    procedure ButtonStartClick(Sender: TObject);
    2021    procedure FormCreate(Sender: TObject);
     22    procedure ListView1Change(Sender: TObject; Item: TListItem;
     23      Change: TItemChange);
    2124  private
    2225    { private declarations }
     
    5255      NewItem.SubItems.Add('');
    5356      NewItem.Checked := Enabled;
     57      NewItem.Data := Pointer(Engine.Players[I]);
    5458    end;
    5559  finally
     
    5862end;
    5963
     64procedure TNewGameForm.ListView1Change(Sender: TObject; Item: TListItem;
     65  Change: TItemChange);
     66begin
     67  if Change = ctState then
     68    TPlayer(Item.Data).Enabled := Item.Checked;
     69end;
     70
     71procedure TNewGameForm.ButtonStartClick(Sender: TObject);
     72begin
     73
     74end;
     75
    6076end.
    6177
Note: See TracChangeset for help on using the changeset viewer.