Christopher
418545f706
Refactored recent EventDispatcher and drag handler changes to match Fungus coding standard.
8 years ago
fjruizpo
77cd77d154
Register DragCompleted handler to Draggable2D instead of finding all instances in the scene.
8 years ago
fjruizpo
4b50ab40a6
Change Draggable2D and Clickable2D to use the new EventDispatcher calls for events.
8 years ago
Christopher
1ba09f25e8
Converted (most) foreach to for statements. Avoids an allocation for the loop iterator.
8 years ago
Christopher
3510fc7f9a
Converted all foreach statement to act on simple variables.
8 years ago
Christopher
060b7b46a2
Reverted Fungus sub namespaces as they were breaking backwards compatibility. Kept the Fungus.EditorUtils namespace though as it doesn't affect compatibility.
8 years ago
Christopher
253ac9ebc6
Renamed public methods to public members
8 years ago
Christopher
14f0af215e
Reverted IDraggable2D interface
8 years ago
Christopher
071fb7c345
Added Fungus.Commands, Fungus.EventHandlers, Fungus.Variables and Fungus.Utils namespaces
8 years ago
Christopher
627e167f88
Moved all scripts into a unified script folder (except Flowchart yet)
8 years ago
Christopher
b423d7f313
Refactored Draggable2D to use IDraggable2D interface
8 years ago
Christopher
cc4406a8fb
Change all public properties to use virtual
8 years ago
Christopher
f130385f6f
Changed comment style on header block
8 years ago
Christopher
769f0ffabb
Refactored sprite comments
8 years ago
Christopher
5af70d66e6
Fixes to make all tests pass
8 years ago
Christopher
83c12c7e76
Refactored many classes to use protected serialisable fields, with public property accessors where required.
8 years ago
Christopher
239bf8fefe
Converted tabs to spaces in all .cs files
8 years ago
Christopher
98d8fd089e
Clickable2D and Dragable2D components can now use legacy input or EventSystem events / recasts.
...
Added DragAndDrop(EventSystem) example scene to show how to use the EventSystem option.
8 years ago
Christopher
6c0dfba807
Fixed Clickable2D and Draggable2D to use event system to correctly block clicks on UI elements.
...
Updated drag and drop demo scene.
8 years ago
Christopher
67adbab9a0
Added open source license header to all source files
9 years ago
chrisgregan
22e733055e
Draggable sprite anchors at exact point user clicked
9 years ago
chrisgregan
15b26ce60e
Changed move code to use LeanTween instead of iTween
9 years ago
chrisgregan
ce0f9e2daa
Fixed: Draggable objects don't return to start pos if drag completes #130
9 years ago
chrisgregan
407d13f4ca
Added Set Mouse Cursor command and drag and drop support
9 years ago
chrisgregan
3e3359bc7f
Fix iTween overriding position when dragging an object #107
10 years ago
chrisgregan
4cc04e5546
Added some missing command tooltips
10 years ago
chrisgregan
5a931441d4
Merge branch 'Rename-core-classes'
10 years ago
chrisgregan
5d0e7ac167
Fixed issue with dragging an object while tweening
10 years ago
chrisgregan
e3a58966d2
Setting Draggable2D drag enabled to false doesn't stop mouse up events #87
...
Handler methods now early out if dragEnabled is false.
10 years ago
chrisgregan
5a18ddfb41
Upgraded to Unity 5
...
Also updated Sherlock example game
10 years ago
chrisgregan
5e47179899
Dragged objects do not return to start position if drag action
...
completes.
10 years ago
chrisgregan
e861cf1d9c
Added drag and drop and clickable sprite support
...
Added DragAndDrop example scene
Added Clickable2D and Draggable2D components to make sprites clickable
and draggable.
Added event handlers which list for events from the Clickable2D and
Draggable2D components.
10 years ago