91 Commits

Author SHA1 Message Date
Harald Csaszar
4cd1d13d3a [csharp][unity] Fixed compile error on older Unity/csharp versions of previous commit 3250e74 "Port sequence attachment." See #1956. 2021-11-03 16:08:31 +01:00
Harald Csaszar
3250e74e26 [csharp][unity] Port sequence attachment. See #1956. Also port of other 4.1-beta branch changes compared to 4.0. 2021-11-03 15:26:22 +01:00
Nathan Sweet
96a998b82d Spine Runtimes License Agreement update (September 24, 2021). 2021-09-24 18:18:19 -10:00
Harald Csaszar
dfa2513f3d [csharp][unity] Added spine-csharp .meta files to git. Required for UPM package. See #1676. 2021-09-06 17:39:58 +02:00
Mario Zechner
d12b15ca8d [csharp] Format all source code using formatters/.editorconfig 2021-08-18 18:59:53 +02:00
Nathan Sweet
0347c262e0 [ts, csharp] Revert RegionAttachment#UpdateOffset from csharp to ts, instead use ts code.
#1889
2021-06-10 00:04:28 -04:00
Nathan Sweet
791a9e6c4a [csharp] RegionAttachment#UpdateOffset clean up. 2021-06-09 23:55:52 -04:00
Nathan Sweet
963da7561e [csharp] Code style update.
* `else` on same line as `if` brace.
* `var` only when the type is shown.
* Removed unnecessarily locals, eg `var events = this.events; var eventsItems = events.Items;`.
* Don't indent `case`.
* ExposedList for EventQueue just so iteration can use array indexing.
* EventQueue, inner members (struct/enum) after methods.
* No braces for single line `if/else/for`.
* Removed comments noting ref impl code, eg `// abc.setSize(xyz);`.
* Removed comments that didn't add to what the code shows, eg `// Pooling`.
* Removed comments not in ref impl about implementation details, eg `// nextTrackLast == -1 ...`.
* Removed commented code we are not using.
* Use local with list.Items when iterating.
2021-05-31 01:26:41 -04:00
Nathan Sweet
f8d6359b32 [csharp][unity] Updated TextureAtlas parsing for latest format. 2020-12-20 15:26:05 -08:00
Harald Csaszar
7ef2fc96db [csharp] Porting of commits dbd90ca, da1b280, 10d5a91 and e14db0e (includes 4.0 format changes). Fixed errors in color parsing introduced by previous porting 4.0 commit.
* Added separate X and Y for transform constraint translate and scale mix.
* Renamed `xxxMix` to `mixXxx` to avoid names like `scaleXMix`.
* Added separate X and Y sliders for path constraint translate mix.
* Added a proportional spacing mode to path constraints.
* Fixed path constraint when a parent bone of the path is scaled.
2020-11-16 21:01:11 +01:00
Harald Csaszar
d2529d410b [csharp] Porting of major 4.0-beta runtime changes. Remaining Unity assets will be updated in separate commit. See #1796. 2020-10-22 14:44:13 +02:00
badlogic
b67bf992a0 Single bone IK fix and license header update. Closes #1580, closes #1581. 2019-12-20 12:20:46 +01:00
Harald Csaszar
cb59d8d78b [csharp] Fixed RegionAttachment copy method, did not copy color. Closes #1555. 2019-11-27 10:36:35 +01:00
badlogic
6d674c975f [chsarp] MeshAttachment Copy() and NewLinkedMesh() didn't copy region UVs properly. Closes #1499. 2019-09-19 16:39:43 +02:00
NathanSweet
842dffbd83 [all] Source clean up, formatting, and tabs for indentation. 2019-08-27 15:57:14 +02:00
Harald Csaszar
4d21180570 [csharp] Fixed MeshAttachment copies not copying rotation. Closes #1452. 2019-08-15 11:15:00 +02:00
Harald Csaszar
68f8cc40c4 [csharp] Added missing csharp-specific lines for latest API changes (missing copying of Attachment.RenderObject). See #841. 2019-06-03 18:34:54 +02:00
Harald Csaszar
42da1973e4 [csharp] More skin API changes, ports of commits 8d0ffd0 and 829fcc4. See #841. 2019-06-03 16:48:31 +02:00
Harald Csaszar
4a684f63bf [csharp] Ported more skin API changes of commits eae88a0 and b87ff73 (Added Mesh#newLinkedMesh(), replaced VertexAttachment#applyDeform with VertexAttachment#deformAttachment), see #841. 2019-05-31 21:25:46 +02:00
Harald Csaszar
c63bc7b88f [csharp] See #1346: Port bone/constraint association with skins. Also contains second (and final) partial port of commit ff5b854. Adapted spine-unity for skin changes. Fixed a bug in Skin setter property. 2019-05-22 18:37:57 +02:00
Harald Csaszar
a009c35b82 [csharp] Ported skin API changes, see #841. 2019-05-17 13:54:56 +02:00
badlogic
09130b15df Merge branch '3.7' into 3.8-beta 2019-05-02 11:43:36 +02:00
badlogic
7f7e5f0fec Updated license headers and LICENSE files. 2019-05-02 11:38:19 +02:00
badlogic
470c2f5953 [csharp] Ported rotated mesh region UV loading. See #1327. 2019-04-18 18:21:49 +02:00
Harald Csaszar
0d30263f50 [csharp] Ported AnimationState and Animation changes of commit 50bfb3a. See #1303. 2019-03-19 17:27:37 +01:00
Harald Csaszar
9deb3be61c [csharp] Ported AnimationState and Animation changes of commit bd306d4. See #1303. 2019-03-19 17:27:37 +01:00
Harald Csaszar
f186a83fca [csharp] Unified all line endings of files in spine-csharp to lf. 2018-12-24 12:43:06 +01:00
Harald Csaszar
ff67c6c039 [csharp] Port of mesh whitespaces stripping. See #1232. 2018-12-23 17:42:07 +01:00
pharan
514450f3a5 [csharp] IHasRendererObject setter 2018-09-08 21:08:28 +08:00
pharan
2345764fbf [csharp] Port RegionAttachment.java checking for compatible region values. 2018-03-08 22:40:00 +08:00
pharan
f6a98b0f43 [csharp] IHasRendererObject 2018-01-18 00:39:21 +08:00
John
5e0ff3694d [csharp] Cleanup VertexAttachment id threadsafety 2017-06-14 04:11:38 +08:00
pharan
61a5058a5c [csharp] Thread safety for acquiring next VertexAttachment ID. 8a78eb4cf5 2017-06-13 08:52:37 +08:00
John
45bdf87dac [csharp] readonly VertexAttachment.id 2017-06-11 02:37:03 +08:00
pharan
14d031cb78 [csharp] Added shifted vertex attachment IDs for DeformTimeline. 2017-06-11 00:38:38 +08:00
pharan
714f010006 [csharp] Minor changes to Attachments for 3.6 2017-06-10 06:41:20 +08:00
badlogic
0fd553e75a [csharp][libgdx] Fixed indexing in RegionAttachment. [monogame][xna] Fixed SkeletonMeshRenderer clipping 2017-04-20 15:02:24 +02:00
badlogic
63c3a48014 [csharp] Added clipping attachment, loading and subs for clipping code 2017-04-19 14:14:09 +02:00
pharan
af2b483ca7 [csharp] Fix UV/Vertex order to favor existing renderers. 2017-02-27 00:32:17 +08:00
pharan
2c92a4689b [csharp] Matching and cleanup. 1 of 2 2017-02-24 16:56:35 +08:00
pharan
3736a5c3dc [csharp] Ported 3.6-beta changes. 2017-01-28 23:20:23 +08:00
pharan
a05ee4130f [csharp][unity][monogame][xna] Updated for compatibility with Spine 3.5.x 2016-11-01 23:46:47 +08:00
NathanSweet
e2c870ff0c Formatting. 2016-10-27 16:23:02 +02:00
NathanSweet
c0fdc454a2 Fixed inconsistent newlines.
License header was followed by \n\n and files ended with \n. Changed to \r\n.
2016-10-15 23:45:16 +02:00
NathanSweet
7a18f0818c Every space in its place! (tm)
(whitespace clean up)
2016-10-15 23:15:41 +02:00
badlogic
5aa27771c3 [runtimes] Updated ALL sources to use latest Spine Runtimes License v2.5. Manually checked all the things... 2016-10-13 15:12:05 +02:00
Mario Zechner
f84ae17615 Updated License Headers 2016-10-13 10:27:54 +02:00
John
ccb9303681 [spine-unity] Fixed linked weighted meshes. 2016-07-05 06:11:20 +08:00
Pavel Platto
70b3e0f86f [csharp][libgdx] fix iterating bones in VertexAttachment.ComputeWorldVertices.
Postincrement affects its variable only when entire expression is evaluated.
2016-07-01 11:21:14 +02:00
John
1c19365325 [csharp][monogame][unity][xna] Updated to 3.3.x (#623)
* [spine-csharp] Ported 3.3 changes of Animation and inner classes. Added MathUtils.Clamp

* [spine-csharp] Ported 3.3 changes of AnimationStateData. Updated .gitignore to exclude .meta files from spine-csharp

* [spine-csharp] Ported 3.3 changes of Bone

* [spine-csharp] Ported 3.3 changes of BoneData

* [spine-csharp] Ported 3.3 changes of Event

* [spine-csharp] Ported 3.3 changes to IKConstraint. Also got rid of the hideous labeled break. Replaced with while and sprinkled continues and break :D

* [spine-csharp] Mario is not good with labeled breaks. Fixed with goto

* [spine-csharp] Ported more 3.3 changes, only SkeletonJson and SkeletonBinary left. Unity runtime also needs updating with new changes

* [spine-csharp] fixed compilation errors initially not reported by Mono CS

* Minor clean up.

Every space has its place.™

* Match csharp 3.3 refactorings.

* [Unity] Minor cleanup in SkeletonBaker.

* Better exception messages.

* Removed extra usings. Matched whitespace style.

* Fixed Bone.cs method PascalCase and xml documentation.

* Fixed Exception ctor arguments.

* Fixed single bone IK mixing.

Matched libgdx commit:
e0ee18a088

* [spine-csharp] Port of 3.3 changes to SkeletonJson, incomplete

* [Unity] Ragdoll: account for shear and new constraints.

* [spine-csharp] Ported 3.3 changes to SkeletonJson

* [spine-csharp] Ported 3.3 changes to SkeletonBinary. Time for testing and debugging

* [spine-csharp] Fixed up XNA runtime

* Added simple example data in new exports/ folder

* [spine-csharp] Fixed bug in Slot construtor, wasn't assigning index. Fixed bug in CurveTimeline, argument guard was wrong. Fixed bugs in SkeletonJson, indexing to get duration of a timeline was wrong. Added simple example to spine-xna for easier debugging

* [spine-csharp] Fixed porting bug in ColorTimeline#apply, indexing was wrong

* [spine-csharp] Fixed SkeletonJson#ReadVertices, calling resize on temp lists was wrong. Updated goblin sample in spine-xna, fixed mesh attachment rendering in spine-xna.

* [spine-xna] Added binary exports, modified XNA game

* [spine-xna] Added tank example

* Some cleanup. Relabeled generic todos.

* Prevent SpineEditorUtilities from orphaning failed instantiations.

* Ignore PathAttachment when checking for required atlas regions.

* [spine-csharp] the great spaces to tabs battle

* [spine-csharp] Fixed inherit deform.

* [spine-csharp] Match Skeleton.java properties and stuff.

* [spine-csharp] Fixed enums, all upper cased now, using Enum.ParseType in case-insensitive mode

* [csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks

* [csharp] Updated README.md

* [xna] [monogame] [unity] Updated README.md

* Revert "[csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks"

This reverts commit 175216868dd00b4ae31cc717022242308c150f6a.

* [csharp] Fix to AttachmentTimeline#apply, fix for the fix for the fix for the revert for the fix

* [csharp] Matched and fixed more comments, summaries, exception messages and formatting.

* [csharp] Fix deformed weighted vertices condition + match libgdx closer.

* [csharp] Use internal ExposedList array for critical methods.

* [csharp] SkeletonJson and SkeletonBinary minor formatting and fixes.

* [unity] Match changes and fixes in spine-csharp 3.3 + better editor messages.

* [unity] Updated sample scenes and files.

* [csharp] Some formatting got left behind.

* [unity] New readme links + Removed redundant info.

* [exports] Remove dummy project.
2016-06-30 04:29:33 +08:00