@quenty/screenshothudservice 7.18.3-canary.550.afa1b3b.0 → 7.18.4-canary.11a5dcf.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,18 @@
|
|
|
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
|
-
## [7.18.
|
|
6
|
+
## [7.18.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/screenshothudservice@7.18.3...@quenty/screenshothudservice@7.18.4-canary.11a5dcf.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/screenshothudservice@7.18.2...@quenty/screenshothudservice@7.18.3) (2025-04-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/screenshothudservice
|
|
9
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/screenshothudservice",
|
|
3
|
-
"version": "7.18.
|
|
3
|
+
"version": "7.18.4-canary.11a5dcf.0",
|
|
4
4
|
"description": "Provides centralized API surface for screenshot hud API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.8.
|
|
29
|
-
"@quenty/brio": "14.17.
|
|
30
|
-
"@quenty/instanceutils": "13.17.
|
|
31
|
-
"@quenty/loader": "10.8.
|
|
32
|
-
"@quenty/maid": "3.4.
|
|
33
|
-
"@quenty/promise": "10.10.
|
|
34
|
-
"@quenty/rx": "13.17.
|
|
35
|
-
"@quenty/servicebag": "11.11.
|
|
36
|
-
"@quenty/signal": "7.10.
|
|
37
|
-
"@quenty/statestack": "14.18.
|
|
38
|
-
"@quenty/valueobject": "13.17.
|
|
28
|
+
"@quenty/baseobject": "10.8.4-canary.11a5dcf.0",
|
|
29
|
+
"@quenty/brio": "14.17.4-canary.11a5dcf.0",
|
|
30
|
+
"@quenty/instanceutils": "13.17.4-canary.11a5dcf.0",
|
|
31
|
+
"@quenty/loader": "10.8.4-canary.11a5dcf.0",
|
|
32
|
+
"@quenty/maid": "3.4.4-canary.11a5dcf.0",
|
|
33
|
+
"@quenty/promise": "10.10.5-canary.11a5dcf.0",
|
|
34
|
+
"@quenty/rx": "13.17.4-canary.11a5dcf.0",
|
|
35
|
+
"@quenty/servicebag": "11.11.5-canary.11a5dcf.0",
|
|
36
|
+
"@quenty/signal": "7.10.4-canary.11a5dcf.0",
|
|
37
|
+
"@quenty/statestack": "14.18.4-canary.11a5dcf.0",
|
|
38
|
+
"@quenty/valueobject": "13.17.4-canary.11a5dcf.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
|
|
44
44
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
|
-
local
|
|
9
|
+
local Observable = require("Observable")
|
|
10
10
|
local Signal = require("Signal")
|
|
11
|
-
local
|
|
11
|
+
local ValueObject = require("ValueObject")
|
|
12
12
|
|
|
13
13
|
local ScreenshotHudModel = setmetatable({}, BaseObject)
|
|
14
14
|
ScreenshotHudModel.ClassName = "ScreenshotHudModel"
|
|
@@ -68,7 +68,7 @@ end
|
|
|
68
68
|
Observes close button visiblity
|
|
69
69
|
@return Observable<boolean>
|
|
70
70
|
]=]
|
|
71
|
-
function ScreenshotHudModel.ObserveCloseButtonVisible(self: ScreenshotHudModel):
|
|
71
|
+
function ScreenshotHudModel.ObserveCloseButtonVisible(self: ScreenshotHudModel): Observable.Observable<boolean>
|
|
72
72
|
return self._closeButtonVisible:Observe()
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -86,7 +86,7 @@ end
|
|
|
86
86
|
Observes camera button visiblity
|
|
87
87
|
@return Observable<boolean>
|
|
88
88
|
]=]
|
|
89
|
-
function ScreenshotHudModel.ObserveCameraButtonVisible(self: ScreenshotHudModel):
|
|
89
|
+
function ScreenshotHudModel.ObserveCameraButtonVisible(self: ScreenshotHudModel): Observable.Observable<boolean>
|
|
90
90
|
return self._cameraButtonVisible:Observe()
|
|
91
91
|
end
|
|
92
92
|
|
|
@@ -133,7 +133,7 @@ end
|
|
|
133
133
|
Observes the close button's position
|
|
134
134
|
@return Observable<UDim2>
|
|
135
135
|
]=]
|
|
136
|
-
function ScreenshotHudModel.ObserveCloseButtonPosition(self: ScreenshotHudModel):
|
|
136
|
+
function ScreenshotHudModel.ObserveCloseButtonPosition(self: ScreenshotHudModel): Observable.Observable<UDim2>
|
|
137
137
|
return self._closeButtonPosition:Observe()
|
|
138
138
|
end
|
|
139
139
|
|
|
@@ -151,7 +151,7 @@ end
|
|
|
151
151
|
Observes the camera button's position
|
|
152
152
|
@return Observable<UDim2>
|
|
153
153
|
]=]
|
|
154
|
-
function ScreenshotHudModel.ObserveCameraButtonPosition(self: ScreenshotHudModel):
|
|
154
|
+
function ScreenshotHudModel.ObserveCameraButtonPosition(self: ScreenshotHudModel): Observable.Observable<UDim2>
|
|
155
155
|
return self._cameraButtonPosition:Observe()
|
|
156
156
|
end
|
|
157
157
|
|
|
@@ -169,7 +169,7 @@ end
|
|
|
169
169
|
Observes the overlay font
|
|
170
170
|
@return Observable<Enum.Font>
|
|
171
171
|
]=]
|
|
172
|
-
function ScreenshotHudModel.ObserveOverlayFont(self: ScreenshotHudModel):
|
|
172
|
+
function ScreenshotHudModel.ObserveOverlayFont(self: ScreenshotHudModel): Observable.Observable<Enum.Font>
|
|
173
173
|
return self._overlayFont:Observe()
|
|
174
174
|
end
|
|
175
175
|
|
|
@@ -189,7 +189,7 @@ end
|
|
|
189
189
|
|
|
190
190
|
@return Observable<string>
|
|
191
191
|
]=]
|
|
192
|
-
function ScreenshotHudModel.ObserveCameraButtonIcon(self: ScreenshotHudModel):
|
|
192
|
+
function ScreenshotHudModel.ObserveCameraButtonIcon(self: ScreenshotHudModel): Observable.Observable<string>
|
|
193
193
|
return self._cameraButtonIcon:Observe()
|
|
194
194
|
end
|
|
195
195
|
|
|
@@ -216,7 +216,7 @@ end
|
|
|
216
216
|
Observes whether a screenshot is taken
|
|
217
217
|
@return Observable<boolean>
|
|
218
218
|
]=]
|
|
219
|
-
function ScreenshotHudModel.ObserveCloseWhenScreenshotTaken(self: ScreenshotHudModel):
|
|
219
|
+
function ScreenshotHudModel.ObserveCloseWhenScreenshotTaken(self: ScreenshotHudModel): Observable.Observable<boolean>
|
|
220
220
|
return self._closeWhenScreenshotTaken:Observe()
|
|
221
221
|
end
|
|
222
222
|
|
|
@@ -239,7 +239,7 @@ end
|
|
|
239
239
|
]=]
|
|
240
240
|
function ScreenshotHudModel.ObserveExperienceNameOverlayEnabled(
|
|
241
241
|
self: ScreenshotHudModel
|
|
242
|
-
):
|
|
242
|
+
): Observable.Observable<boolean>
|
|
243
243
|
return self._experienceNameOverlayEnabled:Observe()
|
|
244
244
|
end
|
|
245
245
|
|
|
@@ -257,7 +257,7 @@ end
|
|
|
257
257
|
Observes whether the username name overlay is enabled
|
|
258
258
|
@return Observable<boolean>
|
|
259
259
|
]=]
|
|
260
|
-
function ScreenshotHudModel.ObserveUsernameOverlayEnabled(self: ScreenshotHudModel):
|
|
260
|
+
function ScreenshotHudModel.ObserveUsernameOverlayEnabled(self: ScreenshotHudModel): Observable.Observable<boolean>
|
|
261
261
|
return self._usernameOverlayEnabled:Observe()
|
|
262
262
|
end
|
|
263
263
|
|
|
@@ -265,7 +265,7 @@ end
|
|
|
265
265
|
Observes whilet he model is visible
|
|
266
266
|
@return Observable<boolean>
|
|
267
267
|
]=]
|
|
268
|
-
function ScreenshotHudModel.ObserveVisible(self: ScreenshotHudModel):
|
|
268
|
+
function ScreenshotHudModel.ObserveVisible(self: ScreenshotHudModel): Observable.Observable<boolean>
|
|
269
269
|
return self._visible:Observe()
|
|
270
270
|
end
|
|
271
271
|
|
|
@@ -277,4 +277,4 @@ function ScreenshotHudModel.InternalFireClosedRequested(self: ScreenshotHudModel
|
|
|
277
277
|
self.CloseRequested:Fire()
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
return ScreenshotHudModel
|
|
280
|
+
return ScreenshotHudModel
|
|
@@ -7,16 +7,16 @@ local require = require(script.Parent.loader).load(script)
|
|
|
7
7
|
local GuiService = game:GetService("GuiService")
|
|
8
8
|
|
|
9
9
|
local Maid = require("Maid")
|
|
10
|
-
local RxInstanceUtils = require("RxInstanceUtils")
|
|
11
|
-
local StateStack = require("StateStack")
|
|
12
10
|
local Rx = require("Rx")
|
|
13
11
|
local RxBrioUtils = require("RxBrioUtils")
|
|
14
|
-
local
|
|
12
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
13
|
+
local ServiceBag = require("ServiceBag")
|
|
14
|
+
local StateStack = require("StateStack")
|
|
15
15
|
|
|
16
16
|
local ScreenshotHudServiceClient = {}
|
|
17
17
|
ScreenshotHudServiceClient.ServiceName = "ScreenshotHudServiceClient"
|
|
18
18
|
|
|
19
|
-
function ScreenshotHudServiceClient:Init(serviceBag:
|
|
19
|
+
function ScreenshotHudServiceClient:Init(serviceBag: ServiceBag.ServiceBag)
|
|
20
20
|
assert(not self._serviceBag, "Already initialized")
|
|
21
21
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
22
22
|
self._maid = Maid.new()
|
|
@@ -57,8 +57,8 @@ end
|
|
|
57
57
|
|
|
58
58
|
function ScreenshotHudServiceClient:_bindModelToHUD(maid: Maid.Maid, model, screenshotHUD)
|
|
59
59
|
maid:GiveTask(Rx.combineLatest({
|
|
60
|
-
visible = model:ObserveCloseButtonVisible()
|
|
61
|
-
position = model:ObserveCloseButtonPosition()
|
|
60
|
+
visible = model:ObserveCloseButtonVisible(),
|
|
61
|
+
position = model:ObserveCloseButtonPosition(),
|
|
62
62
|
}):Subscribe(function(state)
|
|
63
63
|
if state.visible then
|
|
64
64
|
screenshotHUD.CloseButtonPosition = state.position
|
|
@@ -70,8 +70,8 @@ function ScreenshotHudServiceClient:_bindModelToHUD(maid: Maid.Maid, model, scre
|
|
|
70
70
|
|
|
71
71
|
-- I'm not sure why you would do this, but it's here
|
|
72
72
|
maid:GiveTask(Rx.combineLatest({
|
|
73
|
-
visible = model:ObserveCameraButtonVisible()
|
|
74
|
-
position = model:ObserveCameraButtonPosition()
|
|
73
|
+
visible = model:ObserveCameraButtonVisible(),
|
|
74
|
+
position = model:ObserveCameraButtonPosition(),
|
|
75
75
|
}):Subscribe(function(state)
|
|
76
76
|
if state.visible then
|
|
77
77
|
screenshotHUD.CameraButtonPosition = state.position
|
|
@@ -139,4 +139,4 @@ function ScreenshotHudServiceClient:Destroy()
|
|
|
139
139
|
self._maid:DoCleaning()
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
return ScreenshotHudServiceClient
|
|
142
|
+
return ScreenshotHudServiceClient
|