@quenty/modeltransparencyeffect 11.9.2 → 11.9.3
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,14 @@
|
|
|
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.9.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@11.9.2...@quenty/modeltransparencyeffect@11.9.3) (2026-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/modeltransparencyeffect
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.9.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@11.9.1...@quenty/modeltransparencyeffect@11.9.2) (2025-12-31)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/modeltransparencyeffect",
|
|
3
|
-
"version": "11.9.
|
|
3
|
+
"version": "11.9.3",
|
|
4
4
|
"description": "Allows a model to have transparent set locally on the client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@quenty/acceltween": "^2.5.3",
|
|
29
|
-
"@quenty/baseobject": "^10.9.
|
|
30
|
-
"@quenty/loader": "^10.9.
|
|
31
|
-
"@quenty/servicebag": "^11.13.
|
|
32
|
-
"@quenty/steputils": "^3.6.
|
|
33
|
-
"@quenty/transparencyservice": "^11.9.
|
|
29
|
+
"@quenty/baseobject": "^10.9.1",
|
|
30
|
+
"@quenty/loader": "^10.9.1",
|
|
31
|
+
"@quenty/servicebag": "^11.13.4",
|
|
32
|
+
"@quenty/steputils": "^3.6.1",
|
|
33
|
+
"@quenty/transparencyservice": "^11.9.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "44e41814ddc3c14c3879320a10ed2d8e88103a4c"
|
|
39
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!nonstrict
|
|
1
2
|
--[=[
|
|
2
3
|
Allows a model to have transparent set locally on the client
|
|
3
4
|
|
|
@@ -22,10 +23,12 @@ export type TransparencyMode = "SetTransparency" | "SetLocalTransparencyModifier
|
|
|
22
23
|
export type ModelTransparencyEffect =
|
|
23
24
|
typeof(setmetatable(
|
|
24
25
|
{} :: {
|
|
26
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
25
27
|
_transparency: AccelTween.AccelTween,
|
|
26
28
|
_transparencyService: TransparencyService.TransparencyService,
|
|
27
29
|
_transparencyServiceMethodName: TransparencyMode,
|
|
28
30
|
_parts: { [Instance]: boolean },
|
|
31
|
+
_startAnimation: (self: ModelTransparencyEffect) -> (),
|
|
29
32
|
},
|
|
30
33
|
{} :: typeof({ __index = ModelTransparencyEffect })
|
|
31
34
|
))
|
|
@@ -42,16 +45,18 @@ function ModelTransparencyEffect.new(
|
|
|
42
45
|
adornee: Instance,
|
|
43
46
|
transparencyServiceMethodName: TransparencyMode?
|
|
44
47
|
): ModelTransparencyEffect
|
|
48
|
+
assert(adornee, "Bad adornee")
|
|
49
|
+
|
|
45
50
|
local self: ModelTransparencyEffect = setmetatable(BaseObject.new(adornee) :: any, ModelTransparencyEffect)
|
|
46
51
|
|
|
47
|
-
assert(serviceBag, "
|
|
48
|
-
|
|
52
|
+
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
53
|
+
|
|
49
54
|
assert(
|
|
50
55
|
type(transparencyServiceMethodName) == "string" or transparencyServiceMethodName == nil,
|
|
51
56
|
"Bad transparencyServiceMethodName"
|
|
52
57
|
)
|
|
53
58
|
|
|
54
|
-
self._transparencyService =
|
|
59
|
+
self._transparencyService = self._serviceBag:GetService(TransparencyService :: any)
|
|
55
60
|
|
|
56
61
|
self._transparency = AccelTween.new(20)
|
|
57
62
|
self._transparencyServiceMethodName = transparencyServiceMethodName or "SetTransparency"
|
|
@@ -116,9 +121,9 @@ function ModelTransparencyEffect.FinishTransparencyAnimation(self: ModelTranspar
|
|
|
116
121
|
end
|
|
117
122
|
end
|
|
118
123
|
|
|
119
|
-
function ModelTransparencyEffect._update(self: ModelTransparencyEffect)
|
|
124
|
+
function ModelTransparencyEffect._update(self: ModelTransparencyEffect): boolean
|
|
120
125
|
if self._transparencyService:IsDead() then
|
|
121
|
-
return
|
|
126
|
+
return false
|
|
122
127
|
end
|
|
123
128
|
|
|
124
129
|
local transparency = self._transparency.p
|