Author Topic: Manually entering drag mode.  (Read 2711 times)

Christian Tellefsen

  • Guest
Manually entering drag mode.
« on: January 30, 2013, 04:12:14 AM »
Hi,

I have a game interface where there is a GUI with different objects, and a grid to place these objects in. Currently, the player can either:

1. Drag an object from the GUI into a grid to place it.
2. Click the object in the GUI to select it, then click the grid to place it.

What I want is to start a drag in case #2, so that I can click the object, and then press mouse down in the grid. This will then enter drag mode, only placing the object when the mouse is released. In effect, his will allow the user to reposition the object.

Is this possible?

Regards,
Christian Tellefsen

PS. NGUI is awesome.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Manually entering drag mode.
« Reply #1 on: January 30, 2013, 08:11:16 PM »
You will need to write your own logic for that. Don't use DragDropItem, write your own.

Christian Tellefsen

  • Guest
Re: Manually entering drag mode.
« Reply #2 on: January 31, 2013, 10:25:59 AM »
Thanks for the reply. I wrote my own, it was easy. :D