Ignore:
Timestamp:
Sep 14, 2024, 6:20:50 PM (2 months ago)
Author:
chronos
Message:
  • Added: Allow to scroll map with Ctrl+arrows/num keys.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/KeyBindings.pas

    r614 r615  
    117117  BRecover: TKeyBinding;
    118118  BUtilize: TKeyBinding;
    119   BMoveLeftDown: TKeyBinding;
    120   BMoveDown: TKeyBinding;
    121   BMoveRightDown: TKeyBinding;
    122   BMoveRight: TKeyBinding;
    123   BMoveRightUp: TKeyBinding;
    124   BMoveUp: TKeyBinding;
    125   BMoveLeftUp: TKeyBinding;
    126   BMoveLeft: TKeyBinding;
     119  BUnitMoveLeftDown: TKeyBinding;
     120  BUnitMoveDown: TKeyBinding;
     121  BUnitMoveRightDown: TKeyBinding;
     122  BUnitMoveRight: TKeyBinding;
     123  BUnitMoveRightUp: TKeyBinding;
     124  BUnitMoveUp: TKeyBinding;
     125  BUnitMoveLeftUp: TKeyBinding;
     126  BUnitMoveLeft: TKeyBinding;
     127  BMapMoveLeftDown: TKeyBinding;
     128  BMapMoveDown: TKeyBinding;
     129  BMapMoveRightDown: TKeyBinding;
     130  BMapMoveRight: TKeyBinding;
     131  BMapMoveRightUp: TKeyBinding;
     132  BMapMoveUp: TKeyBinding;
     133  BMapMoveLeftUp: TKeyBinding;
     134  BMapMoveLeft: TKeyBinding;
    127135
    128136
     
    382390  BRecover := AddItem('Recover', 'Recover', 'V');
    383391  BUtilize := AddItem('Utilize', 'Utilize', 'Z');
    384   BMoveLeftDown := AddItem('MoveLeftDown', 'Move unit left-down', 'Num1', 'End');
    385   BMoveDown := AddItem('MoveDown', 'Move unit down', 'Num2', 'Down');
    386   BMoveRightDown := AddItem('MoveRightDown', 'Move unit right-down', 'Num3', 'PgDn');
    387   BMoveRight := AddItem('MoveRight', 'Move unit right', 'Num6', 'Right');
    388   BMoveRightUp := AddItem('MoveRightUp', 'Move unit right-up', 'Num9', 'PgUp');
    389   BMoveUp := AddItem('MoveUp', 'Move unit up', 'Num8', 'Up');
    390   BMoveLeftUp := AddItem('MoveLeftUp', 'Move unit left-up', 'Num7', 'Home');
    391   BMoveLeft := AddItem('MoveLeft', 'Move unit left', 'Num4', 'Left');
     392  // Unit moves
     393  BUnitMoveLeftDown := AddItem('MoveLeftDown', 'Move unit left-down', 'Num1', 'End');
     394  BUnitMoveDown := AddItem('MoveDown', 'Move unit down', 'Num2', 'Down');
     395  BUnitMoveRightDown := AddItem('MoveRightDown', 'Move unit right-down', 'Num3', 'PgDn');
     396  BUnitMoveRight := AddItem('MoveRight', 'Move unit right', 'Num6', 'Right');
     397  BUnitMoveRightUp := AddItem('MoveRightUp', 'Move unit right-up', 'Num9', 'PgUp');
     398  BUnitMoveUp := AddItem('MoveUp', 'Move unit up', 'Num8', 'Up');
     399  BUnitMoveLeftUp := AddItem('MoveLeftUp', 'Move unit left-up', 'Num7', 'Home');
     400  BUnitMoveLeft := AddItem('MoveLeft', 'Move unit left', 'Num4', 'Left');
     401  // Map moves
     402  BMapMoveLeftDown := AddItem('MapMoveLeftDown', 'Move map left-down', 'Ctrl+Num1', 'Ctrl+End');
     403  BMapMoveDown := AddItem('MapMoveDown', 'Move map down', 'Ctrl+Num2', 'Ctrl+Down');
     404  BMapMoveRightDown := AddItem('MapMoveRightDown', 'Move map right-down', 'Ctrl+Num3', 'Ctrl+PgDn');
     405  BMapMoveRight := AddItem('MapMoveRight', 'Move map right', 'Ctrl+Num6', 'Ctrl+Right');
     406  BMapMoveRightUp := AddItem('MapMoveRightUp', 'Move map right-up', 'Ctrl+Num9', 'Ctrl+PgUp');
     407  BMapMoveUp := AddItem('MapMoveUp', 'Move map up', 'Ctrl+Num8', 'Ctrl+Up');
     408  BMapMoveLeftUp := AddItem('MapMoveLeftUp', 'Move map left-up', 'Ctrl+Num7', 'Ctrl+Home');
     409  BMapMoveLeft := AddItem('MapMoveLeft', 'Move map left', 'Ctrl+Num4', 'Ctrl+Left');
     410
    392411  SortAlpha;
    393412end;
     
    400419end.
    401420
    402 
Note: See TracChangeset for help on using the changeset viewer.