@quenty/softshutdown 3.27.0 → 3.28.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,22 @@
|
|
|
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.28.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.27.0...@quenty/softshutdown@3.28.0) (2023-05-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix dependencies ([67791a2](https://github.com/Quenty/NevermoreEngine/commit/67791a289c0956bf4947ac81bf792ee56496b3e8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@3.26.0...@quenty/softshutdown@3.27.0) (2023-05-08)
|
|
7
23
|
|
|
8
24
|
**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.
|
|
3
|
+
"version": "3.28.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,24 +29,25 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@quenty/attributeutils": "^8.
|
|
32
|
+
"@quenty/attributeutils": "^8.15.0",
|
|
33
33
|
"@quenty/baseobject": "^6.2.1",
|
|
34
|
-
"@quenty/basicpane": "^7.
|
|
35
|
-
"@quenty/bindtocloseservice": "^2.
|
|
36
|
-
"@quenty/blend": "^6.
|
|
37
|
-
"@quenty/clienttranslator": "^8.
|
|
38
|
-
"@quenty/coreguienabler": "^6.
|
|
39
|
-
"@quenty/datastore": "^7.
|
|
34
|
+
"@quenty/basicpane": "^7.14.0",
|
|
35
|
+
"@quenty/bindtocloseservice": "^2.11.0",
|
|
36
|
+
"@quenty/blend": "^6.18.0",
|
|
37
|
+
"@quenty/clienttranslator": "^8.21.0",
|
|
38
|
+
"@quenty/coreguienabler": "^6.9.0",
|
|
39
|
+
"@quenty/datastore": "^7.15.0",
|
|
40
40
|
"@quenty/loader": "^6.2.1",
|
|
41
41
|
"@quenty/maid": "^2.5.0",
|
|
42
42
|
"@quenty/math": "^2.3.0",
|
|
43
43
|
"@quenty/promise": "^6.5.0",
|
|
44
|
-
"@quenty/rx": "^7.
|
|
45
|
-
"@quenty/servicebag": "^6.
|
|
44
|
+
"@quenty/rx": "^7.11.0",
|
|
45
|
+
"@quenty/servicebag": "^6.7.0",
|
|
46
46
|
"@quenty/table": "^3.2.0",
|
|
47
|
-
"@quenty/teleportserviceutils": "^3.
|
|
48
|
-
"@quenty/uiobjectutils": "^3.
|
|
49
|
-
"@quenty/valuebaseutils": "^7.
|
|
47
|
+
"@quenty/teleportserviceutils": "^3.7.0",
|
|
48
|
+
"@quenty/uiobjectutils": "^3.4.0",
|
|
49
|
+
"@quenty/valuebaseutils": "^7.14.0",
|
|
50
|
+
"@quenty/valueobject": "^7.14.0"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
|
|
52
53
|
}
|
|
@@ -15,7 +15,7 @@ local Rx = require("Rx")
|
|
|
15
15
|
local SoftShutdownConstants = require("SoftShutdownConstants")
|
|
16
16
|
local SoftShutdownTranslator = require("SoftShutdownTranslator")
|
|
17
17
|
local SoftShutdownUI = require("SoftShutdownUI")
|
|
18
|
-
local
|
|
18
|
+
local ValueObject = require("ValueObject")
|
|
19
19
|
local CoreGuiEnabler = require("CoreGuiEnabler")
|
|
20
20
|
|
|
21
21
|
local SoftShutdownServiceClient = {}
|
|
@@ -40,12 +40,10 @@ function SoftShutdownServiceClient:Init(serviceBag)
|
|
|
40
40
|
self._isLobby = AttributeValue.new(Workspace, SoftShutdownConstants.IS_SOFT_SHUTDOWN_LOBBY_ATTRIBUTE, false)
|
|
41
41
|
self._isUpdating = AttributeValue.new(Workspace, SoftShutdownConstants.IS_SOFT_SHUTDOWN_UPDATING_ATTRIBUTE, false)
|
|
42
42
|
|
|
43
|
-
self._localTeleportDataSaysIsLobby =
|
|
44
|
-
self._localTeleportDataSaysIsLobby.Value = false
|
|
43
|
+
self._localTeleportDataSaysIsLobby = ValueObject.new(false, "boolean")
|
|
45
44
|
self._maid:GiveTask(self._localTeleportDataSaysIsLobby)
|
|
46
45
|
|
|
47
|
-
self._isArrivingAfterShutdown =
|
|
48
|
-
self._isArrivingAfterShutdown.Value = false
|
|
46
|
+
self._isArrivingAfterShutdown = ValueObject.new(false, "boolean")
|
|
49
47
|
self._maid:GiveTask(self._isArrivingAfterShutdown)
|
|
50
48
|
|
|
51
49
|
task.spawn(function()
|
|
@@ -60,8 +58,8 @@ function SoftShutdownServiceClient:Init(serviceBag)
|
|
|
60
58
|
self._maid:GiveTask(Rx.combineLatest({
|
|
61
59
|
isLobby = self._isLobby:Observe();
|
|
62
60
|
isShuttingDown = self._isUpdating:Observe();
|
|
63
|
-
localTeleportDataSaysIsLobby =
|
|
64
|
-
isArrivingAfterShutdown =
|
|
61
|
+
localTeleportDataSaysIsLobby = self._localTeleportDataSaysIsLobby:Observe();
|
|
62
|
+
isArrivingAfterShutdown = self._isArrivingAfterShutdown:Observe();
|
|
65
63
|
}):Subscribe(function(state)
|
|
66
64
|
if state.isLobby or state.localTeleportDataSaysIsLobby then
|
|
67
65
|
self._maid._shutdownUI = nil
|
|
@@ -213,7 +213,7 @@ function SoftShutdownUI:_render()
|
|
|
213
213
|
[Blend.Children] = {
|
|
214
214
|
Blend.New "Frame" {
|
|
215
215
|
BackgroundColor3 = backgroundColor;
|
|
216
|
-
Size = UDim2.fromScale(
|
|
216
|
+
Size = UDim2.fromScale(4/14, 4/14);
|
|
217
217
|
AnchorPoint = Vector2.new(0.5, 0.5);
|
|
218
218
|
Position = UDim2.fromScale(0.5, 0.5);
|
|
219
219
|
BackgroundTransparency = transparency;
|