Changeset 615 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Sep 14, 2024, 6:20:50 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r614 r615 13 13 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 14 14 LCLIntf, LCLType, Menus, SysUtils, Classes, DrawDlg, Types, Math, 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help, 16 16 GraphicSet, MiniMap, IsoEngine, Wonders, TechTree, Enhance, Nego, CityType, 17 17 Diagram, CityScreen, Rates, Battle, NatStat, UnitStat, Draft, Select, MessgEx, 18 Help,19 18 {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.Menus, Dpi.ExtCtrls, 20 19 Dpi.PixelPointer, Dpi.Common, System.UITypes{$ELSE} … … 244 243 Shift: TShiftState; X, Y: Integer); 245 244 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 245 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 246 246 procedure mDisbandOrUtilizeClick(Sender: TObject); 247 247 procedure FormResize(Sender: TObject); … … 270 270 procedure mNamesClick(Sender: TObject); 271 271 procedure MapBtnClick(Sender: TObject); 272 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);273 272 procedure CreateUnitClick(Sender: TObject); 274 273 procedure mSoundOffClick(Sender: TObject); … … 7120 7119 end; 7121 7120 7121 procedure DoMoveMap(X, Y: Integer); 7122 var 7123 ScrollSpeed: Integer; 7124 begin 7125 if mScrollFast.Checked then ScrollSpeed := 2 7126 else ScrollSpeed := 1; 7127 if (X <> 0) or (Y <> 0) then begin 7128 Scroll(X * ScrollSpeed, Y * ScrollSpeed); 7129 end; 7130 end; 7131 7122 7132 var 7123 7133 Time0, Time1: TDateTime; … … 7241 7251 InitPopup(TerrainPopup); 7242 7252 if mEnhance.Visible and mEnhance.Enabled then mEnhance.Click 7243 else mEnhanceDef.Click 7253 else mEnhanceDef.Click; 7244 7254 end 7245 7255 else if BGoOn.Test(ShortCut) then MenuClick_Check(UnitPopup, mGoOn) … … 7267 7277 else if BRecover.Test(ShortCut) then MenuClick_Check(UnitPopup, mRecover) 7268 7278 else if BUtilize.Test(ShortCut) then MenuClick_Check(UnitPopup, mUtilize) 7269 else if BMoveLeftDown.Test(ShortCut) then DoMoveUnit(-1, 1) 7270 else if BMoveDown.Test(ShortCut) then DoMoveUnit(0, 2) 7271 else if BMoveRightDown.Test(ShortCut) then DoMoveUnit(1, 1) 7272 else if BMoveLeft.Test(ShortCut) then DoMoveUnit(-2, 0) 7273 else if BMoveRight.Test(ShortCut) then DoMoveUnit(2, 0) 7274 else if BMoveLeftUp.Test(ShortCut) then DoMoveUnit(-1, -1) 7275 else if BMoveUp.Test(ShortCut) then DoMoveUnit(0, -2) 7276 else if BMoveRightUp.Test(ShortCut) then DoMoveUnit(1, -1); 7279 // Unit move 7280 else if BUnitMoveLeftDown.Test(ShortCut) then DoMoveUnit(-1, 1) 7281 else if BUnitMoveDown.Test(ShortCut) then DoMoveUnit(0, 2) 7282 else if BUnitMoveRightDown.Test(ShortCut) then DoMoveUnit(1, 1) 7283 else if BUnitMoveLeft.Test(ShortCut) then DoMoveUnit(-2, 0) 7284 else if BUnitMoveRight.Test(ShortCut) then DoMoveUnit(2, 0) 7285 else if BUnitMoveLeftUp.Test(ShortCut) then DoMoveUnit(-1, -1) 7286 else if BUnitMoveUp.Test(ShortCut) then DoMoveUnit(0, -2) 7287 else if BUnitMoveRightUp.Test(ShortCut) then DoMoveUnit(1, -1) 7288 // Map move 7289 else if BMapMoveLeftDown.Test(ShortCut) then DoMoveMap(-1, 1) 7290 else if BMapMoveDown.Test(ShortCut) then DoMoveMap(0, 2) 7291 else if BMapMoveRightDown.Test(ShortCut) then DoMoveMap(1, 1) 7292 else if BMapMoveLeft.Test(ShortCut) then DoMoveMap(-2, 0) 7293 else if BMapMoveRight.Test(ShortCut) then DoMoveMap(2, 0) 7294 else if BMapMoveLeftUp.Test(ShortCut) then DoMoveMap(-1, -1) 7295 else if BMapMoveUp.Test(ShortCut) then DoMoveMap(0, -2) 7296 else if BMapMoveRightUp.Test(ShortCut) then DoMoveMap(1, -1); 7277 7297 end; 7278 7298 end;
Note:
See TracChangeset
for help on using the changeset viewer.