Changeset 335
- Timestamp:
- Mar 31, 2021, 9:36:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r334 r335 3562 3562 MouseLoc: Integer; 3563 3563 begin 3564 if sb.ProcessMouseWheel(WheelDelta) then begin 3565 PanelPaint; 3566 Update; 3564 if (MousePos.Y > ClientHeight - MidPanelHeight) and 3565 (MousePos.Y < ClientHeight) then begin 3566 if sb.ProcessMouseWheel(WheelDelta) then begin 3567 PanelPaint; 3568 Update; 3569 end; 3567 3570 end else begin 3568 3571 if (WheelDelta > 0) and (MainMap.TileSize < High(TTileSize)) then begin … … 4883 4886 LoweredTextOut(TopBar.Canvas, -1, MainTexture, xResearchSection + 48 + 4884 4887 CostFactor + 26, 18, s); 4885 end 4888 end; 4886 4889 end; 4887 4890 if ClientMode <> cEditMap then … … 5234 5237 RectInvalidate(xMini + 2, TopBarHeight + MapHeight - overlap + yMini + 2, 5235 5238 xMini + 2 + G.lx * 2, TopBarHeight + MapHeight - overlap + yMini 5236 + 2 + G.ly) 5239 + 2 + G.ly); 5237 5240 end 5238 5241 else if MyMap[MouseLoc] and fCity <> 0 then { city clicked } … … 5247 5250 UnitStatDlg.ShowNewContent_EnemyCity(wmPersistent, MouseLoc); 5248 5251 DoCenter := false; 5249 end 5252 end; 5250 5253 end 5251 5254 else if MyMap[MouseLoc] and fUnit <> 0 then { unit clicked } … … 5269 5272 end; 5270 5273 if i = 0 then 5271 uix := UnFocus 5274 uix := UnFocus; 5272 5275 end 5273 5276 else … … 5295 5298 begin 5296 5299 Centre(MouseLoc); 5297 PaintAllMaps 5298 end 5300 PaintAllMaps; 5301 end; 5299 5302 end 5300 5303 else if (ClientMode <> cEditMap) and (Button = mbRight) and … … 5346 5349 Status := Status and ($FFFF - usStay - usRecover - usGoto - usEnhance) 5347 5350 or usWaiting; 5348 MoveUnit(dx, dy, muAutoNext) { simple move }5351 MoveUnit(dx, dy, muAutoNext); { simple move } 5349 5352 end 5350 5353 else if GetMoveAdvice(UnFocus, MouseLoc, MoveAdviceData) >= rExecuted … … 5371 5374 if BattleDlg.ModalResult <> mrOK then 5372 5375 exit; 5373 end 5376 end; 5374 5377 end; 5375 5378 DestinationMarkON := false; … … 5378 5381 usWaiting; 5379 5382 MoveToLoc(MouseLoc, false); { goto } 5380 end 5381 end 5383 end; 5384 end; 5382 5385 end 5383 5386 else if (Button = mbMiddle) and (UnFocus >= 0) and … … 5392 5395 MoveToLoc(MouseLoc, true); { goto } 5393 5396 if (UnFocus = uix) and (MyUn[uix].Loc = MouseLoc) then 5394 MenuClick(mEnhance) 5397 MenuClick(mEnhance); 5395 5398 end 5396 5399 else if (Button = mbLeft) and (ssShift in Shift) and … … 5427 5430 BattleDlg.IsSuicideQuery := false; 5428 5431 BattleDlg.Show; 5429 end 5430 end 5432 end; 5433 end; 5431 5434 end; 5432 5435
Note:
See TracChangeset
for help on using the changeset viewer.