@quenty/flipbook 9.17.3 → 9.17.4-canary.559.339cfa7.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
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
|
+
## [9.17.4-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/flipbook@9.17.3...@quenty/flipbook@9.17.4-canary.559.339cfa7.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [9.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/flipbook@9.17.2...@quenty/flipbook@9.17.3) (2025-04-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/flipbook
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/flipbook",
|
|
3
|
-
"version": "9.17.
|
|
3
|
+
"version": "9.17.4-canary.559.339cfa7.0",
|
|
4
4
|
"description": "Handles playing back animated spritesheets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/ducktype": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/promise": "
|
|
34
|
-
"@quenty/rx": "
|
|
35
|
-
"@quenty/sprites": "
|
|
36
|
-
"@quenty/uiobjectutils": "
|
|
37
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "10.8.4-canary.559.339cfa7.0",
|
|
29
|
+
"@quenty/ducktype": "5.8.5-canary.559.339cfa7.0",
|
|
30
|
+
"@quenty/instanceutils": "13.17.4-canary.559.339cfa7.0",
|
|
31
|
+
"@quenty/loader": "10.8.4-canary.559.339cfa7.0",
|
|
32
|
+
"@quenty/maid": "3.4.4-canary.559.339cfa7.0",
|
|
33
|
+
"@quenty/promise": "10.10.5-canary.559.339cfa7.0",
|
|
34
|
+
"@quenty/rx": "13.17.4-canary.559.339cfa7.0",
|
|
35
|
+
"@quenty/sprites": "13.16.4-canary.559.339cfa7.0",
|
|
36
|
+
"@quenty/uiobjectutils": "6.16.4-canary.559.339cfa7.0",
|
|
37
|
+
"@quenty/valueobject": "13.17.4-canary.559.339cfa7.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
|
|
43
43
|
}
|
package/src/Client/Flipbook.lua
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local Sprite = require("Sprite")
|
|
10
9
|
local DuckTypeUtils = require("DuckTypeUtils")
|
|
10
|
+
local Sprite = require("Sprite")
|
|
11
11
|
|
|
12
12
|
--[=[
|
|
13
13
|
@interface FlipbookData
|
|
@@ -191,4 +191,4 @@ function Flipbook.GetFrameCount(self: Flipbook): number
|
|
|
191
191
|
return self._frameCount
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
return Flipbook
|
|
194
|
+
return Flipbook
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local Flipbook = require("Flipbook")
|
|
9
|
-
local
|
|
9
|
+
local ServiceBag = require("ServiceBag")
|
|
10
10
|
|
|
11
11
|
local FlipbookLibrary = {}
|
|
12
12
|
FlipbookLibrary.__index = FlipbookLibrary
|
|
@@ -24,7 +24,7 @@ function FlipbookLibrary.new(serviceName, register)
|
|
|
24
24
|
return self
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
function FlipbookLibrary:Init(serviceBag:
|
|
27
|
+
function FlipbookLibrary:Init(serviceBag: ServiceBag.ServiceBag)
|
|
28
28
|
assert(self ~= FlipbookLibrary, "Should construct new FlipbookLibrary")
|
|
29
29
|
assert(not self._spritesheets, "Already initialized")
|
|
30
30
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
@@ -77,4 +77,4 @@ function FlipbookLibrary:Register(flipbookName, theme, flipbook)
|
|
|
77
77
|
self._spritesheets[flipbookName][theme] = flipbook
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
return FlipbookLibrary
|
|
80
|
+
return FlipbookLibrary
|
|
@@ -11,10 +11,10 @@ local RunService = game:GetService("RunService")
|
|
|
11
11
|
local BaseObject = require("BaseObject")
|
|
12
12
|
local Flipbook = require("Flipbook")
|
|
13
13
|
local Maid = require("Maid")
|
|
14
|
+
local Observable = require("Observable")
|
|
14
15
|
local Promise = require("Promise")
|
|
15
16
|
local Rx = require("Rx")
|
|
16
17
|
local ValueObject = require("ValueObject")
|
|
17
|
-
local _Observable = require("Observable")
|
|
18
18
|
|
|
19
19
|
local FlipbookPlayer = setmetatable({}, BaseObject)
|
|
20
20
|
FlipbookPlayer.ClassName = "FlipbookPlayer"
|
|
@@ -187,7 +187,7 @@ end
|
|
|
187
187
|
Observes if the flipbook is playing
|
|
188
188
|
@return Observable<boolean>
|
|
189
189
|
]=]
|
|
190
|
-
function FlipbookPlayer:ObserveIsPlaying():
|
|
190
|
+
function FlipbookPlayer:ObserveIsPlaying(): Observable.Observable<boolean>
|
|
191
191
|
return self._isPlaying:Observe()
|
|
192
192
|
end
|
|
193
193
|
|
|
@@ -285,4 +285,4 @@ function FlipbookPlayer:_updateToFrame(flipbook: Flipbook.Flipbook, frame: numbe
|
|
|
285
285
|
end
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
-
return FlipbookPlayer
|
|
288
|
+
return FlipbookPlayer
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
@class Flipbook.story
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local require =
|
|
5
|
+
local require =
|
|
6
|
+
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
6
7
|
|
|
7
8
|
local Flipbook = require("Flipbook")
|
|
8
9
|
local FlipbookPlayer = require("FlipbookPlayer")
|
|
@@ -83,96 +84,141 @@ return function(target: Instance)
|
|
|
83
84
|
uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
|
|
84
85
|
uiListLayout.Parent = container
|
|
85
86
|
|
|
86
|
-
makeLabel(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
87
|
+
makeLabel(
|
|
88
|
+
maid,
|
|
89
|
+
Flipbook.new({
|
|
90
|
+
image = "rbxassetid://5085366281",
|
|
91
|
+
rows = 6,
|
|
92
|
+
columns = 6,
|
|
93
|
+
frameCount = 34,
|
|
94
|
+
imageRectSize = Vector2.new(85.33333, 85.33333),
|
|
95
|
+
frameRate = 20,
|
|
96
|
+
restFrame = 1,
|
|
97
|
+
}),
|
|
98
|
+
container,
|
|
99
|
+
false
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
makeLabel(
|
|
103
|
+
maid,
|
|
104
|
+
Flipbook.new({
|
|
105
|
+
image = "rbxassetid://5085366281",
|
|
106
|
+
rows = 6,
|
|
107
|
+
columns = 6,
|
|
108
|
+
frameCount = 34,
|
|
109
|
+
imageRectSize = Vector2.new(85.33333, 85.33333),
|
|
110
|
+
frameRate = 20,
|
|
111
|
+
restFrame = 1,
|
|
112
|
+
}),
|
|
113
|
+
container,
|
|
114
|
+
true
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
makeLabel(
|
|
118
|
+
maid,
|
|
119
|
+
Flipbook.new({
|
|
120
|
+
image = "rbxassetid://8966463176",
|
|
121
|
+
rows = 6,
|
|
122
|
+
columns = 6,
|
|
123
|
+
imageRectSize = Vector2.new(170, 170),
|
|
124
|
+
frameRate = 50,
|
|
125
|
+
restFrame = 1,
|
|
126
|
+
}),
|
|
127
|
+
container,
|
|
128
|
+
false
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
makeLabel(
|
|
132
|
+
maid,
|
|
133
|
+
Flipbook.new({
|
|
134
|
+
image = "rbxassetid://9234616869",
|
|
135
|
+
rows = 10,
|
|
136
|
+
columns = 10,
|
|
137
|
+
frameCount = 92,
|
|
138
|
+
imageRectSize = Vector2.new(102, 102),
|
|
139
|
+
frameRate = 50,
|
|
140
|
+
restFrame = 1,
|
|
141
|
+
}),
|
|
142
|
+
container,
|
|
143
|
+
false
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
makeButton(
|
|
147
|
+
maid,
|
|
148
|
+
Flipbook.new({
|
|
149
|
+
image = "rbxassetid://9234616869",
|
|
150
|
+
rows = 10,
|
|
151
|
+
columns = 10,
|
|
152
|
+
frameCount = 92,
|
|
153
|
+
imageRectSize = Vector2.new(102, 102),
|
|
154
|
+
frameRate = 60,
|
|
155
|
+
restFrame = 1,
|
|
156
|
+
}),
|
|
157
|
+
container,
|
|
158
|
+
false
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
makeButton(
|
|
162
|
+
maid,
|
|
163
|
+
Flipbook.new({
|
|
164
|
+
image = "rbxassetid://5085366281",
|
|
165
|
+
rows = 6,
|
|
166
|
+
columns = 6,
|
|
167
|
+
frameCount = 34,
|
|
168
|
+
imageRectSize = Vector2.new(85.33333, 85.33333),
|
|
169
|
+
frameRate = 20,
|
|
170
|
+
restFrame = 1,
|
|
171
|
+
}),
|
|
172
|
+
container,
|
|
173
|
+
true
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
makeLabel(
|
|
177
|
+
maid,
|
|
178
|
+
Flipbook.new({
|
|
179
|
+
image = "rbxassetid://9234616869",
|
|
180
|
+
rows = 10,
|
|
181
|
+
columns = 10,
|
|
182
|
+
frameCount = 92,
|
|
183
|
+
imageRectSize = Vector2.new(102, 102),
|
|
184
|
+
frameRate = 50,
|
|
185
|
+
restFrame = 1,
|
|
186
|
+
}),
|
|
187
|
+
container,
|
|
188
|
+
false
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
makeLabel(
|
|
192
|
+
maid,
|
|
193
|
+
Flipbook.new({
|
|
194
|
+
image = "rbxassetid://12273540121",
|
|
195
|
+
rows = 7,
|
|
196
|
+
columns = 7,
|
|
197
|
+
frameCount = 45,
|
|
198
|
+
imageRectSize = Vector2.new(146, 146),
|
|
199
|
+
frameRate = 30,
|
|
200
|
+
restFrame = 1,
|
|
201
|
+
}),
|
|
202
|
+
container,
|
|
203
|
+
false
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
makeLabel(
|
|
207
|
+
maid,
|
|
208
|
+
Flipbook.new({
|
|
209
|
+
image = "rbxassetid://9234650028",
|
|
210
|
+
columns = 9,
|
|
211
|
+
rows = 8,
|
|
212
|
+
frameCount = 66,
|
|
213
|
+
imageRectSize = Vector2.new(113, 113),
|
|
214
|
+
frameRate = 60,
|
|
215
|
+
restFrame = 1,
|
|
216
|
+
}),
|
|
217
|
+
container,
|
|
218
|
+
false
|
|
219
|
+
)
|
|
174
220
|
|
|
175
221
|
return function()
|
|
176
222
|
maid:DoCleaning()
|
|
177
223
|
end
|
|
178
|
-
end
|
|
224
|
+
end
|