@quenty/softshutdown 3.12.1 → 3.13.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
+ # [3.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.12.1...@quenty/softshutdown@3.13.0) (2023-01-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Use CoreGuiEnabler to disable core gui types ([808d020](https://github.com/Quenty/NevermoreEngine/commit/808d020ce49a72e738c7abdc0f918cba40043f46))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.12.0...@quenty/softshutdown@3.12.1) (2023-01-03)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/softshutdown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/softshutdown",
3
- "version": "3.12.1",
3
+ "version": "3.13.0",
4
4
  "description": "This service lets you shut down servers without losing a bunch of players. When game.OnClose is called, the script teleports everyone in the server into a reserved server.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,23 +29,24 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@quenty/attributeutils": "^8.3.0",
32
+ "@quenty/attributeutils": "^8.4.0",
33
33
  "@quenty/baseobject": "^6.0.1",
34
- "@quenty/basicpane": "^7.3.0",
34
+ "@quenty/basicpane": "^7.4.0",
35
35
  "@quenty/bindtocloseservice": "^2.1.1",
36
- "@quenty/blend": "^6.6.0",
37
- "@quenty/clienttranslator": "^8.8.0",
36
+ "@quenty/blend": "^6.7.0",
37
+ "@quenty/clienttranslator": "^8.9.0",
38
+ "@quenty/coreguienabler": "^6.1.0",
38
39
  "@quenty/datastore": "^7.4.1",
39
40
  "@quenty/loader": "^6.0.1",
40
41
  "@quenty/maid": "^2.4.0",
41
42
  "@quenty/math": "^2.2.0",
42
43
  "@quenty/promise": "^6.0.1",
43
- "@quenty/rx": "^7.3.0",
44
+ "@quenty/rx": "^7.4.0",
44
45
  "@quenty/servicebag": "^6.4.0",
45
46
  "@quenty/table": "^3.1.0",
46
47
  "@quenty/teleportserviceutils": "^3.1.1",
47
48
  "@quenty/uiobjectutils": "^3.1.0",
48
- "@quenty/valuebaseutils": "^7.4.0"
49
+ "@quenty/valuebaseutils": "^7.5.0"
49
50
  },
50
- "gitHead": "8f4aef032ba8bb0e3b3e576df73d921cc1ac545b"
51
+ "gitHead": "db2db00ab4e24a3eab0449b77a00bee6d91f2755"
51
52
  }
@@ -6,7 +6,6 @@ local require = require(script.Parent.loader).load(script)
6
6
 
7
7
  local Workspace = game:GetService("Workspace")
8
8
  local UserInputService = game:GetService("UserInputService")
9
- local StarterGui = game:GetService("StarterGui")
10
9
  local TeleportService = game:GetService("TeleportService")
11
10
 
12
11
  local AttributeValue = require("AttributeValue")
@@ -17,6 +16,7 @@ local SoftShutdownConstants = require("SoftShutdownConstants")
17
16
  local SoftShutdownTranslator = require("SoftShutdownTranslator")
18
17
  local SoftShutdownUI = require("SoftShutdownUI")
19
18
  local RxValueBaseUtils = require("RxValueBaseUtils")
19
+ local CoreGuiEnabler = require("CoreGuiEnabler")
20
20
 
21
21
  local SoftShutdownServiceClient = {}
22
22
  SoftShutdownServiceClient.ServiceName = "SoftShutdownServiceClient"
@@ -197,15 +197,7 @@ function SoftShutdownServiceClient:_hideCoreGuiUI(maid, ignoreScreenGui)
197
197
  end)
198
198
 
199
199
  for _, coreGuiType in pairs(DISABLE_CORE_GUI_TYPES) do
200
- task.spawn(function()
201
- if StarterGui:GetCoreGuiEnabled(coreGuiType) then
202
- StarterGui:SetCoreGuiEnabled(coreGuiType, false)
203
-
204
- maid:GiveTask(function()
205
- StarterGui:SetCoreGuiEnabled(coreGuiType, true)
206
- end)
207
- end
208
- end)
200
+ maid:GiveTask(CoreGuiEnabler:Disable(self, coreGuiType))
209
201
  end
210
202
  end
211
203