@quenty/animations 8.22.2 → 8.22.3-canary.4fabf3e.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 +11 -0
- package/package.json +14 -13
- package/src/Shared/AnimationSlotPlayer.lua +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [8.22.3-canary.4fabf3e.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.2...@quenty/animations@8.22.3-canary.4fabf3e.0) (2025-12-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Check Looped after loaded ([99eacfd](https://github.com/Quenty/NevermoreEngine/commit/99eacfd66c3484684fb82fb4655c76afb85c5f81))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [8.22.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.1...@quenty/animations@8.22.2) (2025-11-22)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/animations",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.3-canary.4fabf3e.0",
|
|
4
4
|
"description": "Utility methods for playing back animations on Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,20 +25,21 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/enumutils": "
|
|
30
|
-
"@quenty/humanoidanimatorutils": "
|
|
31
|
-
"@quenty/
|
|
32
|
-
"@quenty/
|
|
33
|
-
"@quenty/
|
|
34
|
-
"@quenty/
|
|
35
|
-
"@quenty/
|
|
36
|
-
"@quenty/
|
|
37
|
-
"@quenty/
|
|
38
|
-
"@quenty/
|
|
28
|
+
"@quenty/baseobject": "10.9.0",
|
|
29
|
+
"@quenty/enumutils": "3.4.2",
|
|
30
|
+
"@quenty/humanoidanimatorutils": "3.2.0",
|
|
31
|
+
"@quenty/instanceutils": "13.20.2",
|
|
32
|
+
"@quenty/loader": "10.9.0",
|
|
33
|
+
"@quenty/maid": "3.5.0",
|
|
34
|
+
"@quenty/promise": "10.12.0",
|
|
35
|
+
"@quenty/promisemaid": "5.12.0",
|
|
36
|
+
"@quenty/rbxasset": "5.10.0",
|
|
37
|
+
"@quenty/rx": "13.20.0",
|
|
38
|
+
"@quenty/signal": "7.11.1",
|
|
39
|
+
"@quenty/valueobject": "13.21.2"
|
|
39
40
|
},
|
|
40
41
|
"publishConfig": {
|
|
41
42
|
"access": "public"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4fabf3e14005c2b233e252c46a2ed9e34066223e"
|
|
44
45
|
}
|
|
@@ -16,6 +16,7 @@ local Maid = require("Maid")
|
|
|
16
16
|
local Promise = require("Promise")
|
|
17
17
|
local PromiseMaidUtils = require("PromiseMaidUtils")
|
|
18
18
|
local RbxAssetUtils = require("RbxAssetUtils")
|
|
19
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
19
20
|
local ValueObject = require("ValueObject")
|
|
20
21
|
|
|
21
22
|
local AnimationSlotPlayer = setmetatable({}, BaseObject)
|
|
@@ -287,15 +288,17 @@ function AnimationSlotPlayer.Play(
|
|
|
287
288
|
end
|
|
288
289
|
end)
|
|
289
290
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
maid:
|
|
291
|
+
-- This is a hack to ensure that animations stop at a set rate instead of roblox's weird default faded time
|
|
292
|
+
maid:GivePromise(AnimationPromiseUtils.promiseLoaded(track)):Then(function()
|
|
293
|
+
maid:GiveTask(RxInstanceUtils.observePropertyBrio(track, "Looped", function(looped)
|
|
294
|
+
return not looped
|
|
295
|
+
end):Subscribe(function()
|
|
293
296
|
-- This is very very sad...
|
|
294
297
|
maid:GiveTask(task.delay(track.Length - track.TimePosition - 2 / 60, function()
|
|
295
298
|
track:Stop(fadeTime or self._defaultFadeTime.Value)
|
|
296
299
|
end))
|
|
297
|
-
end)
|
|
298
|
-
end
|
|
300
|
+
end))
|
|
301
|
+
end)
|
|
299
302
|
|
|
300
303
|
maid:GiveTask(function()
|
|
301
304
|
local stopFadeTime = fadeTime or self._defaultFadeTime.Value
|