@quenty/animations 1.0.1-canary.385.c37a0ad.0 → 1.2.0-canary.400.ddaf408.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -1
- package/package.json +5 -5
- package/src/Shared/AnimationPromiseUtils.lua +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,35 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [1.2.0-canary.400.ddaf408.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@1.1.0...@quenty/animations@1.2.0-canary.400.ddaf408.0) (2023-07-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Allow for endmarker name to be passed into the promiseFinished of animations ([26ee26d](https://github.com/Quenty/NevermoreEngine/commit/26ee26dba8c425fec2a9ed2bca35a2bdde6803db))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 1.1.0 (2023-07-10)
|
|
7
18
|
|
|
8
19
|
|
|
9
20
|
### Features
|
|
10
21
|
|
|
11
22
|
* Add utility package to play back animations easily ([46c33ea](https://github.com/Quenty/NevermoreEngine/commit/46c33ea401987b14ba9c674280e56cd5d4cfe530))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# v1.1.0 (Mon Jul 10 2023)
|
|
29
|
+
|
|
30
|
+
#### 🚀 Enhancement
|
|
31
|
+
|
|
32
|
+
- users/quenty/animations [#385](https://github.com/Quenty/NevermoreEngine/pull/385) ([@Quenty](https://github.com/Quenty))
|
|
33
|
+
- feat: Add utility package to play back animations easily ([@Quenty](https://github.com/Quenty))
|
|
34
|
+
|
|
35
|
+
#### Authors: 1
|
|
36
|
+
|
|
37
|
+
- James Onnen ([@Quenty](https://github.com/Quenty))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/animations",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0-canary.400.ddaf408.0",
|
|
4
4
|
"description": "Utility methods for playing back animations on Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@quenty/enumutils": "3.1.0",
|
|
29
|
-
"@quenty/humanoidanimatorutils": "2.
|
|
29
|
+
"@quenty/humanoidanimatorutils": "2.2.0",
|
|
30
30
|
"@quenty/loader": "6.2.1",
|
|
31
|
-
"@quenty/promisemaid": "1.
|
|
32
|
-
"@quenty/rbxasset": "1.
|
|
31
|
+
"@quenty/promisemaid": "1.2.0-canary.400.ddaf408.0",
|
|
32
|
+
"@quenty/rbxasset": "1.1.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ddaf408b19ec1acac0e375bf90ceb0ba5adff1ea"
|
|
38
38
|
}
|
|
@@ -9,7 +9,7 @@ local PromiseMaidUtils = require("PromiseMaidUtils")
|
|
|
9
9
|
|
|
10
10
|
local AnimationPromiseUtils = {}
|
|
11
11
|
|
|
12
|
-
function AnimationPromiseUtils.promiseFinished(animationTrack)
|
|
12
|
+
function AnimationPromiseUtils.promiseFinished(animationTrack, endMarkerName)
|
|
13
13
|
local promise = Promise.new()
|
|
14
14
|
|
|
15
15
|
PromiseMaidUtils.whilePromise(promise, function(maid)
|
|
@@ -24,6 +24,12 @@ function AnimationPromiseUtils.promiseFinished(animationTrack)
|
|
|
24
24
|
maid:GiveTask(animationTrack.Destroying:Connect(function()
|
|
25
25
|
promise:Resolve()
|
|
26
26
|
end))
|
|
27
|
+
|
|
28
|
+
if endMarkerName then
|
|
29
|
+
maid:GiveTask(animationTrack:GetMarkerReachedSignal(endMarkerName):Connect(function()
|
|
30
|
+
promise:Resolve()
|
|
31
|
+
end))
|
|
32
|
+
end
|
|
27
33
|
end)
|
|
28
34
|
|
|
29
35
|
return promise
|