@quenty/rotatinglabel 4.0.0 → 4.1.0-canary.241.a4e8214.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
|
+
# [4.1.0-canary.241.a4e8214.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rotatinglabel@4.0.1...@quenty/rotatinglabel@4.1.0-canary.241.a4e8214.0) (2022-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/rotatinglabel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rotatinglabel@4.0.0...@quenty/rotatinglabel@4.0.1) (2021-12-30)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/rotatinglabel
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rotatinglabel@3.4.0...@quenty/rotatinglabel@4.0.0) (2021-12-22)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/rotatinglabel
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## RotatingLabel
|
|
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" />
|
|
@@ -15,6 +15,8 @@ A text label with most general properties of a textlabel, except when text is se
|
|
|
15
15
|
|
|
16
16
|
This is relatively legacy code and so probably should be carefully considered before using in a new project.
|
|
17
17
|
|
|
18
|
+
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/RotatingLabel">View docs →</a></div>
|
|
19
|
+
|
|
18
20
|
## Installation
|
|
19
21
|
```
|
|
20
22
|
npm install @quenty/rotatinglabel --save
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rotatinglabel",
|
|
3
|
-
"version": "4.0.0",
|
|
3
|
+
"version": "4.1.0-canary.241.a4e8214.0",
|
|
4
4
|
"description": "A text label with most general properties of a textlabel, except when text is set, it rotates uniformly like an old clock, animating in a satisfying way",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "
|
|
29
|
-
"@quenty/math": "
|
|
30
|
-
"@quenty/spring": "
|
|
28
|
+
"@quenty/loader": "3.2.0-canary.241.a4e8214.0",
|
|
29
|
+
"@quenty/math": "2.0.1",
|
|
30
|
+
"@quenty/spring": "3.1.0-canary.241.a4e8214.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a4e821471f35998d63f38a4f4a578e07b4e79035"
|
|
36
36
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
A text label with most general properties of a textlabel, except when text is set,
|
|
3
|
+
it rotates uniformly like an old clock, animating in a satisfying way
|
|
4
|
+
|
|
5
|
+
``lua
|
|
6
|
+
RotatingLabelBuilder.new(Template):Create()
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
@class RotatingLabel
|
|
10
|
+
]=]
|
|
4
11
|
|
|
5
12
|
local require = require(script.Parent.loader).load(script)
|
|
6
13
|
|
|
@@ -98,7 +105,7 @@ function RotatingLabel:__index(index)
|
|
|
98
105
|
end
|
|
99
106
|
end
|
|
100
107
|
|
|
101
|
-
|
|
108
|
+
--
|
|
102
109
|
-- @usage
|
|
103
110
|
--[[
|
|
104
111
|
RotatingLabel.Text = string
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Builds a new RotatingLabel. See RotatingLabel for more details.
|
|
3
|
+
|
|
4
|
+
:::warning
|
|
5
|
+
This class is not really maintained or used anymore.
|
|
6
|
+
:::
|
|
7
|
+
|
|
8
|
+
@class RotatingLabelBuilder
|
|
9
|
+
]=]
|
|
3
10
|
|
|
4
11
|
local require = require(script.Parent.loader).load(script)
|
|
5
12
|
|
|
@@ -9,7 +16,7 @@ local RotatingLabelBuilder = {}
|
|
|
9
16
|
RotatingLabelBuilder.ClassName = "RotatingLabelBuilder"
|
|
10
17
|
RotatingLabelBuilder.__index = RotatingLabelBuilder
|
|
11
18
|
|
|
12
|
-
|
|
19
|
+
-- Starts building a new rotating label with the template, if given
|
|
13
20
|
function RotatingLabelBuilder.new(template)
|
|
14
21
|
local self = setmetatable({}, RotatingLabelBuilder)
|
|
15
22
|
|
|
@@ -20,7 +27,7 @@ function RotatingLabelBuilder.new(template)
|
|
|
20
27
|
return self
|
|
21
28
|
end
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
-- Sets the tempate to use, the label will get those properties
|
|
24
31
|
function RotatingLabelBuilder:WithTemplate(template)
|
|
25
32
|
self._template = template
|
|
26
33
|
|
|
@@ -58,7 +65,7 @@ function RotatingLabelBuilder:WithGui(gui)
|
|
|
58
65
|
return self
|
|
59
66
|
end
|
|
60
67
|
|
|
61
|
-
|
|
68
|
+
-- Creates the new label and returns it
|
|
62
69
|
function RotatingLabelBuilder:Create()
|
|
63
70
|
self._label:UpdateRender()
|
|
64
71
|
|