示例#1
0
 private void OnDragState(bool start)
 {
     if (start)
     {
         if (!this.dragging && !this.startedNoItem)
         {
             UICamera.Cursor.DropNotification = DropNotificationFlags.DragLand | DropNotificationFlags.AltLand | DropNotificationFlags.RegularHover | DropNotificationFlags.DragLandOutside;
             this.lastLanding = null;
             this.dragging    = true;
             RPOS.Item_CellDragBegin(this);
             UICamera.Cursor.CurrentButton.ClickNotification = UICamera.ClickNotification.BasedOnDelta;
         }
     }
     else if (this.dragging)
     {
         this.dragging = false;
         if (!this.lastLanding)
         {
             RPOS.Item_CellReset();
         }
         else
         {
             this.dragging = false;
             RPOS.Item_CellDragEnd(this, this.lastLanding);
             UICamera.Cursor.Buttons.LeftValue.ClickNotification = UICamera.ClickNotification.None;
         }
     }
 }