@quenty/screenshothudservice 7.18.0-canary.544.de8fcee.0 → 7.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
CHANGED
|
@@ -3,7 +3,26 @@
|
|
|
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
|
-
|
|
6
|
+
## [7.18.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/screenshothudservice@7.18.0...@quenty/screenshothudservice@7.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
|
+
|
|
17
|
+
# [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/screenshothudservice@7.17.2...@quenty/screenshothudservice@7.18.0) (2025-04-02)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @quenty/screenshothudservice
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [7.17.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/screenshothudservice@7.17.1...@quenty/screenshothudservice@7.17.2) (2025-03-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @quenty/screenshothudservice
|
|
9
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/screenshothudservice",
|
|
3
|
-
"version": "7.18.
|
|
3
|
+
"version": "7.18.1-canary.545.2374fb2.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.0",
|
|
29
|
-
"@quenty/brio": "14.17.
|
|
30
|
-
"@quenty/instanceutils": "13.17.
|
|
31
|
-
"@quenty/loader": "10.8.0",
|
|
32
|
-
"@quenty/maid": "3.4.0",
|
|
33
|
-
"@quenty/promise": "10.10.
|
|
34
|
-
"@quenty/rx": "13.17.
|
|
35
|
-
"@quenty/servicebag": "11.11.
|
|
36
|
-
"@quenty/signal": "7.10.0",
|
|
37
|
-
"@quenty/statestack": "14.18.
|
|
38
|
-
"@quenty/valueobject": "13.17.
|
|
28
|
+
"@quenty/baseobject": "10.8.1-canary.545.2374fb2.0",
|
|
29
|
+
"@quenty/brio": "14.17.1-canary.545.2374fb2.0",
|
|
30
|
+
"@quenty/instanceutils": "13.17.1-canary.545.2374fb2.0",
|
|
31
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0",
|
|
32
|
+
"@quenty/maid": "3.4.1-canary.545.2374fb2.0",
|
|
33
|
+
"@quenty/promise": "10.10.2-canary.545.2374fb2.0",
|
|
34
|
+
"@quenty/rx": "13.17.1-canary.545.2374fb2.0",
|
|
35
|
+
"@quenty/servicebag": "11.11.2-canary.545.2374fb2.0",
|
|
36
|
+
"@quenty/signal": "7.10.1-canary.545.2374fb2.0",
|
|
37
|
+
"@quenty/statestack": "14.18.1-canary.545.2374fb2.0",
|
|
38
|
+
"@quenty/valueobject": "13.17.1-canary.545.2374fb2.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
44
44
|
}
|
|
@@ -103,13 +103,12 @@ end
|
|
|
103
103
|
|
|
104
104
|
@param visible boolean
|
|
105
105
|
]=]
|
|
106
|
-
function ScreenshotHudModel:SetVisible(visible)
|
|
106
|
+
function ScreenshotHudModel:SetVisible(visible: boolean)
|
|
107
107
|
assert(type(visible) == "boolean", "Bad visible")
|
|
108
108
|
|
|
109
109
|
self._visible.Value = visible
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
|
|
113
112
|
--[=[
|
|
114
113
|
Sets the close button's position
|
|
115
114
|
@param position UDim2 | nil
|
|
@@ -167,7 +166,7 @@ end
|
|
|
167
166
|
--[=[
|
|
168
167
|
Sets the camera button's icon.
|
|
169
168
|
|
|
170
|
-
@param icon string
|
|
169
|
+
@param icon string?
|
|
171
170
|
]=]
|
|
172
171
|
function ScreenshotHudModel:SetCameraButtonIcon(icon)
|
|
173
172
|
assert(type(icon) == "string" or icon == nil, "Bad icon")
|
|
@@ -189,7 +188,7 @@ end
|
|
|
189
188
|
|
|
190
189
|
@param closeWhenScreenshotTaken boolean
|
|
191
190
|
]=]
|
|
192
|
-
function ScreenshotHudModel:SetCloseWhenScreenshotTaken(closeWhenScreenshotTaken)
|
|
191
|
+
function ScreenshotHudModel:SetCloseWhenScreenshotTaken(closeWhenScreenshotTaken: boolean)
|
|
193
192
|
assert(type(closeWhenScreenshotTaken) == "boolean", "Bad closeWhenScreenshotTaken")
|
|
194
193
|
|
|
195
194
|
self._closeWhenScreenshotTaken.Value = closeWhenScreenshotTaken
|
|
@@ -215,7 +214,7 @@ end
|
|
|
215
214
|
Sets whether to experience name overlay should be enabled
|
|
216
215
|
@param experienceNameOverlayEnabled boolean
|
|
217
216
|
]=]
|
|
218
|
-
function ScreenshotHudModel:SetExperienceNameOverlayEnabled(experienceNameOverlayEnabled)
|
|
217
|
+
function ScreenshotHudModel:SetExperienceNameOverlayEnabled(experienceNameOverlayEnabled: boolean)
|
|
219
218
|
assert(type(experienceNameOverlayEnabled) == "boolean", "Bad experienceNameOverlayEnabled")
|
|
220
219
|
|
|
221
220
|
self._experienceNameOverlayEnabled.Value = experienceNameOverlayEnabled
|
|
@@ -233,7 +232,7 @@ end
|
|
|
233
232
|
Sets whether to username overlay should be enabled
|
|
234
233
|
@param usernameOverlayEnabled boolean
|
|
235
234
|
]=]
|
|
236
|
-
function ScreenshotHudModel:SetUsernameOverlayEnabled(usernameOverlayEnabled)
|
|
235
|
+
function ScreenshotHudModel:SetUsernameOverlayEnabled(usernameOverlayEnabled: boolean)
|
|
237
236
|
assert(type(usernameOverlayEnabled) == "boolean", "Bad usernameOverlayEnabled")
|
|
238
237
|
|
|
239
238
|
self._usernameOverlayEnabled.Value = usernameOverlayEnabled
|
|
@@ -11,10 +11,12 @@ local RxInstanceUtils = require("RxInstanceUtils")
|
|
|
11
11
|
local StateStack = require("StateStack")
|
|
12
12
|
local Rx = require("Rx")
|
|
13
13
|
local RxBrioUtils = require("RxBrioUtils")
|
|
14
|
+
local _ServiceBag = require("ServiceBag")
|
|
15
|
+
|
|
14
16
|
local ScreenshotHudServiceClient = {}
|
|
15
17
|
ScreenshotHudServiceClient.ServiceName = "ScreenshotHudServiceClient"
|
|
16
18
|
|
|
17
|
-
function ScreenshotHudServiceClient:Init(serviceBag)
|
|
19
|
+
function ScreenshotHudServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
18
20
|
assert(not self._serviceBag, "Already initialized")
|
|
19
21
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
20
22
|
self._maid = Maid.new()
|
|
@@ -22,8 +24,8 @@ function ScreenshotHudServiceClient:Init(serviceBag)
|
|
|
22
24
|
self._screenshotHudState = self._maid:Add(StateStack.new(nil))
|
|
23
25
|
|
|
24
26
|
self._maid:GiveTask(RxBrioUtils.flatCombineLatest({
|
|
25
|
-
model = self._screenshotHudState:Observe()
|
|
26
|
-
screenshotHUD = self:_observeScreenshotHudBrio()
|
|
27
|
+
model = self._screenshotHudState:Observe(),
|
|
28
|
+
screenshotHUD = self:_observeScreenshotHudBrio(),
|
|
27
29
|
}):Subscribe(function(state)
|
|
28
30
|
self._maid._current = nil
|
|
29
31
|
local maid = Maid.new()
|
|
@@ -53,7 +55,7 @@ function ScreenshotHudServiceClient:PushModel(screenshotHudModel)
|
|
|
53
55
|
end
|
|
54
56
|
end
|
|
55
57
|
|
|
56
|
-
function ScreenshotHudServiceClient:_bindModelToHUD(maid, model, screenshotHUD)
|
|
58
|
+
function ScreenshotHudServiceClient:_bindModelToHUD(maid: Maid.Maid, model, screenshotHUD)
|
|
57
59
|
maid:GiveTask(Rx.combineLatest({
|
|
58
60
|
visible = model:ObserveCloseButtonVisible();
|
|
59
61
|
position = model:ObserveCloseButtonPosition();
|