@quenty/actionmanager 13.5.1-canary.499.60b3012.0 → 13.6.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.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/actionmanager@13.5.0...@quenty/actionmanager@13.6.0) (2024-09-25)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @quenty/actionmanager
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/actionmanager",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.6.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.
|
|
30
|
-
"@quenty/maid": "3.3.0",
|
|
31
|
-
"@quenty/signal": "7.
|
|
32
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/enabledmixin": "^11.5.0",
|
|
29
|
+
"@quenty/loader": "^10.5.0",
|
|
30
|
+
"@quenty/maid": "^3.3.0",
|
|
31
|
+
"@quenty/signal": "^7.5.0",
|
|
32
|
+
"@quenty/valueobject": "^13.6.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
|
|
38
38
|
}
|
|
@@ -52,7 +52,7 @@ function ActionManager.new()
|
|
|
52
52
|
|
|
53
53
|
-- Immediately deactivate
|
|
54
54
|
if value and not value.IsActivatedValue.Value then
|
|
55
|
-
warn(("[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q"
|
|
55
|
+
warn(string.format("[ActionManager.ActiveAction.Changed] - Immediate deactivation of %q", tostring(value:GetName())))
|
|
56
56
|
self.ActiveAction.Value = nil
|
|
57
57
|
end
|
|
58
58
|
end))
|
|
@@ -69,7 +69,7 @@ function ActionManager:ActivateAction(name, ...)
|
|
|
69
69
|
if action then
|
|
70
70
|
action:Activate(...)
|
|
71
71
|
else
|
|
72
|
-
error(("[ActionManager] - No action with name '%s'"
|
|
72
|
+
error(string.format("[ActionManager] - No action with name '%s'", tostring(name)))
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -91,7 +91,7 @@ function ActionManager:AddAction(action)
|
|
|
91
91
|
local name = action:GetName()
|
|
92
92
|
|
|
93
93
|
if self._actions[name] then
|
|
94
|
-
error(("[ActionManager] - action with name '%s' already exists"
|
|
94
|
+
error(string.format("[ActionManager] - action with name '%s' already exists", tostring(name)))
|
|
95
95
|
return
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -29,7 +29,7 @@ function BaseAction.new(actionData)
|
|
|
29
29
|
|
|
30
30
|
self._maid = Maid.new()
|
|
31
31
|
self._name = actionData.Name or error("No name")
|
|
32
|
-
self._contextActionKey = ("%s_ContextAction"
|
|
32
|
+
self._contextActionKey = string.format("%s_ContextAction", tostring(self._name))
|
|
33
33
|
self._activateData = nil -- Data to be fired with the Activated event
|
|
34
34
|
|
|
35
35
|
self.Activated = Signal.new() -- :Fire(actionMaid, ... (activateData))
|
|
@@ -147,7 +147,7 @@ function BaseAction:Activate(...)
|
|
|
147
147
|
if self:IsEnabled() then
|
|
148
148
|
self.IsActivatedValue.Value = true
|
|
149
149
|
else
|
|
150
|
-
warn(("[%s.Activate] - Not activating. Disabled!"
|
|
150
|
+
warn(string.format("[%s.Activate] - Not activating. Disabled!", self:GetName()))
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|