Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Christian Tellefsen on January 30, 2013, 04:12:14 AM

Title: Manually entering drag mode.
Post by: Christian Tellefsen 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.
Title: Re: Manually entering drag mode.
Post by: ArenMook 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.
Title: Re: Manually entering drag mode.
Post by: Christian Tellefsen on January 31, 2013, 10:25:59 AM
Thanks for the reply. I wrote my own, it was easy. :D