@quenty/animations 8.22.1 → 8.22.2
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 +16 -0
- package/package.json +3 -3
- package/src/Shared/AnimationTrackPlayer.lua +10 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.1...@quenty/animations@8.22.2) (2025-11-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix styling ([a3ac54d](https://github.com/Quenty/NevermoreEngine/commit/a3ac54d43aafa1c37b0e8c9b6e7b20b3f3362742))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Performance Improvements
|
|
15
|
+
|
|
16
|
+
* Fix memory cleanup in Tie + Rogue Properties to try to address memory consumption ([c989f23](https://github.com/Quenty/NevermoreEngine/commit/c989f23bb7741a1f160ee341dfb542ba71775620))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [8.22.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.22.0...@quenty/animations@8.22.1) (2025-11-12)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/animations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/animations",
|
|
3
|
-
"version": "8.22.
|
|
3
|
+
"version": "8.22.2",
|
|
4
4
|
"description": "Utility methods for playing back animations on Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@quenty/rbxasset": "^5.10.0",
|
|
36
36
|
"@quenty/rx": "^13.20.0",
|
|
37
37
|
"@quenty/signal": "^7.11.1",
|
|
38
|
-
"@quenty/valueobject": "^13.21.
|
|
38
|
+
"@quenty/valueobject": "^13.21.2"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b3a8753cbae8b4312b1ed66fce1577a94015c156"
|
|
44
44
|
}
|
|
@@ -135,7 +135,7 @@ end
|
|
|
135
135
|
@param fadeTime number
|
|
136
136
|
]=]
|
|
137
137
|
function AnimationTrackPlayer:SetWeightTargetIfNotSet(weight: number, fadeTime: number)
|
|
138
|
-
self._maid._adjustWeight = self:_onEachTrack(function(
|
|
138
|
+
self._maid._adjustWeight = self:_onEachTrack(function(track)
|
|
139
139
|
if track.WeightTarget ~= weight then
|
|
140
140
|
track:AdjustWeight(weight, fadeTime)
|
|
141
141
|
end
|
|
@@ -159,7 +159,7 @@ function AnimationTrackPlayer:Play(fadeTime: number, weight: number, speed: numb
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
self._maid._stop = nil
|
|
162
|
-
self._maid._play = self:_onEachTrack(function(
|
|
162
|
+
self._maid._play = self:_onEachTrack(function(track)
|
|
163
163
|
track:Play(fadeTime, weight, speed)
|
|
164
164
|
end)
|
|
165
165
|
end
|
|
@@ -171,7 +171,7 @@ end
|
|
|
171
171
|
]=]
|
|
172
172
|
function AnimationTrackPlayer:Stop(fadeTime: number)
|
|
173
173
|
self._maid._play = nil
|
|
174
|
-
self._maid._stop = self:_onEachTrack(function(
|
|
174
|
+
self._maid._stop = self:_onEachTrack(function(track)
|
|
175
175
|
track:Stop(fadeTime)
|
|
176
176
|
end)
|
|
177
177
|
end
|
|
@@ -183,7 +183,7 @@ end
|
|
|
183
183
|
@param fadeTime number
|
|
184
184
|
]=]
|
|
185
185
|
function AnimationTrackPlayer:AdjustWeight(weight: number, fadeTime: number)
|
|
186
|
-
self._maid._adjustWeight = self:_onEachTrack(function(
|
|
186
|
+
self._maid._adjustWeight = self:_onEachTrack(function(track)
|
|
187
187
|
track:AdjustWeight(weight, fadeTime)
|
|
188
188
|
end)
|
|
189
189
|
end
|
|
@@ -195,7 +195,7 @@ end
|
|
|
195
195
|
@param fadeTime number
|
|
196
196
|
]=]
|
|
197
197
|
function AnimationTrackPlayer:AdjustSpeed(speed: number, fadeTime: number)
|
|
198
|
-
self._maid._adjustSpeed = self:_onEachTrack(function(
|
|
198
|
+
self._maid._adjustSpeed = self:_onEachTrack(function(track)
|
|
199
199
|
track:AdjustSpeed(speed, fadeTime)
|
|
200
200
|
end)
|
|
201
201
|
end
|
|
@@ -215,18 +215,11 @@ function AnimationTrackPlayer:IsPlaying(): boolean
|
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
function AnimationTrackPlayer:_onEachTrack(callback)
|
|
218
|
-
return self._currentTrack
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if brio:IsDead() then
|
|
224
|
-
return
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
local track = brio:GetValue()
|
|
228
|
-
callback(brio:ToMaid(), track)
|
|
229
|
-
end)
|
|
218
|
+
return self._currentTrack:Observe():Subscribe(function(track)
|
|
219
|
+
if track ~= nil then
|
|
220
|
+
callback(track)
|
|
221
|
+
end
|
|
222
|
+
end)
|
|
230
223
|
end
|
|
231
224
|
|
|
232
225
|
return AnimationTrackPlayer
|