@quenty/actionmanager 13.19.5-canary.559.9f38947.0 → 13.20.0-canary.559.b31717d.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,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
|
-
|
|
6
|
+
# [13.20.0-canary.559.b31717d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.19.4...@quenty/actionmanager@13.20.0-canary.559.b31717d.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/actionmanager",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0-canary.559.b31717d.0",
|
|
4
4
|
"description": "Holds single toggleable actions (like a tool system)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/enabledmixin": "11.
|
|
29
|
-
"@quenty/loader": "10.8.
|
|
30
|
-
"@quenty/maid": "3.4.
|
|
31
|
-
"@quenty/signal": "7.10.
|
|
32
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/enabledmixin": "11.13.0-canary.559.b31717d.0",
|
|
29
|
+
"@quenty/loader": "10.8.3",
|
|
30
|
+
"@quenty/maid": "3.4.3",
|
|
31
|
+
"@quenty/signal": "7.10.3",
|
|
32
|
+
"@quenty/valueobject": "13.18.0-canary.559.b31717d.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "b31717d8c9f7620c457f5018a2affa760a65334a"
|
|
38
38
|
}
|
|
@@ -12,9 +12,9 @@ local require = require(script.Parent.loader).load(script)
|
|
|
12
12
|
|
|
13
13
|
local ContextActionService = game:GetService("ContextActionService")
|
|
14
14
|
|
|
15
|
-
local Maid = require("Maid")
|
|
16
|
-
local Signal = require("Signal")
|
|
17
15
|
local ValueObject = require("ValueObject")
|
|
16
|
+
local Signal = require("Signal")
|
|
17
|
+
local Maid = require("Maid")
|
|
18
18
|
|
|
19
19
|
local ActionManager = {}
|
|
20
20
|
ActionManager.__index = ActionManager
|
|
@@ -50,12 +50,7 @@ function ActionManager.new()
|
|
|
50
50
|
|
|
51
51
|
-- Immediately deactivate
|
|
52
52
|
if value and not value.IsActivatedValue.Value then
|
|
53
|
-
warn(
|
|
54
|
-
string.format(
|
|
55
|
-
"[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q",
|
|
56
|
-
tostring(value:GetName())
|
|
57
|
-
)
|
|
58
|
-
)
|
|
53
|
+
warn(string.format("[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q", tostring(value:GetName())))
|
|
59
54
|
self.ActiveAction.Value = nil
|
|
60
55
|
end
|
|
61
56
|
end))
|
|
@@ -12,9 +12,9 @@ local require = require(script.Parent.loader).load(script)
|
|
|
12
12
|
|
|
13
13
|
local ContextActionService = game:GetService("ContextActionService")
|
|
14
14
|
|
|
15
|
-
local EnabledMixin = require("EnabledMixin")
|
|
16
|
-
local Maid = require("Maid")
|
|
17
15
|
local Signal = require("Signal")
|
|
16
|
+
local Maid = require("Maid")
|
|
17
|
+
local EnabledMixin = require("EnabledMixin")
|
|
18
18
|
local ValueObject = require("ValueObject")
|
|
19
19
|
|
|
20
20
|
local BaseAction = {}
|
|
@@ -51,6 +51,7 @@ function BaseAction.new(actionData)
|
|
|
51
51
|
|
|
52
52
|
self:_withActionData(actionData)
|
|
53
53
|
|
|
54
|
+
|
|
54
55
|
return self
|
|
55
56
|
end
|
|
56
57
|
|
|
@@ -112,10 +113,10 @@ function BaseAction:GetData()
|
|
|
112
113
|
end
|
|
113
114
|
|
|
114
115
|
function BaseAction:ToggleActivate(...)
|
|
115
|
-
self._activateData = {
|
|
116
|
+
self._activateData = {...}
|
|
116
117
|
|
|
117
118
|
if self:IsEnabled() then
|
|
118
|
-
self.IsActivatedValue.Value = not self.IsActivatedValue.Value
|
|
119
|
+
self.IsActivatedValue.Value = not (self.IsActivatedValue.Value)
|
|
119
120
|
else
|
|
120
121
|
warn("[BaseAction.ToggleActivate] - Not activating, not enabled")
|
|
121
122
|
self.IsActivatedValue.Value = false
|
|
@@ -131,7 +132,7 @@ function BaseAction:Deactivate()
|
|
|
131
132
|
end
|
|
132
133
|
|
|
133
134
|
function BaseAction:Activate(...)
|
|
134
|
-
self._activateData = {
|
|
135
|
+
self._activateData = {...}
|
|
135
136
|
|
|
136
137
|
if self:IsEnabled() then
|
|
137
138
|
self.IsActivatedValue.Value = true
|
|
@@ -146,4 +147,4 @@ function BaseAction:Destroy()
|
|
|
146
147
|
setmetatable(self, nil)
|
|
147
148
|
end
|
|
148
149
|
|
|
149
|
-
return BaseAction
|
|
150
|
+
return BaseAction
|