@quenty/modeltransparencyeffect 11.17.1 → 11.18.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,12 @@
|
|
|
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.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@11.17.1...@quenty/modeltransparencyeffect@11.18.0) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **modeltransparencyeffect:** convert package to --!strict ([5f79b2d](https://github.com/Quenty/NevermoreEngine/commit/5f79b2db483728f247be010729a1564735c08d20))
|
|
11
|
+
|
|
6
12
|
## [11.17.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@11.17.0...@quenty/modeltransparencyeffect@11.17.1) (2026-05-30)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @quenty/modeltransparencyeffect
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/modeltransparencyeffect",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.18.0",
|
|
4
4
|
"description": "Allows a model to have transparent set locally on the client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@quenty/acceltween": "2.7.0",
|
|
32
32
|
"@quenty/baseobject": "10.13.0",
|
|
33
33
|
"@quenty/enums": "1.3.0",
|
|
34
|
-
"@quenty/hide": "11.
|
|
34
|
+
"@quenty/hide": "11.39.0",
|
|
35
35
|
"@quenty/instanceutils": "13.30.1",
|
|
36
36
|
"@quenty/loader": "10.11.0",
|
|
37
37
|
"@quenty/servicebag": "11.18.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--!
|
|
1
|
+
--!strict
|
|
2
2
|
--[=[
|
|
3
3
|
Allows a model to have transparency set locally on the client
|
|
4
4
|
|
|
@@ -62,7 +62,7 @@ function ModelTransparencyEffect.new(
|
|
|
62
62
|
self._transparency = AccelTween.new(20)
|
|
63
63
|
self._transparencyServiceMethodName = transparencyServiceMethodName or ModelTransparencyMode.TRANSPARENCY
|
|
64
64
|
|
|
65
|
-
self._startAnimation, self._maid._stop = StepUtils.bindToRenderStep(self._update)
|
|
65
|
+
self._startAnimation, self._maid._stop = StepUtils.bindToRenderStep(self._update :: any)
|
|
66
66
|
|
|
67
67
|
return self
|
|
68
68
|
end
|
|
@@ -110,7 +110,7 @@ end
|
|
|
110
110
|
finish the animation.
|
|
111
111
|
@param callback function
|
|
112
112
|
]=]
|
|
113
|
-
function ModelTransparencyEffect.FinishTransparencyAnimation(self: ModelTransparencyEffect, callback)
|
|
113
|
+
function ModelTransparencyEffect.FinishTransparencyAnimation(self: ModelTransparencyEffect, callback: () -> ()): ()
|
|
114
114
|
self:SetTransparency(0)
|
|
115
115
|
|
|
116
116
|
if self._transparency.rtime == 0 then
|
|
@@ -156,6 +156,8 @@ function ModelTransparencyEffect._setupParts(self: ModelTransparencyEffect)
|
|
|
156
156
|
|
|
157
157
|
self._parts = {}
|
|
158
158
|
|
|
159
|
+
local obj = assert(self._obj, "No obj")
|
|
160
|
+
|
|
159
161
|
local transparencyServiceMethod = self._transparencyService[self._transparencyServiceMethodName]
|
|
160
162
|
|
|
161
163
|
local function canHide(part: Instance): boolean
|
|
@@ -164,11 +166,11 @@ function ModelTransparencyEffect._setupParts(self: ModelTransparencyEffect)
|
|
|
164
166
|
else (part:IsA("BasePart") or part:IsA("Decal"))
|
|
165
167
|
end
|
|
166
168
|
|
|
167
|
-
if canHide(
|
|
168
|
-
self._parts[
|
|
169
|
+
if canHide(obj) then
|
|
170
|
+
self._parts[obj] = true
|
|
169
171
|
end
|
|
170
172
|
|
|
171
|
-
self._maid:GiveTask(RxInstanceUtils.observeDescendantsBrio(
|
|
173
|
+
self._maid:GiveTask(RxInstanceUtils.observeDescendantsBrio(obj, canHide):Subscribe(function(brio)
|
|
172
174
|
if brio:IsDead() then
|
|
173
175
|
return
|
|
174
176
|
end
|