9857 Commits

Author SHA1 Message Date
Davide Tantillo
e8719ebb99 [ts] Run tsfmt 2024-11-06 17:57:46 +01:00
Mat Groves
ecbe9b0247
Add PixiJS v8 support to spine (#2641)
* add v8 support to spine!

* Renamed examples folder for consistency.

* Gitignore dist.

* Tsconfig.

* Package json.

* Modification due to strictNullChecks=true.

* Run tsfmt.

* Use clipper.clipTriangles not deprecated version.

* Aligned example to spine-pixi (v7).

* Fix clipping dark tint wrong param.

* Removed useless clipper.

* Push texture issue repro example

* fix attachment.uvs by copying them

* SlotObject alpha connected to skeleton and slot alpha.

* add topology for future v8 release

* Dark tint rendered is enabled if at least one slot has dark tint, or by configuration.
Fixed clipping while using dark tint.

* Optimized clipping by using clipTrianglesUnpacked.

* Repro example for clipping issue.

* Aligned constructor and from signature of spine-pixi(-v7) to v8. Deprecated old signatures.

* Removed useless function.

* Fixed clipping issue flagging attachment as dirty if indices change.

* Clipping attachments clip slot object through Pixi Graphics masks.

* Add autoUpdate in SpineFromOptions

* Added javadoc to pixiv8

* Updated pixi7 examples to use SpineFromOptions interface

* Aligned atlas loader to use texturePreference for bundles.

* Add pool to manage slot objects masks

* Fixed minor issues with SpineDebugRenderer

* Aligned spine-pixi-v8 with latest spine-core

* Updated build and publish script

---------

Co-authored-by: Davide Tantillo <iamdjj@gmail.com>
2024-11-06 17:23:01 +01:00
Mario Zechner
b610bd7b7a [godot] Fixes #2670, animation tracks must be set to discrete, so we only get a single name/loop change for each key. 2024-11-06 16:11:44 +01:00
Davide Tantillo
c3d510e3c8 [ts] Release 4.2.62 2024-11-05 17:31:40 +01:00
Davide Tantillo
8a03d8a7c7 [ts][phaser] Automatically set UNPACK_PREMULTIPLY_ALPHA_WEBGL to false when spine texture is created, then restore it. 2024-11-05 16:09:13 +01:00
kikiloveswift
4f7fe00427
ADD: spine-ios support Cocoapods :Static Framework (#2658)
Co-authored-by: liqiang <liqiangbj01@kanyun.com>
2024-11-05 15:48:35 +01:00
Mario Zechner
19d3d1b29b [ios] Closes #2666, expose SkeletonBounds via spine-cpp-lite/Swift 2024-11-05 15:46:53 +01:00
Mario Zechner
9207cd2a40 [cpp][glfw] Fix reading bounding box attachments in SkeletonBinary, closes #2668, add binary Spineboy to example 2024-11-05 13:55:28 +01:00
Mario Zechner
28fb83d1d7 [cpp] Fix passing argument by reference 2024-11-05 13:27:01 +01:00
Mario Zechner
eef05281fd [godot] Do not register editor types for template extension builds. 2024-10-30 10:45:21 +01:00
Mario Zechner
33ea72017b [godot] Fix branch enumeration in setup script. 2024-10-30 10:17:26 +01:00
Mario Zechner
220678f336 [android] Next snapshot 2024-10-29 10:26:46 +01:00
Mario Zechner
f38683f9d9 [android] 4.2.8 release 2024-10-29 10:26:32 +01:00
hiki
41532fea5f
FIX: clipEnd not called issue when attachment is null (#2662) 2024-10-29 09:11:27 +01:00
misaki-eymard
76361f67a0 [godot] Update the Raptor texture atlas in the example project to the correct one. See #2663 2024-10-28 11:52:24 +09:00
Mario Zechner
405db7da51 [godot] Another fix for the template build script. See #2657 2024-10-23 12:03:08 +02:00
Mario Zechner
32be2c1ef1 [godot] Fix build script for Android template, closes #2657 2024-10-23 11:21:48 +02:00
Davide Tantillo
bdb9ea160e Fixed example. 2024-10-21 15:31:33 +02:00
Davide Tantillo
38f5231cd2 Docs and minor fixes. 2024-10-21 15:19:46 +02:00
Davide Tantillo
0fa960251a WIP - Added/Changed:
- overlay loading: now overlay is moved as the last element from where it is inserted to avoid widgets covered by backgrounds of html elements after it.
- default overlayId
- widget position in overlay coordinates (worldX, worldY) (experimental)
- cursor position on widget world (cursorWorldX, cursorWorldY) (experimental)
- jsonSkeletonKey: allow to load a specific skeleton in json containing multiple skeletons
- onViewportManualStart: start the widget when in manual-start and enters the viewport the first time
- overlayAssignedPromise: a promise that resolves when the overlay is assigned to the widget. Reads the comment on it
- appendTo: to append the widget created using js and wait for the overlayAssignedPromise to resolve
- changed how loadingPromise works
- added cursorCanvasX, cursorCanvasY, cursorWorldX, cursorWorldY to overlay (experimental)
2024-10-18 16:42:57 +02:00
Mario Zechner
623e2b9786 [godot] Fix web builds for Godot <= 4.2 2024-10-17 15:21:39 +02:00
Mario Zechner
cf5b340210 [godot] Another build script fix. 2024-10-17 12:12:09 +02:00
Mario Zechner
da3fa70d97 [godot] Fix build script. 2024-10-17 11:44:56 +02:00
Mario Zechner
9ea50d85a5 [godot] Try to fix web build on GitHub. 2024-10-17 11:30:42 +02:00
Mario Zechner
e4469dc77b [godot] Fix compilation with emscripten. 2024-10-17 09:00:18 +02:00
Mario Zechner
09542677f4 Fix Godot GH actions 2024-10-17 08:37:22 +02:00
Mario Zechner
5b15994403 Merge branch '4.2' into gdextension 2024-10-15 15:14:41 +02:00
Mario Zechner
bd34b7a9c8 [c] Fix incorrect != in spBone_parentToWorld 2024-10-15 15:14:29 +02:00
Mario Zechner
6063071809 [c] Fix incorrect != in spBone_parentToWorld 2024-10-15 14:57:07 +02:00
Davide Tantillo
de7494036c Initial support of spine-widget into scrollable containers, and overlay-id for multiple spine-overlay.
working
2024-10-14 18:22:09 +02:00
alvov
54ecc39017 Add sources to source maps via TS configuration option
Fixes #2652
2024-10-10 10:40:30 +02:00
Mario Zechner
5600d0d7c7 [godot] Fix statics deinitialization 2024-10-09 21:14:01 +02:00
Mario Zechner
62aad81999 [godot] Fix rendering in GDExtension. 2024-10-09 12:55:17 +02:00
Mario Zechner
728b96b85e [godot] Fix setup script, remove .idea references. 2024-10-09 11:18:04 +02:00
Mario Zechner
13127aa587 [godot] Fix module build for Godot 4.x 2024-10-09 11:13:37 +02:00
Davide Tantillo
e9a07bd6b9 Changes to make the widget more dynamic while changing attributes. See now webcomponent-gui.html. 2024-10-08 17:26:31 +02:00
Mario Zechner
64c3e9af16 [godot] Restore old build/setup.sh 2024-10-08 17:17:50 +02:00
Mario Zechner
a3fa4e926f [godot] Clean-up, properly point to editor binaries in .gdextension file. 2024-10-08 17:16:20 +02:00
Mario Zechner
687a6959bb [godot] Fix static initializers for GDExtension initialization order, fix remaining FIXMEs, except SpineSprite rendering. 2024-10-08 17:08:43 +02:00
Mario Zechner
0dc8422c95 [godot] Remove superfluous GodotSpineExtension::_readFile impl 2024-10-08 16:00:53 +02:00
Mario Zechner
6dbed6044f [godot] Fix importers for extension settings 2024-10-08 15:49:23 +02:00
Mario Zechner
14992a57c3 [godot] Fix up extension build and setup script, add VS Code task and launch config 2024-10-08 15:16:47 +02:00
Mario Zechner
887f20435f [godot] Non-working but compiling state. Crashes when registering various inspectors/editor plugins 2024-10-07 18:07:30 +02:00
Mario Zechner
e9b43f9c73 [godot] More GDExtension work. SpineAnimationTrack, animation mixes editor plugin and SpineMesh2D are non-functional due to missing APIs in godot-cpp 2024-10-07 13:55:01 +02:00
Mario Zechner
f8a0b5b6f7 Merge branch '4.2' into gdextension
# Conflicts:
#	spine-godot/spine_godot/SpineAtlasResource.cpp
2024-10-07 08:38:57 +02:00
Mario Zechner
d4a3444328 [godot] Add support for load from disk for Godot 3.x and example 2024-10-07 08:20:38 +02:00
Mario Zechner
e4999922b6 [godot] Fix missing return statement in SpineAtlasResource::load_from_atlas_file 2024-10-07 07:46:06 +02:00
Davide Tantillo
a34b8273b3 Exposed parameters to set bounds.
Deeply changed how bounds work, especially for the fact that they are not auto recalculated anymore if the animation is changed (unless autoRecalculateBounds is set to true).
2024-10-04 17:38:23 +02:00
Davide Tantillo
f4837ad8eb Add padding attributes/properties. 2024-10-03 13:05:12 +02:00
Davide Tantillo
bedce14780 Restore resize observer since the window resize event does not fire on body resize, but on window resize. It's supported by 93% of the browsers. 2024-10-03 11:05:14 +02:00