@quenty/actionmanager 13.16.0 → 13.17.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 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
+ # [13.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.16.0...@quenty/actionmanager@13.17.0) (2025-01-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * Use ValueObject activation ([65d09e1](https://github.com/Quenty/NevermoreEngine/commit/65d09e10d2b3519746fd1bcd592425cd985dbaf6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [13.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.15.0...@quenty/actionmanager@13.16.0) (2024-12-15)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/actionmanager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/actionmanager",
3
- "version": "13.16.0",
3
+ "version": "13.17.0",
4
4
  "description": "Holds single toggleable actions (like a tool system)",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,7 +25,7 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/enabledmixin": "^11.9.0",
28
+ "@quenty/enabledmixin": "^11.10.0",
29
29
  "@quenty/loader": "^10.7.1",
30
30
  "@quenty/maid": "^3.4.0",
31
31
  "@quenty/signal": "^7.9.0",
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "0a20ace4dc7d38f8c889bf73b716b33e8a767c54"
37
+ "gitHead": "a55ec046e30ddacc356f3d93fcbc6058888a88f6"
38
38
  }
@@ -15,6 +15,7 @@ local ContextActionService = game:GetService("ContextActionService")
15
15
  local Signal = require("Signal")
16
16
  local Maid = require("Maid")
17
17
  local EnabledMixin = require("EnabledMixin")
18
+ local ValueObject = require("ValueObject")
18
19
 
19
20
  local BaseAction = {}
20
21
  BaseAction.__index = BaseAction
@@ -35,9 +36,7 @@ function BaseAction.new(actionData)
35
36
  self.Activated = self._maid:Add(Signal.new()) -- :Fire(actionMaid, ... (activateData))
36
37
  self.Deactivated = self._maid:Add(Signal.new()) -- :Fire()
37
38
 
38
- self.IsActivatedValue = Instance.new("BoolValue")
39
- self.IsActivatedValue.Value = false
40
- self._maid:GiveTask(self.IsActivatedValue)
39
+ self.IsActivatedValue = self._maid:Add(ValueObject.new(false, "boolean"))
41
40
 
42
41
  self:InitEnabledMixin()
43
42
 
@@ -101,12 +100,6 @@ function BaseAction:_updateShortcuts()
101
100
  if self:IsEnabled() then
102
101
  ContextActionService:BindAction(self._contextActionKey, function(_, userInputState, _)
103
102
  if userInputState == Enum.UserInputState.Begin then
104
- if self._actionData.CanActivateShortcutCallback then
105
- if not self._actionData.CanActivateShortcutCallback() then
106
- return
107
- end
108
- end
109
-
110
103
  self:ToggleActivate()
111
104
  end
112
105
  end, false, unpack(shortcuts))