@quenty/buttonhighlightmodel 14.23.0 → 14.23.1
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 +8 -0
- package/LICENSE.md +1 -1
- package/package.json +4 -4
- package/src/Client/ButtonHighlightModel.lua +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.23.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttonhighlightmodel@14.23.0...@quenty/buttonhighlightmodel@14.23.1) (2026-01-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/buttonhighlightmodel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [14.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/buttonhighlightmodel@14.22.8...@quenty/buttonhighlightmodel@14.23.0) (2026-01-04)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/buttonhighlightmodel
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-2026 James Onnen (Quenty)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/buttonhighlightmodel",
|
|
3
|
-
"version": "14.23.
|
|
3
|
+
"version": "14.23.1",
|
|
4
4
|
"description": "Contains model information for the current button",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@quenty/acceltween": "^2.5.3",
|
|
30
30
|
"@quenty/baseobject": "^10.9.1",
|
|
31
|
-
"@quenty/blend": "^12.23.
|
|
31
|
+
"@quenty/blend": "^12.23.1",
|
|
32
32
|
"@quenty/instanceutils": "^13.21.0",
|
|
33
33
|
"@quenty/loader": "^10.9.1",
|
|
34
34
|
"@quenty/maid": "^3.5.1",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@quenty/rx": "^13.21.0",
|
|
37
37
|
"@quenty/signal": "^7.11.3",
|
|
38
38
|
"@quenty/steputils": "^3.6.1",
|
|
39
|
-
"@quenty/valueobject": "^13.22.
|
|
39
|
+
"@quenty/valueobject": "^13.22.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5232cd2c58ca0dcdf591dd8ae78995211da2f3e2"
|
|
45
45
|
}
|
|
@@ -194,7 +194,7 @@ end
|
|
|
194
194
|
Sets the button for the highlight model.
|
|
195
195
|
@param button
|
|
196
196
|
]=]
|
|
197
|
-
function ButtonHighlightModel.SetButton(self: ButtonHighlightModel, button: GuiObject?)
|
|
197
|
+
function ButtonHighlightModel.SetButton(self: ButtonHighlightModel, button: GuiObject?): () -> ()
|
|
198
198
|
assert(typeof(button) == "Instance" or button == nil, "Bad button")
|
|
199
199
|
|
|
200
200
|
local maid = Maid.new()
|
|
@@ -276,7 +276,7 @@ function ButtonHighlightModel._trackIfButtonMovedOutFromMouse(
|
|
|
276
276
|
self: ButtonHighlightModel,
|
|
277
277
|
maid: Maid.Maid,
|
|
278
278
|
button: GuiObject
|
|
279
|
-
)
|
|
279
|
+
): ()
|
|
280
280
|
maid:GiveTask(button.InputChanged:Connect(function(inputObject: InputObject)
|
|
281
281
|
if inputObject.UserInputType == Enum.UserInputType.MouseMovement then
|
|
282
282
|
self._lastMousePositionForScrollingCheck.Value = inputObject.Position
|
|
@@ -449,7 +449,7 @@ end
|
|
|
449
449
|
@param isChoosen boolean
|
|
450
450
|
@param doNotAnimate boolean
|
|
451
451
|
]=]
|
|
452
|
-
function ButtonHighlightModel.SetIsChoosen(self: ButtonHighlightModel, isChoosen: boolean, doNotAnimate: boolean?)
|
|
452
|
+
function ButtonHighlightModel.SetIsChoosen(self: ButtonHighlightModel, isChoosen: boolean, doNotAnimate: boolean?): ()
|
|
453
453
|
assert(type(isChoosen) == "boolean", "Bad isChoosen")
|
|
454
454
|
|
|
455
455
|
self._isChoosen:SetValue(isChoosen, doNotAnimate)
|
|
@@ -510,8 +510,8 @@ end
|
|
|
510
510
|
Sets whether interaction is enabled
|
|
511
511
|
@param interactionEnabled boolean
|
|
512
512
|
]=]
|
|
513
|
-
function ButtonHighlightModel.SetInteractionEnabled(self: ButtonHighlightModel, interactionEnabled: boolean)
|
|
514
|
-
self._interactionEnabled:Mount(interactionEnabled)
|
|
513
|
+
function ButtonHighlightModel.SetInteractionEnabled(self: ButtonHighlightModel, interactionEnabled: boolean): () -> ()
|
|
514
|
+
return self._interactionEnabled:Mount(interactionEnabled)
|
|
515
515
|
end
|
|
516
516
|
|
|
517
517
|
--[=[
|
|
@@ -535,13 +535,13 @@ end
|
|
|
535
535
|
@param isKeyDown boolean
|
|
536
536
|
@param doNotAnimate boolean -- Optional
|
|
537
537
|
]=]
|
|
538
|
-
function ButtonHighlightModel.SetKeyDown(self: ButtonHighlightModel, isKeyDown: boolean, doNotAnimate: boolean?)
|
|
538
|
+
function ButtonHighlightModel.SetKeyDown(self: ButtonHighlightModel, isKeyDown: boolean, doNotAnimate: boolean?): ()
|
|
539
539
|
assert(type(isKeyDown) == "boolean", "Bad isKeyDown")
|
|
540
540
|
|
|
541
541
|
self._isKeyDown:SetValue(isKeyDown, doNotAnimate)
|
|
542
542
|
end
|
|
543
543
|
|
|
544
|
-
function ButtonHighlightModel._trackTouch(self: ButtonHighlightModel, inputObject: InputObject)
|
|
544
|
+
function ButtonHighlightModel._trackTouch(self: ButtonHighlightModel, inputObject: InputObject): ()
|
|
545
545
|
if inputObject.UserInputState == Enum.UserInputState.End then
|
|
546
546
|
return
|
|
547
547
|
end
|
|
@@ -564,12 +564,12 @@ function ButtonHighlightModel._trackTouch(self: ButtonHighlightModel, inputObjec
|
|
|
564
564
|
self._maid[inputObject] = maid
|
|
565
565
|
end
|
|
566
566
|
|
|
567
|
-
function ButtonHighlightModel._stopTouchTrack(self: ButtonHighlightModel, inputObject: InputObject)
|
|
567
|
+
function ButtonHighlightModel._stopTouchTrack(self: ButtonHighlightModel, inputObject: InputObject): ()
|
|
568
568
|
-- Clears the input tracking as we slide off the button
|
|
569
569
|
self._maid[inputObject] = nil
|
|
570
570
|
end
|
|
571
571
|
|
|
572
|
-
function ButtonHighlightModel._updateTargets(self: ButtonHighlightModel)
|
|
572
|
+
function ButtonHighlightModel._updateTargets(self: ButtonHighlightModel): ()
|
|
573
573
|
self._isMouseOrTouchOver.Value = self._isMouseOver.Value or self._numFingerDown.Value > 0
|
|
574
574
|
|
|
575
575
|
-- Assume event emission can lead to cleanup in middle of call
|
|
@@ -594,7 +594,7 @@ function ButtonHighlightModel._update(self: ButtonHighlightModel): boolean
|
|
|
594
594
|
)
|
|
595
595
|
end
|
|
596
596
|
|
|
597
|
-
function ButtonHighlightModel._setupLegacySteppedMode(self: ButtonHighlightModel)
|
|
597
|
+
function ButtonHighlightModel._setupLegacySteppedMode(self: ButtonHighlightModel): ()
|
|
598
598
|
self._percentHighlightedAccelTween = AccelTween.new(200)
|
|
599
599
|
self._percentHighlightedAccelTween.t = 0
|
|
600
600
|
self._percentHighlightedAccelTween.p = 0
|