@quenty/radial-image 9.37.0 → 9.38.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 +10 -0
- package/package.json +5 -5
- package/src/Client/RadialImage.lua +34 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [9.38.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/radial-image@9.37.1...@quenty/radial-image@9.38.0) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **radial-image:** convert package to --!strict ([586432a](https://github.com/Quenty/NevermoreEngine/commit/586432a613e9482683ee435d1da4069809484e29))
|
|
11
|
+
|
|
12
|
+
## [9.37.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/radial-image@9.37.0...@quenty/radial-image@9.37.1) (2026-05-30)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @quenty/radial-image
|
|
15
|
+
|
|
6
16
|
# [9.37.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/radial-image@9.36.0...@quenty/radial-image@9.37.0) (2026-05-29)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @quenty/radial-image
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/radial-image",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.38.0",
|
|
4
4
|
"description": "Quenty's radial image system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@quenty/baseobject": "10.13.0",
|
|
33
|
-
"@quenty/blend": "12.
|
|
33
|
+
"@quenty/blend": "12.37.0",
|
|
34
34
|
"@quenty/loader": "10.11.0",
|
|
35
35
|
"@quenty/maid": "3.9.0",
|
|
36
36
|
"@quenty/math": "2.7.5",
|
|
37
|
-
"@quenty/rx": "13.28.
|
|
38
|
-
"@quenty/valueobject": "13.31.
|
|
37
|
+
"@quenty/rx": "13.28.3",
|
|
38
|
+
"@quenty/valueobject": "13.31.1"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--!
|
|
1
|
+
--!strict
|
|
2
2
|
--[=[
|
|
3
3
|
@class RadialImage
|
|
4
4
|
]=]
|
|
@@ -16,8 +16,25 @@ local RadialImage = setmetatable({}, BaseObject)
|
|
|
16
16
|
RadialImage.ClassName = "RadialImage"
|
|
17
17
|
RadialImage.__index = RadialImage
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export type RadialImage =
|
|
20
|
+
typeof(setmetatable(
|
|
21
|
+
{} :: {
|
|
22
|
+
Gui: Frame,
|
|
23
|
+
_image: ValueObject.ValueObject<string>,
|
|
24
|
+
_percent: ValueObject.ValueObject<number>,
|
|
25
|
+
_transparency: ValueObject.ValueObject<number>,
|
|
26
|
+
_enabledTransparency: ValueObject.ValueObject<number>,
|
|
27
|
+
_disabledTransparency: ValueObject.ValueObject<number>,
|
|
28
|
+
_enabledColor: ValueObject.ValueObject<Color3>,
|
|
29
|
+
_disabledColor: ValueObject.ValueObject<Color3>,
|
|
30
|
+
_absoluteSize: ValueObject.ValueObject<Vector2>,
|
|
31
|
+
},
|
|
32
|
+
{} :: typeof({ __index = RadialImage })
|
|
33
|
+
))
|
|
34
|
+
& BaseObject.BaseObject
|
|
35
|
+
|
|
36
|
+
function RadialImage.new(): RadialImage
|
|
37
|
+
local self: RadialImage = setmetatable(BaseObject.new() :: any, RadialImage)
|
|
21
38
|
|
|
22
39
|
self._image = self._maid:Add(ValueObject.new("", "string"))
|
|
23
40
|
self._percent = self._maid:Add(ValueObject.new(1, "number"))
|
|
@@ -29,13 +46,13 @@ function RadialImage.new()
|
|
|
29
46
|
self._absoluteSize = self._maid:Add(ValueObject.new(Vector2.zero, "Vector2"))
|
|
30
47
|
|
|
31
48
|
self._maid:GiveTask(self:_render():Subscribe(function(gui)
|
|
32
|
-
self.Gui = gui
|
|
49
|
+
self.Gui = gui :: Frame
|
|
33
50
|
end))
|
|
34
51
|
|
|
35
52
|
return self
|
|
36
53
|
end
|
|
37
54
|
|
|
38
|
-
function RadialImage.blend(props)
|
|
55
|
+
function RadialImage.blend(props): Observable.Observable<Frame>
|
|
39
56
|
assert(type(props) == "table", "Bad props")
|
|
40
57
|
|
|
41
58
|
return Observable.new(function(sub)
|
|
@@ -43,7 +60,7 @@ function RadialImage.blend(props)
|
|
|
43
60
|
|
|
44
61
|
local viewport = RadialImage.new()
|
|
45
62
|
|
|
46
|
-
local function bindObservable(propName, callback)
|
|
63
|
+
local function bindObservable(propName: string, callback: (any) -> ())
|
|
47
64
|
if props[propName] then
|
|
48
65
|
local observe = Blend.toPropertyObservable(props[propName])
|
|
49
66
|
if observe then
|
|
@@ -92,14 +109,14 @@ function RadialImage.blend(props)
|
|
|
92
109
|
sub:Fire(viewport.Gui)
|
|
93
110
|
|
|
94
111
|
return maid
|
|
95
|
-
end)
|
|
112
|
+
end) :: any
|
|
96
113
|
end
|
|
97
114
|
|
|
98
115
|
--[=[
|
|
99
116
|
Sets the image to use for this radial image
|
|
100
117
|
@param image string
|
|
101
118
|
]=]
|
|
102
|
-
function RadialImage
|
|
119
|
+
function RadialImage.SetImage(self: RadialImage, image: string): ()
|
|
103
120
|
assert(type(image) == "string", "Bad image")
|
|
104
121
|
|
|
105
122
|
self._image.Value = image
|
|
@@ -109,7 +126,7 @@ end
|
|
|
109
126
|
Sets the percent we're at
|
|
110
127
|
@param percent number
|
|
111
128
|
]=]
|
|
112
|
-
function RadialImage
|
|
129
|
+
function RadialImage.SetPercent(self: RadialImage, percent: number): ()
|
|
113
130
|
assert(type(percent) == "number", "Bad percent")
|
|
114
131
|
|
|
115
132
|
self._percent.Value = percent
|
|
@@ -119,7 +136,7 @@ end
|
|
|
119
136
|
Sets the total transparency of the radial image
|
|
120
137
|
@param transparency number
|
|
121
138
|
]=]
|
|
122
|
-
function RadialImage
|
|
139
|
+
function RadialImage.SetTransparency(self: RadialImage, transparency: number): ()
|
|
123
140
|
assert(type(transparency) == "number", "Bad transparency")
|
|
124
141
|
|
|
125
142
|
self._transparency.Value = transparency
|
|
@@ -129,7 +146,7 @@ end
|
|
|
129
146
|
Sets the enabled transparency for the radial image
|
|
130
147
|
@param transparency number
|
|
131
148
|
]=]
|
|
132
|
-
function RadialImage
|
|
149
|
+
function RadialImage.SetEnabledTransparency(self: RadialImage, transparency: number): ()
|
|
133
150
|
assert(type(transparency) == "number", "Bad transparency")
|
|
134
151
|
|
|
135
152
|
self._enabledTransparency.Value = transparency
|
|
@@ -139,7 +156,7 @@ end
|
|
|
139
156
|
Sets the disabled transparency
|
|
140
157
|
@param transparency number
|
|
141
158
|
]=]
|
|
142
|
-
function RadialImage
|
|
159
|
+
function RadialImage.SetDisabledTransparency(self: RadialImage, transparency: number): ()
|
|
143
160
|
assert(type(transparency) == "number", "Bad transparency")
|
|
144
161
|
|
|
145
162
|
self._disabledTransparency.Value = transparency
|
|
@@ -149,7 +166,7 @@ end
|
|
|
149
166
|
Sets the enabled color
|
|
150
167
|
@param enabledColor Color3
|
|
151
168
|
]=]
|
|
152
|
-
function RadialImage
|
|
169
|
+
function RadialImage.SetEnabledColor(self: RadialImage, enabledColor: Color3): ()
|
|
153
170
|
assert(typeof(enabledColor) == "Color3", "Bad enabledColor")
|
|
154
171
|
|
|
155
172
|
self._enabledColor.Value = enabledColor
|
|
@@ -159,13 +176,13 @@ end
|
|
|
159
176
|
Sets the disabled color
|
|
160
177
|
@param disabledColor Color3
|
|
161
178
|
]=]
|
|
162
|
-
function RadialImage
|
|
179
|
+
function RadialImage.SetDisabledColor(self: RadialImage, disabledColor: Color3): ()
|
|
163
180
|
assert(typeof(disabledColor) == "Color3", "Bad disabledColor")
|
|
164
181
|
|
|
165
182
|
self._disabledColor.Value = disabledColor
|
|
166
183
|
end
|
|
167
184
|
|
|
168
|
-
function RadialImage
|
|
185
|
+
function RadialImage._render(self: RadialImage): Observable.Observable<Instance>
|
|
169
186
|
return Blend.New "Frame" {
|
|
170
187
|
Name = "RadialImage",
|
|
171
188
|
Size = UDim2.fromScale(1, 1),
|
|
@@ -178,12 +195,12 @@ function RadialImage:_render()
|
|
|
178
195
|
|
|
179
196
|
Blend.New "Frame" {
|
|
180
197
|
Name = "LeftFrame",
|
|
181
|
-
Size = Blend.Computed(self._absoluteSize, function(size)
|
|
198
|
+
Size = Blend.Computed(self._absoluteSize, function(size: Vector2)
|
|
182
199
|
-- hack: ensures when we're 24.5 wide or something we don't end
|
|
183
200
|
-- up with a split in the middle.
|
|
184
201
|
-- this is an issue because clips descendants tends towards floor
|
|
185
202
|
-- pixel clipping.
|
|
186
|
-
if size.
|
|
203
|
+
if size.X % 2 ~= 0 then
|
|
187
204
|
return UDim2.new(0.5, 1, 1, 0)
|
|
188
205
|
else
|
|
189
206
|
return UDim2.fromScale(0.5, 1)
|