Changeset 69 for trunk/Forms


Ignore:
Timestamp:
Sep 28, 2014, 5:42:51 PM (10 years ago)
Author:
chronos
Message:
 
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r62 r69  
    55  Width = 775
    66  Caption = 'xTactics'
    7   ClientHeight = 600
     7  ClientHeight = 595
    88  ClientWidth = 775
    99  Menu = MainMenu1
     
    1313  OnDestroy = FormDestroy
    1414  OnShow = FormShow
    15   LCLVersion = '1.0.10.0'
     15  LCLVersion = '1.3'
    1616  WindowState = wsMaximized
    1717  object PaintBox1: TPaintBox
    1818    Left = 40
    19     Height = 579
     19    Height = 569
    2020    Top = 0
    2121    Width = 735
     
    3232  object StatusBar1: TStatusBar
    3333    Left = 0
    34     Height = 21
    35     Top = 579
     34    Height = 26
     35    Top = 569
    3636    Width = 775
    3737    Panels = <   
     
    4949  object ToolBar1: TToolBar
    5050    Left = 0
    51     Height = 579
     51    Height = 569
    5252    Top = 0
    5353    Width = 40
     
    8787    object ToolButton6: TToolButton
    8888      Left = 1
    89       Top = 194
     89      Top = 172
    9090      Action = AZoomIn
    9191    end
    9292    object ToolButton7: TToolButton
    9393      Left = 1
    94       Top = 226
     94      Top = 204
    9595      Action = AZoomOut
    9696    end
    9797    object ToolButton8: TToolButton
    9898      Left = 1
    99       Top = 258
     99      Top = 236
    100100      Action = AZoomAll
    101101    end
  • trunk/Forms/UFormMain.pas

    r62 r69  
    343343procedure TFormMain.PaintBox1MouseUp(Sender: TObject; Button: TMouseButton;
    344344  Shift: TShiftState; X, Y: Integer);
    345 begin
    346   if (Abs(StartMousePoint.X - X) < 5) and (Abs(StartMousePoint.Y - Y) < 5) then begin
     345const
     346  MouseMinDiff = 10;
     347begin
     348  if (Abs(StartMousePoint.X - X) < MouseMinDiff) and (Abs(StartMousePoint.Y - Y) < MouseMinDiff) then begin
    347349    if Core.Game.Running and (Core.Game.CurrentPlayer.Mode = pmHuman) then begin
    348350      Core.Game.CurrentPlayer.View.SelectCell(Point(X, Y), Core.Game.CurrentPlayer);
Note: See TracChangeset for help on using the changeset viewer.