@quenty/firstpersoncharactertransparency 14.14.1-canary.522.b5d379b.0 → 14.15.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,9 +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
- ## [14.14.1-canary.522.b5d379b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/firstpersoncharactertransparency@14.14.0...@quenty/firstpersoncharactertransparency@14.14.1-canary.522.b5d379b.0) (2024-11-24)
6
+ # [14.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/firstpersoncharactertransparency@14.14.0...@quenty/firstpersoncharactertransparency@14.15.0) (2024-12-03)
7
7
 
8
- **Note:** Version bump only for package @quenty/firstpersoncharactertransparency
8
+
9
+ ### Features
10
+
11
+ * Add UGCSanitize to FirstPersonTransparency ([c07db09](https://github.com/Quenty/NevermoreEngine/commit/c07db0937e56055ead6cd4332e2fa19f4ab4259e))
9
12
 
10
13
 
11
14
 
package/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  Allows transparency to manually be controlled for a character in first-person mode
15
15
 
16
- <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/DisableHatParticles">View docs →</a></div>
16
+ <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/ShowBody">View docs →</a></div>
17
17
 
18
18
  ## Installation
19
19
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/firstpersoncharactertransparency",
3
- "version": "14.14.1-canary.522.b5d379b.0",
3
+ "version": "14.15.0",
4
4
  "description": "Allows transparency to manually be controlled for a character in first-person mode",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,19 +26,20 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "10.7.1",
30
- "@quenty/brio": "14.13.1-canary.522.b5d379b.0",
31
- "@quenty/humanoidtracker": "13.13.1-canary.522.b5d379b.0",
32
- "@quenty/instanceutils": "13.13.1-canary.522.b5d379b.0",
33
- "@quenty/loader": "10.7.1",
34
- "@quenty/maid": "3.4.0",
35
- "@quenty/r15utils": "13.13.1-canary.522.b5d379b.0",
36
- "@quenty/rx": "13.13.1-canary.522.b5d379b.0",
37
- "@quenty/statestack": "14.14.1-canary.522.b5d379b.0",
38
- "@quenty/transparencyservice": "11.7.1"
29
+ "@quenty/baseobject": "^10.7.1",
30
+ "@quenty/brio": "^14.14.0",
31
+ "@quenty/humanoidtracker": "^13.14.0",
32
+ "@quenty/instanceutils": "^13.14.0",
33
+ "@quenty/loader": "^10.7.1",
34
+ "@quenty/maid": "^3.4.0",
35
+ "@quenty/r15utils": "^13.14.0",
36
+ "@quenty/rx": "^13.14.0",
37
+ "@quenty/statestack": "^14.15.0",
38
+ "@quenty/transparencyservice": "^11.7.1",
39
+ "@quenty/ugcsanitize": "^1.1.0"
39
40
  },
40
41
  "publishConfig": {
41
42
  "access": "public"
42
43
  },
43
- "gitHead": "b5d379b3553fb94b954870562e1bd2a57e9a1c10"
44
+ "gitHead": "66190e48c1ca93b07040326e9cfcf97e8eb4b0e1"
44
45
  }
@@ -1,69 +0,0 @@
1
- --[=[
2
- @class DisableHatParticles
3
- ]=]
4
-
5
- local require = require(script.Parent.loader).load(script)
6
-
7
- local BaseObject = require("BaseObject")
8
- local Maid = require("Maid")
9
-
10
- local DisableHatParticles = setmetatable({}, BaseObject)
11
- DisableHatParticles.ClassName = "DisableHatParticles"
12
- DisableHatParticles.__index = DisableHatParticles
13
-
14
- function DisableHatParticles.new(character)
15
- local self = setmetatable(BaseObject.new(character), DisableHatParticles)
16
-
17
- -- Connect
18
- self._maid:GiveTask(self._obj.ChildRemoved:Connect(function(child)
19
- self:_handleChildRemoving(child)
20
- end))
21
- self._maid:GiveTask(self._obj.ChildAdded:Connect(function(child)
22
- self:_handleChild(child)
23
- end))
24
-
25
- for _, child in pairs(self._obj:GetChildren()) do
26
- self:_handleChild(child)
27
- end
28
-
29
- return self
30
- end
31
-
32
- function DisableHatParticles:_handleChild(child)
33
- if not child:IsA("Accessory") then
34
- return
35
- end
36
-
37
- local maid = Maid.new()
38
-
39
- local function handleDescendant(descendant)
40
- if descendant:IsA("Fire")
41
- or descendant:IsA("Sparkles")
42
- or descendant:IsA("Smoke")
43
- or descendant:IsA("ParticleEmitter") then
44
- if descendant.Enabled then
45
- maid[descendant] = function()
46
- descendant.Enabled = true
47
- end
48
-
49
- descendant.Enabled = false
50
- end
51
- end
52
- end
53
- maid:GiveTask(child.DescendantAdded:Connect(handleDescendant))
54
- maid:GiveTask(child.DescendantRemoving:Connect(function(descendant)
55
- maid[descendant] = nil
56
- end))
57
-
58
- for _, descendant in pairs(child:GetDescendants()) do
59
- handleDescendant(descendant)
60
- end
61
-
62
- self._maid[child] = maid
63
- end
64
-
65
- function DisableHatParticles:_handleChildRemoving(child)
66
- self._maid[child] = nil
67
- end
68
-
69
- return DisableHatParticles