コード例 #1
0
 public override void OnMouseLeftUp(Point location)
 {
     if (moving)
     {
         moving     = false;
         moveAction = null;
     }
 }
コード例 #2
0
 public override void OnMouseMove(Point location)
 {
     if (moving && LayerEditor.MouseSnapPosition != moveEntity.Nodes[moveIndex])
     {
         if (moveAction == null)
         {
             moveAction = new EntityMoveNodeAction(LayerEditor.Layer, moveEntity, moveIndex, LayerEditor.MouseSnapPosition);
             LevelEditor.Perform(moveAction);
         }
         else
         {
             moveAction.DoAgain(LayerEditor.MouseSnapPosition);
         }
     }
 }