@quenty/coreguienabler 12.5.1-canary.497.9e2859c.0 → 12.5.1-canary.499.60b3012.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,9 +3,12 @@
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.5.1-canary.497.9e2859c.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguienabler@12.5.0...@quenty/coreguienabler@12.5.1-canary.497.9e2859c.0) (2024-09-24)
6
+ ## [12.5.1-canary.499.60b3012.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/coreguienabler@12.5.0...@quenty/coreguienabler@12.5.1-canary.499.60b3012.0) (2024-09-24)
7
7
 
8
- **Note:** Version bump only for package @quenty/coreguienabler
8
+
9
+ ### Features
10
+
11
+ * Add PushDisable() to CoreGuiEnabler ([ed08e0e](https://github.com/Quenty/NevermoreEngine/commit/ed08e0e84517940ca82a8a31065c7fd30a8265e3))
9
12
 
10
13
 
11
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/coreguienabler",
3
- "version": "12.5.1-canary.497.9e2859c.0",
3
+ "version": "12.5.1-canary.499.60b3012.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": "12.5.1-canary.497.9e2859c.0",
28
- "@quenty/loader": "10.4.1-canary.497.9e2859c.0",
27
+ "@quenty/characterutils": "12.5.1-canary.499.60b3012.0",
28
+ "@quenty/loader": "10.4.0",
29
29
  "@quenty/maid": "3.3.0",
30
- "@quenty/rx": "13.5.1-canary.497.9e2859c.0",
30
+ "@quenty/rx": "13.5.1-canary.499.60b3012.0",
31
31
  "@quenty/symbol": "3.1.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "9e2859c1924d409f38f9f8e8e822abd8b4ebdb55"
36
+ "gitHead": "60b3012c35a2bf7c3c6a01ec440f9d639b9ad0cc"
37
37
  }
@@ -193,6 +193,16 @@ function CoreGuiEnabler:Disable(key, coreGuiState)
193
193
  end
194
194
  end
195
195
 
196
+ function CoreGuiEnabler:PushDisable(coreGuiState)
197
+ local maid = Maid.new()
198
+
199
+ self:Disable(maid, coreGuiState)
200
+
201
+ return function()
202
+ maid:DoCleaning()
203
+ end
204
+ end
205
+
196
206
  --[=[
197
207
  Enables a state for a given key
198
208
  @param key any