Ignore:
Timestamp:
Dec 25, 2022, 2:30:52 PM (21 months ago)
Author:
chronos
Message:
  • Added: Main menu, new round screen, terrain map screen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r57 r59  
    219219  Shift: TShiftState);
    220220begin
    221   Engine.KeyBoard.KeyState[Key] := True;
     221  Engine.KeyDown(Key);
    222222  StatusBar1.Panels[0].Text := IntToStr(Key);
    223223end;
     
    225225procedure TFormMain.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
    226226  );
    227 const
    228   KeyF11 = 112;
    229 var
    230   I: Integer;
    231 begin
    232   Engine.KeyBoard.KeyState[Key] := False;
    233   {$IFDEF DEBUG}
    234   if Key = KeyF11 then begin
    235     // Destroy first alive player
    236     for I := 0 to Engine.Players.Count - 1 do
    237     with Engine.Players[I] do begin
    238       if not Exploded then begin
    239         Energy := -100;
    240         Break;
    241       end;
    242     end;
    243   end;
    244   {$ENDIF}
     227begin
     228  Engine.KeyUp(Key);
    245229end;
    246230
     
    250234  PersistentForm.Load(Self, False, True);
    251235  FullScreenEnabled := PersistentForm.FormFullScreen;
     236  {$IFDEF DEBUG}
     237  StatusBar1.Visible := True;
     238  {$ENDIF}
    252239end;
    253240
Note: See TracChangeset for help on using the changeset viewer.