@quenty/buttonhighlightmodel 14.19.0-canary.ae8d76d.0 → 14.19.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 +1 -1
- package/package.json +12 -12
- package/src/Client/HandleHighlightModel.lua +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
# [14.19.0
|
|
6
|
+
# [14.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttonhighlightmodel@14.18.3...@quenty/buttonhighlightmodel@14.19.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/buttonhighlightmodel",
|
|
3
|
-
"version": "14.19.0
|
|
3
|
+
"version": "14.19.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.5.3",
|
|
30
|
-
"@quenty/baseobject": "10.
|
|
31
|
-
"@quenty/blend": "12.19.0
|
|
32
|
-
"@quenty/instanceutils": "13.18.0
|
|
33
|
-
"@quenty/loader": "10.
|
|
34
|
-
"@quenty/maid": "3.
|
|
35
|
-
"@quenty/rectutils": "1.
|
|
36
|
-
"@quenty/rx": "13.18.0
|
|
37
|
-
"@quenty/steputils": "3.
|
|
38
|
-
"@quenty/valueobject": "13.18.0
|
|
29
|
+
"@quenty/acceltween": "^2.5.3",
|
|
30
|
+
"@quenty/baseobject": "^10.9.0",
|
|
31
|
+
"@quenty/blend": "^12.19.0",
|
|
32
|
+
"@quenty/instanceutils": "^13.18.0",
|
|
33
|
+
"@quenty/loader": "^10.9.0",
|
|
34
|
+
"@quenty/maid": "^3.5.0",
|
|
35
|
+
"@quenty/rectutils": "^1.3.0",
|
|
36
|
+
"@quenty/rx": "^13.18.0",
|
|
37
|
+
"@quenty/steputils": "^3.6.0",
|
|
38
|
+
"@quenty/valueobject": "^13.18.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
|
|
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 Maid = require("Maid")
|
|
12
11
|
local Blend = require("Blend")
|
|
12
|
+
local Maid = require("Maid")
|
|
13
|
+
local Observable = require("Observable")
|
|
13
14
|
local Rx = require("Rx")
|
|
14
15
|
local ValueObject = require("ValueObject")
|
|
15
|
-
local Observable = require("Observable")
|
|
16
16
|
|
|
17
17
|
local HandleHighlightModel = setmetatable({}, BaseObject)
|
|
18
18
|
HandleHighlightModel.ClassName = "HandleHighlightModel"
|
|
@@ -107,9 +107,7 @@ end
|
|
|
107
107
|
Observes target for how highlighted the button is
|
|
108
108
|
@return Observable<number>
|
|
109
109
|
]=]
|
|
110
|
-
function HandleHighlightModel.ObservePercentHighlightedTarget(
|
|
111
|
-
self: HandleHighlightModel
|
|
112
|
-
): Observable.Observable<number>
|
|
110
|
+
function HandleHighlightModel.ObservePercentHighlightedTarget(self: HandleHighlightModel): Observable.Observable<number>
|
|
113
111
|
return Blend.toPropertyObservable(self.IsHighlighted):Pipe({
|
|
114
112
|
Rx.map(function(value)
|
|
115
113
|
return value and 1 or 0
|
|
@@ -121,4 +119,4 @@ function HandleHighlightModel._updateHighlighted(self: HandleHighlightModel): ()
|
|
|
121
119
|
self.IsHighlighted.Value = self.IsMouseOver.Value or self.IsMouseDown.Value
|
|
122
120
|
end
|
|
123
121
|
|
|
124
|
-
return HandleHighlightModel
|
|
122
|
+
return HandleHighlightModel
|