@quenty/flipbook 2.7.0 → 2.8.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 +7 -7
- package/src/Client/Player/FlipbookPlayer.lua +3 -6
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
|
+
# [2.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/flipbook@2.7.0...@quenty/flipbook@2.8.0) (2023-05-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/flipbook@2.6.0...@quenty/flipbook@2.7.0) (2023-05-08)
|
|
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": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Handles playing back animated spritesheets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@quenty/baseobject": "^6.2.1",
|
|
29
|
-
"@quenty/instanceutils": "^7.
|
|
29
|
+
"@quenty/instanceutils": "^7.14.0",
|
|
30
30
|
"@quenty/loader": "^6.2.1",
|
|
31
31
|
"@quenty/maid": "^2.5.0",
|
|
32
32
|
"@quenty/promise": "^6.5.0",
|
|
33
|
-
"@quenty/rx": "^7.
|
|
34
|
-
"@quenty/sprites": "^8.
|
|
35
|
-
"@quenty/uiobjectutils": "^3.
|
|
36
|
-
"@quenty/valueobject": "^7.
|
|
33
|
+
"@quenty/rx": "^7.11.0",
|
|
34
|
+
"@quenty/sprites": "^8.2.0",
|
|
35
|
+
"@quenty/uiobjectutils": "^3.4.0",
|
|
36
|
+
"@quenty/valueobject": "^7.14.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
|
|
42
42
|
}
|
|
@@ -12,7 +12,6 @@ local Flipbook = require("Flipbook")
|
|
|
12
12
|
local Maid = require("Maid")
|
|
13
13
|
local Promise = require("Promise")
|
|
14
14
|
local Rx = require("Rx")
|
|
15
|
-
local RxInstanceUtils = require("RxInstanceUtils")
|
|
16
15
|
local ValueObject = require("ValueObject")
|
|
17
16
|
|
|
18
17
|
local FlipbookPlayer = setmetatable({}, BaseObject)
|
|
@@ -30,12 +29,10 @@ function FlipbookPlayer.new(imageLabel)
|
|
|
30
29
|
|
|
31
30
|
assert(typeof(self._obj) == "Instance" and (self._obj:IsA("ImageLabel") or self._obj:IsA("ImageButton")), "Bad imageLabel")
|
|
32
31
|
|
|
33
|
-
self._isPlaying =
|
|
34
|
-
self._isPlaying.Value = false
|
|
32
|
+
self._isPlaying = ValueObject.new(false, "boolean")
|
|
35
33
|
self._maid:GiveTask(self._isPlaying)
|
|
36
34
|
|
|
37
|
-
self._isBoomarang =
|
|
38
|
-
self._isBoomarang.Value = false
|
|
35
|
+
self._isBoomarang = ValueObject.new(false, "boolean")
|
|
39
36
|
self._maid:GiveTask(self._isBoomarang)
|
|
40
37
|
|
|
41
38
|
self._playData = ValueObject.new(nil)
|
|
@@ -159,7 +156,7 @@ end
|
|
|
159
156
|
@return Observable<boolean>
|
|
160
157
|
]=]
|
|
161
158
|
function FlipbookPlayer:ObserveIsPlaying()
|
|
162
|
-
return
|
|
159
|
+
return self._isPlaying:Observe()
|
|
163
160
|
end
|
|
164
161
|
|
|
165
162
|
function FlipbookPlayer:_promiseDonePlaying(data)
|