142 Commits

Author SHA1 Message Date
Harald Csaszar
8a9fc13a86 [csharp] Fixed porting difference IkConstraint mix initialization. Ported skipped commit 733fa91: Fixed slider scale. 2025-06-30 19:56:59 +02:00
Harald Csaszar
f1350db84d [csharp] Split and renamed Color struct and alias name to Colo32F to avoid name clash in XNA/Monogame. 2025-06-30 13:32:16 +02:00
Harald Csaszar
905e99da81 [csharp] Fixed compile error on C# version < 4.0 2025-06-24 17:47:13 +02:00
Harald Csaszar
ec757bf9b7 [csharp][unity] Port of 4.3 changes until (including) 2d9f86a (4.3.37-beta). 2025-06-20 22:25:27 +02:00
Harald Csaszar
75a412d9d7 [csharp] port of commit 52b7423: Brought back transform constraint offset. Some changes for alignment with reference implementation. 2025-04-10 17:27:19 +02:00
Harald Csaszar
60a34ef995 [csharp] Fix Transform constraint import scale. 2025-04-09 15:52:10 +02:00
Harald Csaszar
90bfdba422 [csharp][unity] Port of Transform constraint property mapping and cumulated 4.3 changes. Excluding import scale fixes. 2025-04-09 15:52:06 +02:00
Nathan Sweet
f08d58dc98 License header update. 2025-04-05 13:42:13 -04:00
Luke Ingram
88aa654a77 [csharp] Port of commit 687260a: Removed SlotData#path. 2024-05-15 09:07:12 -04:00
Harald Csaszar
e630d1bda7 [csharp] Port of commit f4f22cd. Added bone transform inheritance timeline. Renamed TransformMode to Inherit. 2024-03-27 17:28:29 +01:00
Harald Csaszar
f84022a730 Merge branch '4.1' into 4.2-beta 2024-03-07 18:27:08 +01:00
Harald Csaszar
3b8069f4b9 [csharp] Fixed "rgb2" timeline "light" color failing to read when having hexstring length 8 instead of 6. Closes #2476. 2024-03-07 18:15:16 +01:00
Harald Csaszar
d1c09687e8 [csharp] Port of commit 98c5be6. Use delta for physics limit, apply limit to scale. 2024-03-07 15:25:22 +01:00
Harald Csaszar
8dd7016a72 [csharp] Port of commits 254a484 and f762a94: Added physics limit, smaller binary size. 2024-03-06 18:18:41 +01:00
Harald Csaszar
2220f16e75 [csharp] Fixed formatting, removed unnecessary braces. 2024-03-04 17:09:50 +01:00
Harald Csaszar
8e56a6c920 [csharp] Port of commit 1dbbfda: Added skeleton reference scale. Fixed leftover gravity and wind timeline scale. 2024-03-04 16:28:51 +01:00
Harald Csaszar
468656ba0e [csharp] Port of commit 11b339b. Added slot path nonsessential data. 2024-01-22 18:43:18 +01:00
Harald Csaszar
fa9028881d [csharp] Minor: fixed formatting. 2024-01-11 17:08:25 +01:00
Harald Csaszar
c7a81230ff [csharp] Fixed PhysicsConstraint ignoring load scale. 2024-01-11 17:05:10 +01:00
Harald Csaszar
fe53638f69 [csharp] Ported 4.2-beta physics. 2023-11-17 17:18:18 +01:00
Harald Csaszar
c8f2370e75 [csharp] Fix json TransformConstraint timtline mixShearY value being ignored. 2023-10-26 20:56:42 +02:00
Harald Csaszar
4b822f2242 [csharp] Port of commit 546d55a. Fixed reading shearY mix for transform constraint timelines. 2023-10-02 11:51:29 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Harald Csaszar
01b8c06800 [csharp] Code cleanup: replaced var with explicit type names. 2023-01-10 13:03:56 +01:00
Harald Csaszar
2459755f8c [csharp] Fixed IndexOutOfBounds at loading sequence attachments from json on older dotnet runtime version. Clsoes #2213. 2022-12-14 17:44:06 +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
Nathan Sweet
dc9a6ebe7f [as3][c][cpp][csharp][libgdx][lua][ts] Fixed loading transform constraint timelines from JSON data.
* Fixed SkeletonJson not allocating enough memory for curves (maximum of 6 curves/key, not 4). Fixes email: FMfcgzGkbDfvckWcFxWlsTWzFhMXsTDw
* Removed SkeletonData and Skeleton methods: findBoneIndex, findSlotIndex. Bones and slots have an index field that should be used instead.
* Removed SkeletonData and Skeleton methods: find*ConstraintIndex. Only SkeletonJson needed these, they don't need to be in the public API.
* Used a local for number of frames where it was used many times.
2021-09-12 18:15:19 -06:00
Mario Zechner
d12b15ca8d [csharp] Format all source code using formatters/.editorconfig 2021-08-18 18:59:53 +02:00
Harald Csaszar
8a47f548a3 [csharp] Fixed bezier json curve out of bounds array access. Closes #1921. 2021-07-07 17:57:43 +02:00
Harald Csaszar
950760903b [csharp] Port of bugfix commits 8e21d09 and 9b37c31, resetting mixBlend and stepped timelines. See #1903. 2021-06-15 09:09:10 +02:00
Nathan Sweet
d856ece2f2 SkeletonJson clean up. 2021-06-06 23:18:12 -04:00
Nathan Sweet
7df74c2fa4 Various fixes, clean up.
* Added missing CurveTimeline#shrink calls. c and cpp got BOZO comments until the method is added.
* SkeletonJson#readCurve clean up.
* ts, use shorthand for null checks.
* csharp, don't use unnecessary hasNext local.
2021-06-03 21:42:35 -04:00
Nathan Sweet
7aa940a961 Fixes for reading mix X/Y. 2021-06-03 15:33:48 -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
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
407c591a2c [csharp] Ported commits 549e9ae and 6e709a1, (format changes for 4.0.24-beta) "Added separate keying for translateX/Y, scaleX/Y, shearX/Y, and colorRGB/A.". Updated example skeletons. 2020-11-12 19:34:21 +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
NathanSweet
842dffbd83 [all] Source clean up, formatting, and tabs for indentation. 2019-08-27 15:57:14 +02:00
Harald Csaszar
08f1741e2b [csharp] Fixed two more differences between SkeletonJson reference implementation and csharp version. See #1411. 2019-07-17 14:50:15 +02:00
Harald Csaszar
234daf516e [unity] Fixed json curve import: was mis-interpreting curves as linear instead of a smooth curve. Closes #1411. 2019-07-17 13:37:08 +02:00
Harald Csaszar
505719c1f1 [unity] Added soft IK support. See #1383. 2019-06-20 10:19:17 +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
d337f587b7 [csharp] Ported addition of x/y bounding coordinates to SkeletonData. See #1325. 2019-04-16 14:55:54 +02:00
Harald Csaszar
f186a83fca [csharp] Unified all line endings of files in spine-csharp to lf. 2018-12-24 12:43:06 +01:00