@quenty/buttonhighlightmodel 14.18.4-canary.559.339cfa7.0 → 14.19.0-canary.0a5db80.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 +2 -10
- package/package.json +12 -12
- package/src/Client/HandleHighlightModel.lua +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
# [14.19.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttonhighlightmodel@14.18.2...@quenty/buttonhighlightmodel@14.19.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [14.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttonhighlightmodel@14.18.2...@quenty/buttonhighlightmodel@14.18.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/buttonhighlightmodel
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/buttonhighlightmodel",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.19.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Contains model information for the current button",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/acceltween": "2.
|
|
30
|
-
"@quenty/baseobject": "10.
|
|
31
|
-
"@quenty/blend": "12.
|
|
32
|
-
"@quenty/instanceutils": "13.
|
|
33
|
-
"@quenty/loader": "10.
|
|
34
|
-
"@quenty/maid": "3.
|
|
35
|
-
"@quenty/rectutils": "1.
|
|
36
|
-
"@quenty/rx": "13.
|
|
37
|
-
"@quenty/steputils": "3.5.
|
|
38
|
-
"@quenty/valueobject": "13.
|
|
29
|
+
"@quenty/acceltween": "2.6.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/baseobject": "10.9.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/blend": "12.19.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/instanceutils": "13.18.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
34
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
35
|
+
"@quenty/rectutils": "1.3.0-canary.0a5db80.0",
|
|
36
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
37
|
+
"@quenty/steputils": "3.5.5",
|
|
38
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
44
44
|
}
|
|
@@ -8,11 +8,11 @@ local require = require(script.Parent.loader).load(script)
|
|
|
8
8
|
local UserInputService = game:GetService("UserInputService")
|
|
9
9
|
|
|
10
10
|
local BaseObject = require("BaseObject")
|
|
11
|
-
local Blend = require("Blend")
|
|
12
11
|
local Maid = require("Maid")
|
|
13
|
-
local
|
|
12
|
+
local Blend = require("Blend")
|
|
14
13
|
local Rx = require("Rx")
|
|
15
14
|
local ValueObject = require("ValueObject")
|
|
15
|
+
local Observable = require("Observable")
|
|
16
16
|
|
|
17
17
|
local HandleHighlightModel = setmetatable({}, BaseObject)
|
|
18
18
|
HandleHighlightModel.ClassName = "HandleHighlightModel"
|
|
@@ -107,7 +107,9 @@ end
|
|
|
107
107
|
Observes target for how highlighted the button is
|
|
108
108
|
@return Observable<number>
|
|
109
109
|
]=]
|
|
110
|
-
function HandleHighlightModel.ObservePercentHighlightedTarget(
|
|
110
|
+
function HandleHighlightModel.ObservePercentHighlightedTarget(
|
|
111
|
+
self: HandleHighlightModel
|
|
112
|
+
): Observable.Observable<number>
|
|
111
113
|
return Blend.toPropertyObservable(self.IsHighlighted):Pipe({
|
|
112
114
|
Rx.map(function(value)
|
|
113
115
|
return value and 1 or 0
|
|
@@ -119,4 +121,4 @@ function HandleHighlightModel._updateHighlighted(self: HandleHighlightModel): ()
|
|
|
119
121
|
self.IsHighlighted.Value = self.IsMouseOver.Value or self.IsMouseDown.Value
|
|
120
122
|
end
|
|
121
123
|
|
|
122
|
-
return HandleHighlightModel
|
|
124
|
+
return HandleHighlightModel
|