Does anyone have a good example of a button class that implements methods like the following...
For example:
onButtonPress
onButtonDrag
onButtonRelease
onButtonExit
Basically I need to be able to press, drag and drop a button onto a grid without actually moving the button.... so I'm thinking onButtonPress creates a temporary movable sprite that maybe has a callback to onButtonRelease to handle the actual drop onto grid logic....
Has anyone done anything like this before? I have to implement this functionality in order to move forward in the next phase of a project and just wanted to see if there's already something out there before I roll my own...
Thanks!