Changeset 87 for trunk/Forms


Ignore:
Timestamp:
Jun 7, 2024, 12:59:18 PM (5 months ago)
Author:
chronos
Message:
  • Added: Use also numeric keyboard for movement.
  • Modified: Moved Settings menu under Tools menu.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.lfm

    r86 r87  
    11object FormMain: TFormMain
    2   Left = 684
    3   Height = 521
    4   Top = 307
    5   Width = 580
     2  Left = 534
     3  Height = 993
     4  Top = 223
     5  Width = 1491
    66  Caption = '2048'
    77  DesignTimePPI = 144
     
    2828        Action = Core.AUndo
    2929      end
    30       object MenuItem1: TMenuItem
    31         Action = Core.ASettings
    32       end
    3330      object MenuItemExit: TMenuItem
    3431        Action = Core.AExit
     
    4542    object MenuItemTools: TMenuItem
    4643      Caption = 'Tools'
     44      object MenuItem1: TMenuItem
     45        Action = Core.ASettings
     46      end
    4747      object MenuItem4: TMenuItem
    4848        Action = Core.AComputer
  • trunk/Forms/FormMain.pas

    r86 r87  
    9696  KeyRight = 39;
    9797  KeyDown = 40;
     98  KeyNumPadLeft = 100;
     99  KeyNumPadUp = 104;
     100  KeyNumPadRight = 102;
     101  KeyNumPadDown = 98;
    98102begin
    99103  if Core.Core.Game.Running then begin
    100104    case Key of
    101       KeyLeft: AddToMoveBuffer(drLeft);
    102       KeyUp: AddToMoveBuffer(drUp);
    103       KeyRight: AddToMoveBuffer(drRight);
    104       KeyDown: AddToMoveBuffer(drDown);
     105      KeyLeft, KeyNumPadLeft: AddToMoveBuffer(drLeft);
     106      KeyUp, KeyNumPadUp: AddToMoveBuffer(drUp);
     107      KeyRight, KeyNumPadRight: AddToMoveBuffer(drRight);
     108      KeyDown, KeyNumPadDown: AddToMoveBuffer(drDown);
    105109    end;
    106110    //ProcessMoveBuffer;
Note: See TracChangeset for help on using the changeset viewer.