@quenty/transitionmodel 1.8.0 → 1.9.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 +16 -0
- package/package.json +8 -7
- package/src/Shared/TransitionModel.lua +5 -7
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
|
+
# [1.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/transitionmodel@1.8.0...@quenty/transitionmodel@1.9.0) (2023-05-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix dependencies ([67791a2](https://github.com/Quenty/NevermoreEngine/commit/67791a289c0956bf4947ac81bf792ee56496b3e8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/transitionmodel@1.7.0...@quenty/transitionmodel@1.8.0) (2023-05-08)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/transitionmodel
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/transitionmodel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Helps with Gui visiblity showing and hiding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,17 +26,18 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@quenty/baseobject": "^6.2.1",
|
|
29
|
-
"@quenty/basicpane": "^7.
|
|
30
|
-
"@quenty/blend": "^6.
|
|
31
|
-
"@quenty/instanceutils": "^7.
|
|
29
|
+
"@quenty/basicpane": "^7.14.0",
|
|
30
|
+
"@quenty/blend": "^6.18.0",
|
|
31
|
+
"@quenty/instanceutils": "^7.14.0",
|
|
32
32
|
"@quenty/loader": "^6.2.1",
|
|
33
33
|
"@quenty/maid": "^2.5.0",
|
|
34
34
|
"@quenty/promise": "^6.5.0",
|
|
35
|
-
"@quenty/rx": "^7.
|
|
36
|
-
"@quenty/signal": "^2.
|
|
35
|
+
"@quenty/rx": "^7.11.0",
|
|
36
|
+
"@quenty/signal": "^2.4.0",
|
|
37
|
+
"@quenty/valueobject": "^7.14.0"
|
|
37
38
|
},
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
|
|
42
43
|
}
|
|
@@ -10,7 +10,7 @@ local require = require(script.Parent.loader).load(script)
|
|
|
10
10
|
local BasicPane = require("BasicPane")
|
|
11
11
|
local Promise = require("Promise")
|
|
12
12
|
local Maid = require("Maid")
|
|
13
|
-
local
|
|
13
|
+
local ValueObject = require("ValueObject")
|
|
14
14
|
|
|
15
15
|
local TransitionModel = setmetatable({}, BasicPane)
|
|
16
16
|
TransitionModel.ClassName = "TransitionModel"
|
|
@@ -27,12 +27,10 @@ TransitionModel.__index = TransitionModel
|
|
|
27
27
|
function TransitionModel.new()
|
|
28
28
|
local self = setmetatable(BasicPane.new(), TransitionModel)
|
|
29
29
|
|
|
30
|
-
self._isShowingComplete =
|
|
31
|
-
self._isShowingComplete.Value = false
|
|
30
|
+
self._isShowingComplete = ValueObject.new(false, "boolean")
|
|
32
31
|
self._maid:GiveTask(self._isShowingComplete)
|
|
33
32
|
|
|
34
|
-
self._isHidingComplete =
|
|
35
|
-
self._isHidingComplete.Value = true
|
|
33
|
+
self._isHidingComplete = ValueObject.new(false, "boolean")
|
|
36
34
|
self._maid:GiveTask(self._isHidingComplete)
|
|
37
35
|
|
|
38
36
|
self._showCallback = nil
|
|
@@ -108,7 +106,7 @@ end
|
|
|
108
106
|
@return Observable<boolean>
|
|
109
107
|
]=]
|
|
110
108
|
function TransitionModel:ObserveIsShowingComplete()
|
|
111
|
-
return
|
|
109
|
+
return self._isShowingComplete:Observe()
|
|
112
110
|
end
|
|
113
111
|
|
|
114
112
|
--[=[
|
|
@@ -116,7 +114,7 @@ end
|
|
|
116
114
|
@return Observable<boolean>
|
|
117
115
|
]=]
|
|
118
116
|
function TransitionModel:ObserveIsHidingComplete()
|
|
119
|
-
return
|
|
117
|
+
return self._isHidingComplete:Observe()
|
|
120
118
|
end
|
|
121
119
|
|
|
122
120
|
--[=[
|