Changeset 245 for trunk/Forms
- Timestamp:
- Sep 22, 2018, 1:07:53 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormClient.lfm
r241 r245 7 7 ClientHeight = 621 8 8 ClientWidth = 775 9 DesignTimePPI = 1 209 DesignTimePPI = 144 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate … … 17 17 object StatusBar1: TStatusBar 18 18 Left = 0 19 Height = 2820 Top = 59 319 Height = 30 20 Top = 591 21 21 Width = 775 22 22 Panels = < … … 34 34 object ToolBar1: TToolBar 35 35 Left = 0 36 Height = 59 336 Height = 591 37 37 Top = 0 38 38 Width = 32 … … 80 80 object PaintBox1: TPaintBox 81 81 Left = 32 82 Height = 59 382 Height = 591 83 83 Top = 0 84 84 Width = 743 -
trunk/Forms/UFormClient.pas
r243 r245 12 12 const 13 13 ZoomFactor = 1.5; 14 MinZoom = 0.05; 15 MaxZoom = 10; 14 16 MouseMinDiff = 0.1; 15 17 … … 447 449 begin 448 450 with Client do begin 449 View.Zoom := View.Zoom * ZoomFactor; 451 if View.Zoom * ZoomFactor < MaxZoom then 452 View.Zoom := View.Zoom * ZoomFactor; 450 453 end; 451 454 Redraw; … … 453 456 454 457 procedure TFormClient.AZoomOutExecute(Sender: TObject); 455 //var456 // D: TPoint;457 458 begin 458 459 with Client do begin 459 //D := Point(Trunc(MousePos.X - View.Left / ViewZoom), 460 // Trunc(MousePos.Y - View.Top / ViewZoom)); 461 View.Zoom := View.Zoom / ZoomFactor; 462 //View := Bounds(Trunc((D.X - MousePos.X) * ViewZoom), 463 // Trunc((D.Y - MousePos.Y) * ViewZoom), 464 // View.Right - View.Left, 465 // View.Bottom - View.Top); 460 if View.Zoom / ZoomFactor > MinZoom then 461 View.Zoom := View.Zoom / ZoomFactor; 466 462 end; 467 463 Redraw; -
trunk/Forms/UFormHelp.pas
r243 r245 52 52 'In case of tie, defender wins. Loser lose its unit and another pair of dices is evaluated. ' + 53 53 'This process is calculated automatically and for each planned attack win ' + 54 'probability is displayed.'; 54 'probability is displayed.' + 55 LineEnding + LineEnding + 56 'Units can be moved by clicking on owned cell and then by clicking on target neutral ' + 57 'or enemy cell. Moves can be set to be repeated every turn with defined number of units. ' + 58 'Repeated unit moves can be set in Unit move dialog or simply by holding Control key while selecting target cell. ' + 59 'If there are multiple unit moves from one cell to more other cells and ' + 60 'you want to move all available cells to target cell, then you can do so by holding Shift key while selecting target cell.'; 55 61 56 62 {$R *.lfm}
Note:
See TracChangeset
for help on using the changeset viewer.