@quenty/firstpersoncharactertransparency 3.1.3-canary.c50dead.0 → 3.2.1
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 +10 -2
- package/LICENSE.md +1 -1
- package/README.md +5 -11
- package/package.json +5 -5
- package/src/Client/FirstPersonCharacterTransparency.lua +19 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,20 @@
|
|
|
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
|
-
## [3.1
|
|
6
|
+
## [3.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/firstpersoncharactertransparency@3.2.0...@quenty/firstpersoncharactertransparency@3.2.1) (2021-12-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/firstpersoncharactertransparency
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/firstpersoncharactertransparency@3.1.2...@quenty/firstpersoncharactertransparency@3.2.0) (2021-11-20)
|
|
7
15
|
|
|
8
16
|
|
|
9
17
|
### Bug Fixes
|
|
10
18
|
|
|
11
|
-
* Support MacOS syncing ([
|
|
19
|
+
* Support MacOS syncing ([#225](https://github.com/Quenty/NevermoreEngine/issues/225)) ([03f9183](https://github.com/Quenty/NevermoreEngine/commit/03f918392c6a5bdd33f8a17c38de371d1e06c67a))
|
|
12
20
|
|
|
13
21
|
|
|
14
22
|
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## FirstPersonCharacterTransparency
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="http://quenty.github.io/
|
|
4
|
-
<img src="https://
|
|
3
|
+
<a href="http://quenty.github.io/NevermoreEngine/">
|
|
4
|
+
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
|
|
5
5
|
</a>
|
|
6
6
|
<a href="https://discord.gg/mhtGUS8">
|
|
7
|
-
<img src="https://img.shields.io/
|
|
7
|
+
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://github.com/Quenty/NevermoreEngine/actions">
|
|
10
10
|
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
|
|
@@ -13,15 +13,9 @@
|
|
|
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/FirstPersonCharacterTransparency">View docs →</a></div>
|
|
17
|
+
|
|
16
18
|
## Installation
|
|
17
19
|
```
|
|
18
20
|
npm install @quenty/firstpersoncharactertransparency --save
|
|
19
21
|
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
Usage is designed to be simple.
|
|
23
|
-
|
|
24
|
-
### `FirstPersonCharacterTransparency.new(humanoid)`
|
|
25
|
-
|
|
26
|
-
### `FirstPersonCharacterTransparency:SetTransparency(transparency)`
|
|
27
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/firstpersoncharactertransparency",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Allows transparency to manually be controlled for a character in first-person mode",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/baseobject": "3.1
|
|
30
|
-
"@quenty/loader": "3.1.
|
|
31
|
-
"@quenty/transparencyservice": "3.
|
|
29
|
+
"@quenty/baseobject": "^3.2.1",
|
|
30
|
+
"@quenty/loader": "^3.1.2",
|
|
31
|
+
"@quenty/transparencyservice": "^3.2.1"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d146c77d0a8e452824de0ab0b4b03ba0370bcc1b"
|
|
37
37
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Allows transparency to manually be controlled for a character in first-person mode.
|
|
3
|
+
|
|
4
|
+
:::tip
|
|
5
|
+
Make sure to initialize [TransparencyService] in the [ServiceBag] before using this.
|
|
6
|
+
:::
|
|
7
|
+
|
|
8
|
+
@class FirstPersonCharacterTransparency
|
|
9
|
+
]=]
|
|
5
10
|
|
|
6
11
|
local require = require(script.Parent.loader).load(script)
|
|
7
12
|
|
|
@@ -12,6 +17,12 @@ local FirstPersonCharacterTransparency = setmetatable({}, BaseObject)
|
|
|
12
17
|
FirstPersonCharacterTransparency.ClassName = "FirstPersonCharacterTransparency"
|
|
13
18
|
FirstPersonCharacterTransparency.__index = FirstPersonCharacterTransparency
|
|
14
19
|
|
|
20
|
+
--[=[
|
|
21
|
+
Creates a new FirstPersonCharacterTransparency
|
|
22
|
+
@param humanoid Humanoid
|
|
23
|
+
@param serviceBag ServiceBag
|
|
24
|
+
@return FirstPersonCharacterTransparency
|
|
25
|
+
]=]
|
|
15
26
|
function FirstPersonCharacterTransparency.new(humanoid, serviceBag)
|
|
16
27
|
local self = setmetatable(BaseObject.new(humanoid), FirstPersonCharacterTransparency)
|
|
17
28
|
|
|
@@ -42,6 +53,10 @@ function FirstPersonCharacterTransparency.new(humanoid, serviceBag)
|
|
|
42
53
|
return self
|
|
43
54
|
end
|
|
44
55
|
|
|
56
|
+
--[=[
|
|
57
|
+
Sets the transparency
|
|
58
|
+
@param transparency number
|
|
59
|
+
]=]
|
|
45
60
|
function FirstPersonCharacterTransparency:SetTransparency(transparency)
|
|
46
61
|
assert(type(transparency) == "number", "Bad transparency")
|
|
47
62
|
|