618 Commits

Author SHA1 Message Date
NathanSweet
386134febe Removed unnecessary cast, property access. 2014-05-21 10:11:16 +02:00
NathanSweet
07d92bfde4 Updated line ending so Unity stops complaining. 2014-05-17 14:37:08 +02:00
NathanSweet
11055a22e4 Fixed mesh attachment using the slot vertices length. 2014-05-16 19:43:57 +02:00
NathanSweet
496466a1cc Hull length is no longer nonessential. 2014-05-10 15:33:00 +02:00
NathanSweet
83be769cc5 Read new atlas format that has width and height for each page. 2014-05-05 15:07:53 +02:00
NathanSweet
22c58fd8dc Fixed reading FFD. 2014-05-05 15:06:34 +02:00
NathanSweet
6432e43ea2 Clean up. 2014-04-29 20:27:31 +02:00
NathanSweet
5623631026 Clean up. 2014-04-28 17:51:17 +02:00
NathanSweet
04c0fec844 Fixed NPE. 2014-04-28 17:51:07 +02:00
NathanSweet
c1c12677ba API improvements.
Before I get too many damned runtimes done. ;)
2014-04-28 16:49:20 +02:00
NathanSweet
df971f7c70 Fixed skinned meshes with FFD. 2014-04-28 16:08:17 +02:00
NathanSweet
a76c396528 Separated updateRegions() from setMesh() to facilitate lazy loading atlas regions.
Moved setting path into SkeletonJson.
2014-04-28 13:29:06 +02:00
NathanSweet
b316b8d3e1 Scale mesh vertices! 2014-04-26 23:25:52 +02:00
NathanSweet
15b3f0979b Method to flip v and v2 in UVs. 2014-04-25 18:19:56 +02:00
NathanSweet
5b68fe5190 Meshes, FFD and skinning for spine-csharp and spine-xna.
Also updated example projects for spine-unity and spine-tk2d, but no meshes, FFD or skinning for those two yet.
2014-04-24 17:32:23 +02:00
NathanSweet
26e4fb0d74 License header update.
2 -> 2.1 (clearer how permission is granted, formatting).
2014-04-23 12:04:43 +02:00
NathanSweet
df70264a5b Go back to clearing the entry after the "end" listeners.
Changing the AnimationState state from an "end" listener is problematic even when the entry is cleared before the listener, so better to make the track that is ending available to the listener.
2014-03-17 16:53:33 +01:00
NathanSweet
f0e4b5e9b8 Fixed AnimationState error. 2014-03-13 16:19:54 +01:00
NathanSweet
951fe77c09 Merge branch 'origin/master' 2014-03-09 12:15:23 +01:00
NathanSweet
aff250daf4 Allow a track to mix with the track below.
http://esotericsoftware.com/forum/viewtopic.php?f=7&t=2248
2014-03-09 12:06:36 +01:00
Nathan Sweet
806d121e3d Merge pull request #198 from pharan/patch-1
Allow Skin.AddAttachment (C#) to overwrite safely
2014-03-08 16:12:44 +01:00
NathanSweet
211f82fedd Clear the track before calling end on the listener. 2014-03-08 00:20:26 +01:00
John
9e69a711b5 Allow Skin.AddAttachment to overwrite safely
Allow Skin.AddAttachment to overwrite an existing attachment as intended.
( For more info, see the Remarks section of: http://msdn.microsoft.com/en-us/library/k7z0zy8k%28v=vs.110%29.aspx )
2014-03-04 05:12:49 +08:00
NathanSweet
66a336e219 Adjusted line endings. 2014-02-05 18:09:16 +01:00
John
c5bc9a3cf4 AnimationState C# events subscription
Using the "event" keyword DOESN'T require the use of EventArgs derived classes as part of the method signature.

Events provide a (standard) layer of safety by preventing the nulling or complete reassignment.
It restricts external class interaction with the event to subscription with the += operator and unsubscription with the -= operator. This prevents unrelated objects from accidentally unsubscribing other objects from the event.

The null check is still required though.

For people who followed the examples, worked with the original events and only used += to subscribe to events, this change shouldn't affect client code at all.
2014-01-31 18:36:41 +08:00
John
7699e9b28f Fixed "CompleteDelete" typo in C# event delegates
Supposed to be "CompleteDelegate"?
2014-01-31 01:33:46 +08:00
NathanSweet
4216077c0e Better AnimationState event delegates. 2014-01-26 21:08:09 +01:00
NathanSweet
68d829556a Added getter for tracks.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1982
2014-01-26 16:46:30 +01:00
NathanSweet
2b241c3628 Fixed root bone translation.
Again.
2014-01-17 00:58:29 +01:00
NathanSweet
525ba52a6c Removed constants.
Constants weren't used for all names found the in the JSON, no point in doing it only for a few.
2014-01-13 18:09:48 +01:00
NathanSweet
b0c96fd66b Typo 2014-01-11 21:20:46 +01:00
NathanSweet
d520addb9b Updated license to version 2.
Version 1 of the license didn't make sense: it required a Spine license to use the Spine Runtimes at all. This means if you used the Spine Runtimes in your application, anyone who purchased a copy of your application also needed a Spine license to use the runtimes. This was not the intent!

Version 2 of the license fixes this by allowing anyone to use the Spine Runtimes but only for internal use. When you purchase Spine, the Spine license (http://esotericsoftware.com/spine/files/license.txt) grants you the right to make and distribute derivative works of the Spine Runtimes. Now it makes sense: making and distributing applications with the Spine Runtimes requires a Spine license, but anyone can run that software without needing a Spine license.

With this fixed, I hope we never need to change the license again!
2014-01-11 21:07:28 +01:00
NathanSweet
71956544ba Mix from closest animation if setting an animation during a mix. 2014-01-06 21:33:58 +01:00
NathanSweet
63f20379db Better root flipY logic. 2013-12-05 14:52:34 +01:00
NathanSweet
719e09d443 Fixed root translation with yDown coordinates.
http://www.esotericsoftware.com/forum/viewtopic.php?f=9&t=1657
2013-11-30 16:01:57 +01:00
NathanSweet
e5aca584a2 Avoid boxing in Skin dictionary.
closes #156
2013-11-07 13:56:16 +01:00
NathanSweet
2e46d250e5 Moved Polygon into the Spine namespace. 2013-10-23 19:04:02 +02:00
NathanSweet
a9315d46f3 Fixed animation state delay when not set right away. 2013-10-22 11:41:57 +02:00
NathanSweet
6be3dbb7ed Fixed spine-csharp. 2013-10-20 22:37:03 +02:00
NathanSweet
af5ff6c11f Fixed events not firing sometimes.
http://www.esotericsoftware.com/forum/viewtopic.php?f=9&t=1462
2013-10-20 12:18:01 +02:00
NathanSweet
3a1aac897c Better delay adjustment. 2013-10-17 01:13:22 +02:00
NathanSweet
c25809fa4f When delay is <= 0 use remaining time, not just duration.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1447
2013-10-16 11:04:29 +02:00
Liquidoodle
b51a110c54 Fixed file loading for XNA on Windows Phone 7. 2013-10-10 18:02:50 +01:00
NathanSweet
f3be613429 Fixed clearing tracks in event callbacks. 2013-10-10 18:49:16 +02:00
NathanSweet
7bd9eeeee6 Use 3 arg Enum.Parse. 2013-10-10 16:02:50 +02:00
NathanSweet
97f9b7e4d2 Fixed clearing tracks in event callbacks.
closes #134
2013-10-10 10:15:53 +02:00
Nathan Sweet
90c49a86f4 Merge pull request #133 from pharan/patch-3
changed findEvent to FindEvent (to match change in SkeletonData.cs)
2013-10-09 04:37:42 -07:00
John
2572a4ede9 changed findEvent to FindEvent (to match change in SkeletonData.cs) 2013-10-09 14:34:44 +08:00
John
402b3c862f changed findEvent to FindEvent (C# method naming) 2013-10-09 14:32:56 +08:00
NathanSweet
9a347d5eb8 Updated license.
Nailed it this time, quite sure!
2013-10-04 04:13:09 +02:00