@quenty/rotatinglabel 11.9.0 → 11.9.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 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.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rotatinglabel@11.9.0...@quenty/rotatinglabel@11.9.1) (2025-11-12)
7
+
8
+ **Note:** Version bump only for package @quenty/rotatinglabel
9
+
10
+
11
+
12
+
13
+
6
14
  # [11.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rotatinglabel@11.8.4...@quenty/rotatinglabel@11.9.0) (2025-05-10)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/rotatinglabel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rotatinglabel",
3
- "version": "11.9.0",
3
+ "version": "11.9.1",
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",
@@ -27,10 +27,10 @@
27
27
  "dependencies": {
28
28
  "@quenty/loader": "^10.9.0",
29
29
  "@quenty/math": "^2.7.3",
30
- "@quenty/spring": "^10.9.0"
30
+ "@quenty/spring": "^10.9.1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
35
+ "gitHead": "f14f6bf0f8ca2b041c70ed27b68ad385a76e6164"
36
36
  }
@@ -123,7 +123,7 @@ end
123
123
  function RotatingCharacter:UpdatePositionRender()
124
124
  self._label.Text = self.Character
125
125
  self._labelTwo.Text = self.NextCharacter
126
- self._label.Position = UDim2.new(0, 0, -(self.Position % 1), 0)
126
+ self._label.Position = UDim2.fromScale(0, -(self.Position % 1))
127
127
  end
128
128
 
129
129
  function RotatingCharacter:UpdateRender()
@@ -30,7 +30,7 @@ function RotatingCharacterBuilder:Generate(Parent)
30
30
  container.Name = "RotatingCharacterContainer"
31
31
  container.ClipsDescendants = true
32
32
  container.SizeConstraint = Enum.SizeConstraint.RelativeYY
33
- container.Size = UDim2.new(1, 0, 1, 0)
33
+ container.Size = UDim2.fromScale(1, 1)
34
34
  container.BackgroundTransparency = Template.BackgroundTransparency
35
35
  container.ZIndex = Template.ZIndex
36
36
  container.BorderSizePixel = Template.BorderSizePixel
@@ -39,7 +39,7 @@ function RotatingCharacterBuilder:Generate(Parent)
39
39
  local textLabel = Instance.new("TextLabel")
40
40
  textLabel.Name = "Label"
41
41
  textLabel.BackgroundTransparency = 1
42
- textLabel.Size = UDim2.new(1, 0, 1, 0)
42
+ textLabel.Size = UDim2.fromScale(1, 1)
43
43
  textLabel.ZIndex = Template.ZIndex
44
44
  textLabel.Font = Template.Font
45
45
  textLabel.TextSize = Template.TextSize
@@ -55,7 +55,7 @@ function RotatingCharacterBuilder:Generate(Parent)
55
55
 
56
56
  local second = container.Label:Clone()
57
57
  second.Name = "SecondLabel"
58
- second.Position = UDim2.new(0, 0, 1, 0)
58
+ second.Position = UDim2.fromScale(0, 1)
59
59
  second.SizeConstraint = Enum.SizeConstraint.RelativeXY
60
60
  second.Parent = container.Label
61
61
 
@@ -79,9 +79,9 @@ end
79
79
 
80
80
  function RotatingLabel:_getLabelPosition(index)
81
81
  if self.TextXAlignment == "Left" then
82
- return UDim2.new((index - 1) * self.Width, 0, 0, 0)
82
+ return UDim2.fromScale((index - 1) * self.Width, 0)
83
83
  else
84
- return UDim2.new(-self.TotalWidth + (index - 1) * self.Width, 0, 0, 0)
84
+ return UDim2.fromScale(-self.TotalWidth + (index - 1) * self.Width, 0)
85
85
  end
86
86
  end
87
87
 
@@ -205,9 +205,9 @@ function RotatingLabel:__newindex(topindex, value)
205
205
  assert(value == "Left" or value == "Right", 'value must be "Left" or "Right"')
206
206
 
207
207
  if value == "Left" then
208
- self._container.Position = UDim2.new(0, 0, 0, 0)
208
+ self._container.Position = UDim2.fromScale(0, 0)
209
209
  else
210
- self._container.Position = UDim2.new(1, 0, 0, 0)
210
+ self._container.Position = UDim2.fromScale(1, 0)
211
211
  end
212
212
 
213
213
  self._textXAlignment = value
@@ -47,7 +47,7 @@ function RotatingLabelBuilder:WithTemplate(template)
47
47
  local container = Instance.new("Frame")
48
48
  container.Name = "Container"
49
49
  container.SizeConstraint = Enum.SizeConstraint.RelativeYY
50
- container.Size = UDim2.new(1, 0, 1, 0)
50
+ container.Size = UDim2.fromScale(1, 1)
51
51
  container.BackgroundTransparency = 1
52
52
 
53
53
  container.Parent = frame