@quenty/coreguienabler 12.18.0 → 12.18.1-canary.545.2374fb2.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 +11 -0
- package/package.json +7 -7
- package/src/Client/CoreGuiEnabler.lua +4 -4
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
|
+
## [12.18.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguienabler@12.18.0...@quenty/coreguienabler@12.18.1-canary.545.2374fb2.0) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [12.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguienabler@12.17.2...@quenty/coreguienabler@12.18.0) (2025-04-02)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/coreguienabler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/coreguienabler",
|
|
3
|
-
"version": "12.18.0",
|
|
3
|
+
"version": "12.18.1-canary.545.2374fb2.0",
|
|
4
4
|
"description": "Key based CoreGuiEnabler, singleton Use this class to load/unload CoreGuis / other GUIs, by disabling based upon keys Keys are additive, so if you have more than 1 disabled, it's ok.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"Quenty"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@quenty/characterutils": "
|
|
28
|
-
"@quenty/loader": "
|
|
29
|
-
"@quenty/maid": "
|
|
30
|
-
"@quenty/rx": "
|
|
31
|
-
"@quenty/symbol": "
|
|
27
|
+
"@quenty/characterutils": "12.18.1-canary.545.2374fb2.0",
|
|
28
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0",
|
|
29
|
+
"@quenty/maid": "3.4.1-canary.545.2374fb2.0",
|
|
30
|
+
"@quenty/rx": "13.17.1-canary.545.2374fb2.0",
|
|
31
|
+
"@quenty/symbol": "3.4.1-canary.545.2374fb2.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
37
37
|
}
|
|
@@ -58,13 +58,13 @@ function CoreGuiEnabler.new()
|
|
|
58
58
|
-- Specifically handle this so we interface properly
|
|
59
59
|
self:AddState(Enum.CoreGuiType.All, function(isEnabled)
|
|
60
60
|
if isEnabled then
|
|
61
|
-
for _, coreGuiType in
|
|
61
|
+
for _, coreGuiType in Enum.CoreGuiType:GetEnumItems() do
|
|
62
62
|
if coreGuiType ~= Enum.CoreGuiType.All then
|
|
63
63
|
self:Enable(ALL_TOKEN, coreGuiType)
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
else
|
|
67
|
-
for _, coreGuiType in
|
|
67
|
+
for _, coreGuiType in Enum.CoreGuiType:GetEnumItems() do
|
|
68
68
|
if coreGuiType ~= Enum.CoreGuiType.All then
|
|
69
69
|
self:Disable(ALL_TOKEN, coreGuiType)
|
|
70
70
|
end
|
|
@@ -72,7 +72,7 @@ function CoreGuiEnabler.new()
|
|
|
72
72
|
end
|
|
73
73
|
end)
|
|
74
74
|
|
|
75
|
-
for _, coreGuiType in
|
|
75
|
+
for _, coreGuiType in Enum.CoreGuiType:GetEnumItems() do
|
|
76
76
|
if not self._states[coreGuiType] then
|
|
77
77
|
self:AddState(coreGuiType, function(isEnabled)
|
|
78
78
|
StarterGui:SetCoreGuiEnabled(coreGuiType, isEnabled)
|
|
@@ -116,7 +116,7 @@ end
|
|
|
116
116
|
@param coreGuiState string | CoreGuiType
|
|
117
117
|
@return boolean
|
|
118
118
|
]=]
|
|
119
|
-
function CoreGuiEnabler:IsEnabled(coreGuiState)
|
|
119
|
+
function CoreGuiEnabler:IsEnabled(coreGuiState): boolean
|
|
120
120
|
local data = self._states[coreGuiState]
|
|
121
121
|
if not data then
|
|
122
122
|
error(string.format("[CoreGuiEnabler] - State '%s' does not exist.", tostring(coreGuiState)))
|