@quenty/colorpicker 10.23.0 → 10.23.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 +8 -0
- package/package.json +8 -8
- package/src/Client/Cursor/ColorPickerTriangle.lua +8 -8
- package/src/Client/HSV/HSColorPicker.lua +1 -1
- package/src/Client/HSV/HSVColorPicker.lua +2 -2
- package/src/Client/HSV/ValueColorPicker.lua +5 -5
- package/src/Client/Story/ColorPickerStoryUtils.lua +8 -8
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
|
+
## [10.23.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpicker@10.23.0...@quenty/colorpicker@10.23.1) (2025-11-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/colorpicker
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpicker@10.22.0...@quenty/colorpicker@10.23.0) (2025-10-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/colorpicker
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/colorpicker",
|
|
3
|
-
"version": "10.23.
|
|
3
|
+
"version": "10.23.1",
|
|
4
4
|
"description": "Color picking UI system for Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@quenty/baseobject": "^10.9.0",
|
|
32
|
-
"@quenty/basicpane": "^13.21.
|
|
33
|
-
"@quenty/blend": "^12.22.
|
|
34
|
-
"@quenty/buttondragmodel": "^1.19.
|
|
35
|
-
"@quenty/color3utils": "^11.22.
|
|
32
|
+
"@quenty/basicpane": "^13.21.1",
|
|
33
|
+
"@quenty/blend": "^12.22.1",
|
|
34
|
+
"@quenty/buttondragmodel": "^1.19.1",
|
|
35
|
+
"@quenty/color3utils": "^11.22.1",
|
|
36
36
|
"@quenty/inputobjectutils": "^4.21.0",
|
|
37
|
-
"@quenty/instanceutils": "^13.20.
|
|
37
|
+
"@quenty/instanceutils": "^13.20.1",
|
|
38
38
|
"@quenty/loader": "^10.9.0",
|
|
39
39
|
"@quenty/maid": "^3.5.0",
|
|
40
40
|
"@quenty/math": "^2.7.3",
|
|
41
|
-
"@quenty/valueobject": "^13.21.
|
|
41
|
+
"@quenty/valueobject": "^13.21.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "f14f6bf0f8ca2b041c70ed27b68ad385a76e6164"
|
|
44
44
|
}
|
|
@@ -65,22 +65,22 @@ function ColorPickerTriangle.SetTransparency(self: ColorPickerTriangle, transpar
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
function ColorPickerTriangle._render(self: ColorPickerTriangle)
|
|
68
|
-
return Blend.New
|
|
68
|
+
return Blend.New("Frame")({
|
|
69
69
|
Name = "ColorPickerTriangle",
|
|
70
|
-
Size = UDim2.
|
|
70
|
+
Size = UDim2.fromScale(1, 1),
|
|
71
71
|
BackgroundTransparency = 1,
|
|
72
72
|
|
|
73
|
-
Blend.New
|
|
73
|
+
Blend.New("ImageLabel")({
|
|
74
74
|
BackgroundTransparency = 1,
|
|
75
|
-
Size = UDim2.
|
|
75
|
+
Size = UDim2.fromScale(1, 1),
|
|
76
76
|
ImageColor3 = Blend.Computed(self._color, self._backgroundColorHint, function(color, backingColor)
|
|
77
77
|
return ColorPickerUtils.getOutlineWithContrast(color, backingColor)
|
|
78
78
|
end),
|
|
79
79
|
ImageTransparency = self._transparency,
|
|
80
80
|
Image = "rbxassetid://9291514809",
|
|
81
|
-
},
|
|
81
|
+
}),
|
|
82
82
|
|
|
83
|
-
Blend.New
|
|
83
|
+
Blend.New("UIAspectRatioConstraint")({
|
|
84
84
|
AspectRatio = Blend.Computed(self._sizeValue, function(size)
|
|
85
85
|
if size.x <= 0 or size.y <= 0 then
|
|
86
86
|
return 1
|
|
@@ -88,8 +88,8 @@ function ColorPickerTriangle._render(self: ColorPickerTriangle)
|
|
|
88
88
|
return size.x / size.y
|
|
89
89
|
end
|
|
90
90
|
end),
|
|
91
|
-
},
|
|
92
|
-
}
|
|
91
|
+
}),
|
|
92
|
+
})
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
return ColorPickerTriangle
|
|
@@ -174,7 +174,7 @@ end
|
|
|
174
174
|
function HSColorPicker:_render()
|
|
175
175
|
return Blend.New "ImageButton" {
|
|
176
176
|
Name = "HSColorPicker",
|
|
177
|
-
Size = UDim2.
|
|
177
|
+
Size = UDim2.fromScale(1, 1),
|
|
178
178
|
BackgroundTransparency = 1,
|
|
179
179
|
Active = true,
|
|
180
180
|
Image = "rbxassetid://9290917908",
|
|
@@ -211,7 +211,7 @@ function HSVColorPicker:_render()
|
|
|
211
211
|
AnchorPoint = props.AnchorPoint,
|
|
212
212
|
Position = props.Position,
|
|
213
213
|
BackgroundTransparency = 1,
|
|
214
|
-
Size = UDim2.
|
|
214
|
+
Size = UDim2.fromScale(1, 1),
|
|
215
215
|
ZIndex = Blend.Computed(picker:ObserveIsPressed(), function(isPressed)
|
|
216
216
|
return isPressed and 2 or 1
|
|
217
217
|
end),
|
|
@@ -232,7 +232,7 @@ function HSVColorPicker:_render()
|
|
|
232
232
|
|
|
233
233
|
return Blend.New("Frame")({
|
|
234
234
|
Name = "HSVColorPicker",
|
|
235
|
-
Size = UDim2.
|
|
235
|
+
Size = UDim2.fromScale(1, 1),
|
|
236
236
|
BackgroundTransparency = 1,
|
|
237
237
|
|
|
238
238
|
Blend.New("UIAspectRatioConstraint")({
|
|
@@ -204,7 +204,7 @@ end
|
|
|
204
204
|
function ValueColorPicker:_render()
|
|
205
205
|
return Blend.New "ImageButton" {
|
|
206
206
|
Name = "HSColorPicker",
|
|
207
|
-
Size = UDim2.
|
|
207
|
+
Size = UDim2.fromScale(1, 1),
|
|
208
208
|
BackgroundTransparency = 1,
|
|
209
209
|
Active = true,
|
|
210
210
|
|
|
@@ -227,10 +227,10 @@ function ValueColorPicker:_render()
|
|
|
227
227
|
BackgroundTransparency = self._transparency,
|
|
228
228
|
Size = Blend.Computed(self._leftWidth, self._sizeValue, function(width, sizeValue)
|
|
229
229
|
if sizeValue.x == 0 then
|
|
230
|
-
return UDim2.
|
|
230
|
+
return UDim2.fromScale(0, 1)
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
-
return UDim2.
|
|
233
|
+
return UDim2.fromScale(width / sizeValue.x, 1)
|
|
234
234
|
end),
|
|
235
235
|
|
|
236
236
|
Blend.New "UIGradient" {
|
|
@@ -256,10 +256,10 @@ function ValueColorPicker:_render()
|
|
|
256
256
|
AnchorPoint = Vector2.new(1, 0),
|
|
257
257
|
Size = Blend.Computed(self._leftWidth, self._sizeValue, function(width, sizeValue)
|
|
258
258
|
if sizeValue.x == 0 then
|
|
259
|
-
return UDim2.
|
|
259
|
+
return UDim2.fromScale(0, 1)
|
|
260
260
|
end
|
|
261
261
|
|
|
262
|
-
return UDim2.
|
|
262
|
+
return UDim2.fromScale((sizeValue.x - width) / sizeValue.x, 1)
|
|
263
263
|
end),
|
|
264
264
|
|
|
265
265
|
self._triangle.Gui,
|
|
@@ -13,7 +13,7 @@ local ColorPickerStoryUtils = {}
|
|
|
13
13
|
function ColorPickerStoryUtils.createPicker(maid, valueSync, labelText, currentVisible)
|
|
14
14
|
local picker = maid:Add(HSVColorPicker.new())
|
|
15
15
|
picker.Gui.AnchorPoint = Vector2.new(0.5, 1)
|
|
16
|
-
picker.Gui.Position = UDim2.
|
|
16
|
+
picker.Gui.Position = UDim2.fromScale(0.5, 1)
|
|
17
17
|
picker.Gui.Size = UDim2.new(0, 150, 1, -30)
|
|
18
18
|
picker.Gui.ZIndex = 2
|
|
19
19
|
|
|
@@ -41,9 +41,9 @@ function ColorPickerStoryUtils.createPicker(maid, valueSync, labelText, currentV
|
|
|
41
41
|
Size = Blend.Spring(
|
|
42
42
|
Blend.Computed(visible, function(isVisible)
|
|
43
43
|
if isVisible then
|
|
44
|
-
return UDim2.
|
|
44
|
+
return UDim2.fromOffset(170, 190)
|
|
45
45
|
else
|
|
46
|
-
return UDim2.
|
|
46
|
+
return UDim2.fromOffset(170, 50)
|
|
47
47
|
end
|
|
48
48
|
end),
|
|
49
49
|
40
|
|
@@ -57,7 +57,7 @@ function ColorPickerStoryUtils.createPicker(maid, valueSync, labelText, currentV
|
|
|
57
57
|
Blend.New "TextLabel" {
|
|
58
58
|
BackgroundTransparency = 1,
|
|
59
59
|
Text = labelText,
|
|
60
|
-
Position = UDim2.
|
|
60
|
+
Position = UDim2.fromOffset(35, 5),
|
|
61
61
|
Size = UDim2.new(1, -40, 0, 20),
|
|
62
62
|
Font = Enum.Font.FredokaOne,
|
|
63
63
|
TextXAlignment = Enum.TextXAlignment.Left,
|
|
@@ -68,8 +68,8 @@ function ColorPickerStoryUtils.createPicker(maid, valueSync, labelText, currentV
|
|
|
68
68
|
|
|
69
69
|
Blend.New "Frame" {
|
|
70
70
|
BackgroundColor3 = valueSync,
|
|
71
|
-
Size = UDim2.
|
|
72
|
-
Position = UDim2.
|
|
71
|
+
Size = UDim2.fromOffset(20, 20),
|
|
72
|
+
Position = UDim2.fromOffset(5, 5),
|
|
73
73
|
[Blend.Children] = {
|
|
74
74
|
Blend.New "UICorner" {
|
|
75
75
|
CornerRadius = UDim.new(0, 10),
|
|
@@ -101,7 +101,7 @@ function ColorPickerStoryUtils.create(maid, buildPickers)
|
|
|
101
101
|
|
|
102
102
|
local function pickerGroup(pickers)
|
|
103
103
|
return Blend.New "Frame" {
|
|
104
|
-
Size = UDim2.
|
|
104
|
+
Size = UDim2.fromScale(1, 0),
|
|
105
105
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
106
106
|
Position = UDim2.fromScale(0.5, 0.5),
|
|
107
107
|
BackgroundTransparency = 1,
|
|
@@ -133,7 +133,7 @@ function ColorPickerStoryUtils.create(maid, buildPickers)
|
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
return Blend.New "Frame" {
|
|
136
|
-
Size = UDim2.
|
|
136
|
+
Size = UDim2.fromScale(0, 0),
|
|
137
137
|
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
138
138
|
Position = UDim2.fromScale(0.5, 0.5),
|
|
139
139
|
BackgroundTransparency = 1,
|