@quenty/hide 11.21.3 → 11.21.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,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
|
+
## [11.21.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@11.21.3...@quenty/hide@11.21.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
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Add even more types ([b31717d](https://github.com/Quenty/NevermoreEngine/commit/b31717d8c9f7620c457f5018a2affa760a65334a))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [11.21.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@11.21.2...@quenty/hide@11.21.3) (2025-04-10)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/hide
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/hide",
|
|
3
|
-
"version": "11.21.
|
|
3
|
+
"version": "11.21.4-canary.11a5dcf.0",
|
|
4
4
|
"description": "Utility system that leverages the binder system to hide authored objects. Centralized here for cross-system communication.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/binder": "
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/servicebag": "
|
|
29
|
+
"@quenty/binder": "14.19.4-canary.11a5dcf.0",
|
|
30
|
+
"@quenty/loader": "10.8.4-canary.11a5dcf.0",
|
|
31
|
+
"@quenty/servicebag": "11.11.5-canary.11a5dcf.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
|
|
37
37
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
@class HideServiceClient
|
|
3
4
|
]=]
|
|
4
5
|
|
|
5
6
|
local require = require(script.Parent.loader).load(script)
|
|
6
7
|
|
|
7
|
-
local
|
|
8
|
+
local ServiceBag = require("ServiceBag")
|
|
8
9
|
|
|
9
10
|
local HideServiceClient = {}
|
|
10
11
|
HideServiceClient.ServiceName = "HideServiceClient"
|
|
11
12
|
|
|
12
|
-
function HideServiceClient:Init(serviceBag:
|
|
13
|
+
function HideServiceClient:Init(serviceBag: ServiceBag.ServiceBag)
|
|
13
14
|
assert(not self._serviceBag, "Already initialized")
|
|
14
15
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
15
16
|
|
|
@@ -17,4 +18,4 @@ function HideServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
|
17
18
|
self._serviceBag:GetService(require("HideClient"))
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
return HideServiceClient
|
|
21
|
+
return HideServiceClient
|
package/src/Server/Hide.lua
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Primarily used for authoring, this hides the tagged instance from render. Great for
|
|
3
4
|
making bounding boxes in studio that are then hidden upon runtime.
|
|
@@ -21,7 +22,7 @@ Hide.__index = Hide
|
|
|
21
22
|
@param adornee Instance
|
|
22
23
|
@return Hide
|
|
23
24
|
]=]
|
|
24
|
-
function Hide.new(adornee)
|
|
25
|
+
function Hide.new(adornee: Instance)
|
|
25
26
|
local self = setmetatable({}, Hide)
|
|
26
27
|
|
|
27
28
|
self._obj = assert(adornee, "No adornee")
|
|
@@ -43,7 +44,7 @@ function Hide.new(adornee)
|
|
|
43
44
|
return self
|
|
44
45
|
end
|
|
45
46
|
|
|
46
|
-
function Hide:_setupPart(part)
|
|
47
|
+
function Hide:_setupPart(part: BasePart)
|
|
47
48
|
part.Locked = true
|
|
48
49
|
part.Transparency = 1
|
|
49
50
|
end
|
|
@@ -55,4 +56,4 @@ function Hide:Destroy()
|
|
|
55
56
|
setmetatable(self, nil)
|
|
56
57
|
end
|
|
57
58
|
|
|
58
|
-
return Binder.new("Hide", Hide)
|
|
59
|
+
return Binder.new("Hide", Hide)
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
@class HideService
|
|
3
4
|
]=]
|
|
4
5
|
|
|
5
6
|
local require = require(script.Parent.loader).load(script)
|
|
6
7
|
|
|
7
|
-
local
|
|
8
|
+
local ServiceBag = require("ServiceBag")
|
|
8
9
|
|
|
9
10
|
local HideService = {}
|
|
10
11
|
HideService.ServiceName = "HideService"
|
|
11
12
|
|
|
12
|
-
function HideService:Init(serviceBag:
|
|
13
|
+
function HideService:Init(serviceBag: ServiceBag.ServiceBag)
|
|
13
14
|
assert(not self._serviceBag, "Already initialized")
|
|
14
15
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
15
16
|
|
|
@@ -17,4 +18,4 @@ function HideService:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
|
17
18
|
self._serviceBag:GetService(require("Hide"))
|
|
18
19
|
end
|
|
19
20
|
|
|
20
|
-
return HideService
|
|
21
|
+
return HideService
|
package/src/Shared/HideUtils.lua
CHANGED