Changeset 24 for trunk/Forms


Ignore:
Timestamp:
Sep 28, 2011, 9:14:55 PM (13 years ago)
Author:
george
Message:
  • Fixed: Up to eight possible players with different colors.
  • Fixed: Damage done to correct player shield.
Location:
trunk/Forms
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.lfm

    r23 r24  
    5151    Width = 514
    5252    Align = alClient
     53    OnMouseLeave = Image1MouseLeave
    5354    OnResize = Image1Resize
    5455  end
  • trunk/Forms/UMainForm.pas

    r23 r24  
    4848    procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
    4949    procedure FormShow(Sender: TObject);
     50    procedure Image1MouseLeave(Sender: TObject);
    5051    procedure Image1Resize(Sender: TObject);
    5152    procedure TimerDrawTimer(Sender: TObject);
     
    201202end;
    202203
     204procedure TMainForm.Image1MouseLeave(Sender: TObject);
     205begin
     206
     207end;
     208
    203209procedure TMainForm.Image1Resize(Sender: TObject);
    204210begin
  • trunk/Forms/UMapForm.pas

    r21 r24  
    3030
    3131uses
    32   UCore;
     32  UCore, UMainForm;
    3333
    3434{ TMapForm }
     
    3737begin
    3838  Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height);
    39   Engine.World.DrawToBitmap(Image1.Picture.Bitmap);
     39  MainForm.Engine.World.DrawToBitmap(Image1.Picture.Bitmap);
    4040end;
    4141
  • trunk/Forms/UNewGameForm.pas

    r23 r24  
    3434
    3535uses
    36   UCore;
     36  UCore, UMainForm;
    3737
    3838{$R *.lfm}
     
    6060    BeginUpdate;
    6161    Clear;
    62     for I := 0 to Engine.PlayerPool.Count - 1 do
    63     with TPlayer(Engine.PlayerPool[I]) do begin
     62    for I := 0 to MainForm.Engine.PlayerPool.Count - 1 do
     63    with TPlayer(MainForm.Engine.PlayerPool[I]) do begin
    6464      NewItem := Items.Add;
    6565      NewItem.Caption := Name;
Note: See TracChangeset for help on using the changeset viewer.