@quenty/colorpalette 10.21.4-canary.559.9f38947.0 → 10.22.0-canary.559.b31717d.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 +1 -1
- package/package.json +13 -13
- package/src/Shared/ColorPalette.lua +1 -1
- package/src/Shared/ColorPalette.story.lua +116 -125
- package/src/Shared/Font/FontPalette.lua +1 -1
- package/src/Shared/Grade/ColorGradePalette.lua +15 -15
- package/src/Shared/Grade/ColorGradePalette.story.lua +107 -118
- package/src/Shared/Grade/ColorGradeUtils.lua +3 -3
- package/src/Shared/Swatch/ColorSwatch.lua +1 -1
- package/src/Shared/Swatch/ColorSwatch.story.lua +55 -57
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
|
|
6
|
+
# [10.22.0-canary.559.b31717d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@10.21.3...@quenty/colorpalette@10.22.0-canary.559.b31717d.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/colorpalette",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.22.0-canary.559.b31717d.0",
|
|
4
4
|
"description": "Color palette system for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/baseobject": "10.8.
|
|
32
|
-
"@quenty/blend": "12.
|
|
33
|
-
"@quenty/color3utils": "11.
|
|
34
|
-
"@quenty/colorpicker": "10.
|
|
35
|
-
"@quenty/loader": "10.8.
|
|
36
|
-
"@quenty/maid": "3.4.
|
|
31
|
+
"@quenty/baseobject": "10.8.3",
|
|
32
|
+
"@quenty/blend": "12.19.0-canary.559.b31717d.0",
|
|
33
|
+
"@quenty/color3utils": "11.19.0-canary.559.b31717d.0",
|
|
34
|
+
"@quenty/colorpicker": "10.20.0-canary.559.b31717d.0",
|
|
35
|
+
"@quenty/loader": "10.8.3",
|
|
36
|
+
"@quenty/maid": "3.4.3",
|
|
37
37
|
"@quenty/math": "2.7.3",
|
|
38
|
-
"@quenty/observablecollection": "12.
|
|
39
|
-
"@quenty/rx": "13.
|
|
40
|
-
"@quenty/signal": "7.10.
|
|
41
|
-
"@quenty/table": "3.7.
|
|
42
|
-
"@quenty/valueobject": "13.
|
|
38
|
+
"@quenty/observablecollection": "12.21.0-canary.559.b31717d.0",
|
|
39
|
+
"@quenty/rx": "13.18.0-canary.559.b31717d.0",
|
|
40
|
+
"@quenty/signal": "7.10.3",
|
|
41
|
+
"@quenty/table": "3.7.4",
|
|
42
|
+
"@quenty/valueobject": "13.18.0-canary.559.b31717d.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b31717d8c9f7620c457f5018a2affa760a65334a"
|
|
45
45
|
}
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
@class ColorPalette.story
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local require =
|
|
6
|
-
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
5
|
+
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
7
6
|
|
|
7
|
+
local Maid = require("Maid")
|
|
8
8
|
local Blend = require("Blend")
|
|
9
|
-
local ColorPalette = require("ColorPalette")
|
|
10
9
|
local ColorPickerStoryUtils = require("ColorPickerStoryUtils")
|
|
11
|
-
local
|
|
10
|
+
local ColorPalette = require("ColorPalette")
|
|
12
11
|
local ValueObject = require("ValueObject")
|
|
13
12
|
|
|
14
13
|
local DARK_MODE_ENABLED = true
|
|
@@ -71,182 +70,174 @@ return function(target)
|
|
|
71
70
|
local percentMouseOver = Blend.Spring(mouseOver, 60)
|
|
72
71
|
|
|
73
72
|
return Blend.New "Frame" {
|
|
74
|
-
BackgroundColor3 = palette:ObserveColor("surface")
|
|
75
|
-
Size = UDim2.new(0, 250, 0, 100)
|
|
73
|
+
BackgroundColor3 = palette:ObserveColor("surface");
|
|
74
|
+
Size = UDim2.new(0, 250, 0, 100);
|
|
76
75
|
|
|
77
76
|
[Blend.Children] = {
|
|
78
77
|
Blend.New "TextLabel" {
|
|
79
|
-
TextColor3 = palette:ObserveColor("text")
|
|
80
|
-
Text = labelText
|
|
81
|
-
Font = Enum.Font.FredokaOne
|
|
82
|
-
Size = UDim2.new(1, 0, 1, 0)
|
|
83
|
-
BackgroundTransparency = 1
|
|
84
|
-
TextScaled = true
|
|
85
|
-
ZIndex = 2
|
|
86
|
-
}
|
|
78
|
+
TextColor3 = palette:ObserveColor("text");
|
|
79
|
+
Text = labelText;
|
|
80
|
+
Font = Enum.Font.FredokaOne;
|
|
81
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
82
|
+
BackgroundTransparency = 1;
|
|
83
|
+
TextScaled = true;
|
|
84
|
+
ZIndex = 2;
|
|
85
|
+
};
|
|
87
86
|
|
|
88
87
|
Blend.New "UIPadding" {
|
|
89
|
-
PaddingTop = UDim.new(0, 10)
|
|
90
|
-
PaddingBottom = UDim.new(0, 10)
|
|
91
|
-
PaddingLeft = UDim.new(0, 10)
|
|
92
|
-
PaddingRight = UDim.new(0, 10)
|
|
93
|
-
}
|
|
88
|
+
PaddingTop = UDim.new(0, 10);
|
|
89
|
+
PaddingBottom = UDim.new(0, 10);
|
|
90
|
+
PaddingLeft = UDim.new(0, 10);
|
|
91
|
+
PaddingRight = UDim.new(0, 10);
|
|
92
|
+
};
|
|
94
93
|
|
|
95
94
|
Blend.New "UIStroke" {
|
|
96
|
-
Color = palette:ObserveColor("surface", "border")
|
|
97
|
-
Thickness = 5
|
|
98
|
-
}
|
|
95
|
+
Color = palette:ObserveColor("surface", "border");
|
|
96
|
+
Thickness = 5;
|
|
97
|
+
};
|
|
99
98
|
|
|
100
99
|
Blend.New "UICorner" {
|
|
101
|
-
CornerRadius = UDim.new(0, 10)
|
|
102
|
-
}
|
|
100
|
+
CornerRadius = UDim.new(0, 10);
|
|
101
|
+
};
|
|
103
102
|
|
|
104
103
|
Blend.New "Frame" {
|
|
105
|
-
Name = "Highlight"
|
|
106
|
-
Size = UDim2.new(0.8, 0, 0, 20)
|
|
107
|
-
Position = UDim2.fromScale(0.5, 0.75)
|
|
108
|
-
AnchorPoint = Vector2.new(0.5, 0.5)
|
|
109
|
-
BackgroundColor3 = palette:ObserveColor("accent", "highlight")
|
|
104
|
+
Name = "Highlight";
|
|
105
|
+
Size = UDim2.new(0.8, 0, 0, 20);
|
|
106
|
+
Position = UDim2.fromScale(0.5, 0.75);
|
|
107
|
+
AnchorPoint = Vector2.new(0.5, 0.5);
|
|
108
|
+
BackgroundColor3 = palette:ObserveColor("accent", "highlight");
|
|
110
109
|
[Blend.Children] = {
|
|
111
110
|
Blend.New "UICorner" {
|
|
112
|
-
CornerRadius = UDim.new(0, 10)
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
111
|
+
CornerRadius = UDim.new(0, 10);
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
116
115
|
|
|
117
116
|
Blend.New "Frame" {
|
|
118
|
-
Name =
|
|
119
|
-
Size = UDim2.new(0.5, 0, 0, 40)
|
|
120
|
-
AnchorPoint = Vector2.new(1, 1)
|
|
117
|
+
Name ="Button";
|
|
118
|
+
Size = UDim2.new(0.5, 0, 0, 40);
|
|
119
|
+
AnchorPoint = Vector2.new(1, 1);
|
|
121
120
|
BackgroundColor3 = palette:GetSwatch("action"):ObserveGraded(
|
|
122
|
-
palette:ObserveModifiedGrade("action", "mouseOver", percentMouseOver)
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
ZIndex = 2,
|
|
121
|
+
palette:ObserveModifiedGrade("action", "mouseOver", percentMouseOver));
|
|
122
|
+
Position = UDim2.new(1, 30, 1, 40);
|
|
123
|
+
ZIndex = 2;
|
|
126
124
|
|
|
127
125
|
[Blend.OnEvent "MouseEnter"] = function()
|
|
128
126
|
mouseOver.Value = 1
|
|
129
|
-
end
|
|
127
|
+
end;
|
|
130
128
|
|
|
131
129
|
[Blend.OnEvent "MouseLeave"] = function()
|
|
132
130
|
mouseOver.Value = 0
|
|
133
|
-
end
|
|
131
|
+
end;
|
|
134
132
|
|
|
135
133
|
[Blend.Children] = {
|
|
136
134
|
Blend.New "UICorner" {
|
|
137
|
-
CornerRadius = UDim.new(0, 10)
|
|
138
|
-
}
|
|
135
|
+
CornerRadius = UDim.new(0, 10);
|
|
136
|
+
};
|
|
139
137
|
|
|
140
138
|
Blend.New "TextLabel" {
|
|
141
|
-
TextColor3 = palette:ObserveColor(
|
|
142
|
-
"action",
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Size = UDim2.new(1, 0, 1, 0),
|
|
153
|
-
BackgroundTransparency = 1,
|
|
154
|
-
ZIndex = 2,
|
|
155
|
-
},
|
|
139
|
+
TextColor3 = palette:ObserveColor("action", palette:ObserveModifiedGrade(
|
|
140
|
+
palette:ObserveGradeOn("text", "action"),
|
|
141
|
+
"mouseOver",
|
|
142
|
+
percentMouseOver));
|
|
143
|
+
Text = "Action";
|
|
144
|
+
TextScaled = true;
|
|
145
|
+
Font = Enum.Font.FredokaOne;
|
|
146
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
147
|
+
BackgroundTransparency = 1;
|
|
148
|
+
ZIndex = 2;
|
|
149
|
+
};
|
|
156
150
|
|
|
157
151
|
[Blend.Children] = {
|
|
158
152
|
Blend.New "UIStroke" {
|
|
159
|
-
Color = palette:ObserveColor(
|
|
160
|
-
"action",
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
),
|
|
167
|
-
Thickness = 5,
|
|
168
|
-
},
|
|
169
|
-
},
|
|
153
|
+
Color = palette:ObserveColor("action", palette:ObserveModifiedGrade(
|
|
154
|
+
palette:ObserveGradeOn("border", "action"),
|
|
155
|
+
"mouseOver",
|
|
156
|
+
percentMouseOver));
|
|
157
|
+
Thickness = 5;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
170
160
|
|
|
171
161
|
Blend.New "Frame" {
|
|
172
|
-
Name = "Highlight"
|
|
173
|
-
Size = UDim2.new(0.9, 0, 0, 10)
|
|
174
|
-
Position = UDim2.fromScale(0.5, 0.75)
|
|
175
|
-
AnchorPoint = Vector2.new(0.5, 0.5)
|
|
176
|
-
BackgroundColor3 = palette:ObserveColor(
|
|
177
|
-
"accent",
|
|
178
|
-
palette:ObserveGradeOn("highlight", "action")
|
|
179
|
-
),
|
|
162
|
+
Name = "Highlight";
|
|
163
|
+
Size = UDim2.new(0.9, 0, 0, 10);
|
|
164
|
+
Position = UDim2.fromScale(0.5, 0.75);
|
|
165
|
+
AnchorPoint = Vector2.new(0.5, 0.5);
|
|
166
|
+
BackgroundColor3 = palette:ObserveColor("accent", palette:ObserveGradeOn("highlight", "action"));
|
|
180
167
|
[Blend.Children] = {
|
|
181
168
|
Blend.New "UICorner" {
|
|
182
|
-
CornerRadius = UDim.new(0, 10)
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
169
|
+
CornerRadius = UDim.new(0, 10);
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
|
|
186
174
|
|
|
187
175
|
Blend.New "UIPadding" {
|
|
188
|
-
PaddingTop = UDim.new(0, 5)
|
|
189
|
-
PaddingBottom = UDim.new(0, 5)
|
|
190
|
-
PaddingLeft = UDim.new(0, 5)
|
|
191
|
-
PaddingRight = UDim.new(0, 5)
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
176
|
+
PaddingTop = UDim.new(0, 5);
|
|
177
|
+
PaddingBottom = UDim.new(0, 5);
|
|
178
|
+
PaddingLeft = UDim.new(0, 5);
|
|
179
|
+
PaddingRight = UDim.new(0, 5);
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
197
185
|
end
|
|
198
186
|
|
|
187
|
+
|
|
199
188
|
maid:GiveTask((Blend.New "ScrollingFrame" {
|
|
200
|
-
Size = UDim2.new(1, 0, 1, 0)
|
|
201
|
-
BackgroundColor3 = Color3.new(0, 0, 0)
|
|
202
|
-
AutomaticCanvasSize = Enum.AutomaticSize.Y
|
|
203
|
-
CanvasSize = UDim2.new(1, 0, 0, 0)
|
|
204
|
-
Parent = target
|
|
189
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
190
|
+
BackgroundColor3 = Color3.new(0, 0, 0);
|
|
191
|
+
AutomaticCanvasSize = Enum.AutomaticSize.Y;
|
|
192
|
+
CanvasSize = UDim2.new(1, 0, 0, 0);
|
|
193
|
+
Parent = target;
|
|
205
194
|
[Blend.Children] = {
|
|
206
195
|
ColorPickerStoryUtils.create(maid, function(createPicker)
|
|
207
|
-
createPicker("Surface", palette:GetColorValue("surface"))
|
|
208
|
-
createPicker("Text", palette:GetColorValue("text"))
|
|
209
|
-
createPicker("Accent", palette:GetColorValue("accent"))
|
|
210
|
-
createPicker("Action", palette:GetColorValue("action"))
|
|
211
|
-
end)
|
|
196
|
+
createPicker("Surface", palette:GetColorValue("surface"));
|
|
197
|
+
createPicker("Text", palette:GetColorValue("text"));
|
|
198
|
+
createPicker("Accent", palette:GetColorValue("accent"));
|
|
199
|
+
createPicker("Action", palette:GetColorValue("action"));
|
|
200
|
+
end);
|
|
212
201
|
|
|
213
202
|
Blend.New "Frame" {
|
|
214
|
-
Size = UDim2.new(1, 0, 0, 0)
|
|
215
|
-
BackgroundTransparency = 1
|
|
216
|
-
AutomaticSize = Enum.AutomaticSize.Y
|
|
203
|
+
Size = UDim2.new(1, 0, 0, 0);
|
|
204
|
+
BackgroundTransparency = 1;
|
|
205
|
+
AutomaticSize = Enum.AutomaticSize.Y;
|
|
217
206
|
|
|
218
207
|
[Blend.Children] = {
|
|
219
|
-
sampleGui("Light")
|
|
208
|
+
sampleGui("Light");
|
|
220
209
|
|
|
221
210
|
Blend.New "UIListLayout" {
|
|
222
|
-
Padding = UDim.new(0, 50)
|
|
223
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
224
|
-
VerticalAlignment = Enum.VerticalAlignment.Top
|
|
225
|
-
FillDirection = Enum.FillDirection.Vertical
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
211
|
+
Padding = UDim.new(0, 50);
|
|
212
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
213
|
+
VerticalAlignment = Enum.VerticalAlignment.Top;
|
|
214
|
+
FillDirection = Enum.FillDirection.Vertical;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
|
|
229
219
|
|
|
230
220
|
Blend.New "UIListLayout" {
|
|
231
|
-
Padding = UDim.new(0, 20)
|
|
232
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
233
|
-
VerticalAlignment = Enum.VerticalAlignment.Top
|
|
234
|
-
FillDirection = Enum.FillDirection.Vertical
|
|
235
|
-
}
|
|
221
|
+
Padding = UDim.new(0, 20);
|
|
222
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
223
|
+
VerticalAlignment = Enum.VerticalAlignment.Top;
|
|
224
|
+
FillDirection = Enum.FillDirection.Vertical;
|
|
225
|
+
};
|
|
236
226
|
|
|
237
227
|
Blend.New "UIPadding" {
|
|
238
|
-
PaddingTop = UDim.new(0, 10)
|
|
239
|
-
}
|
|
228
|
+
PaddingTop = UDim.new(0, 10);
|
|
229
|
+
};
|
|
240
230
|
|
|
241
231
|
Blend.New "Frame" {
|
|
242
|
-
Name = "TestCustomColor"
|
|
243
|
-
Size = UDim2.new(0, 30, 0, 30)
|
|
244
|
-
BackgroundColor3 = palette:ObserveColor(Color3.new(0, 0, 1), "text")
|
|
245
|
-
}
|
|
246
|
-
}
|
|
232
|
+
Name = "TestCustomColor";
|
|
233
|
+
Size = UDim2.new(0, 30, 0, 30);
|
|
234
|
+
BackgroundColor3 = palette:ObserveColor(Color3.new(0, 0, 1), "text");
|
|
235
|
+
};
|
|
236
|
+
}
|
|
247
237
|
}):Subscribe())
|
|
248
238
|
|
|
239
|
+
|
|
249
240
|
return function()
|
|
250
241
|
maid:DoCleaning()
|
|
251
242
|
end
|
|
252
|
-
end
|
|
243
|
+
end
|
|
@@ -116,17 +116,18 @@ end
|
|
|
116
116
|
|
|
117
117
|
function ColorGradePalette:ObserveModified(gradeName, amount, multiplier)
|
|
118
118
|
return Rx.combineLatest({
|
|
119
|
-
grade = self:_observeGradeFromName(gradeName)
|
|
120
|
-
amount = self:_observeGradeFromName(amount)
|
|
121
|
-
multiplier = multiplier or 1
|
|
119
|
+
grade = self:_observeGradeFromName(gradeName);
|
|
120
|
+
amount = self:_observeGradeFromName(amount);
|
|
121
|
+
multiplier = multiplier or 1;
|
|
122
122
|
}):Pipe({
|
|
123
123
|
Rx.map(function(state)
|
|
124
124
|
assert(type(state.grade) == "number", "Bad state.grade")
|
|
125
125
|
assert(type(state.amount) == "number", "Bad state.amount")
|
|
126
126
|
assert(type(state.multiplier) == "number", "Bad state.multiplier")
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
|
|
129
|
+
return state.grade + state.multiplier*state.amount
|
|
130
|
+
end);
|
|
130
131
|
})
|
|
131
132
|
end
|
|
132
133
|
|
|
@@ -140,9 +141,9 @@ function ColorGradePalette:ObserveOn(gradeName, newSurfaceName, baseSurfaceName)
|
|
|
140
141
|
end
|
|
141
142
|
|
|
142
143
|
return Rx.combineLatest({
|
|
143
|
-
grade = self:_observeGradeFromName(gradeName)
|
|
144
|
-
newSurfaceGrade = self:_observeGradeFromName(newSurfaceName)
|
|
145
|
-
baseSurfaceGrade = observeBaseSurfaceGrade
|
|
144
|
+
grade = self:_observeGradeFromName(gradeName);
|
|
145
|
+
newSurfaceGrade = self:_observeGradeFromName(newSurfaceName);
|
|
146
|
+
baseSurfaceGrade = observeBaseSurfaceGrade;
|
|
146
147
|
}):Pipe({
|
|
147
148
|
Rx.map(function(state)
|
|
148
149
|
local difference = state.grade - state.baseSurfaceGrade
|
|
@@ -161,9 +162,8 @@ function ColorGradePalette:ObserveOn(gradeName, newSurfaceName, baseSurfaceName)
|
|
|
161
162
|
end
|
|
162
163
|
|
|
163
164
|
return finalGrade
|
|
164
|
-
end)
|
|
165
|
-
}),
|
|
166
|
-
self._vividness[gradeName]
|
|
165
|
+
end)
|
|
166
|
+
}), self._vividness[gradeName]
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
function ColorGradePalette:_observeGradeFromName(gradeName)
|
|
@@ -181,7 +181,7 @@ function ColorGradePalette:_observeGradeFromName(gradeName)
|
|
|
181
181
|
else
|
|
182
182
|
error("Bad grade value")
|
|
183
183
|
end
|
|
184
|
-
end)
|
|
184
|
+
end)
|
|
185
185
|
})
|
|
186
186
|
end
|
|
187
187
|
|
|
@@ -194,7 +194,7 @@ function ColorGradePalette:_observeGradeFromName(gradeName)
|
|
|
194
194
|
local colorOrObservable = Blend.toPropertyObservable(gradeName)
|
|
195
195
|
if colorOrObservable then
|
|
196
196
|
return colorOrObservable:Pipe({
|
|
197
|
-
Rx.map(ColorGradeUtils.getGrade)
|
|
197
|
+
Rx.map(ColorGradeUtils.getGrade)
|
|
198
198
|
})
|
|
199
199
|
end
|
|
200
200
|
|
|
@@ -209,8 +209,8 @@ function ColorGradePalette:ObserveDefaultSurfaceGrade()
|
|
|
209
209
|
else
|
|
210
210
|
return Rx.EMPTY
|
|
211
211
|
end
|
|
212
|
-
end)
|
|
212
|
+
end)
|
|
213
213
|
})
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
return ColorGradePalette
|
|
216
|
+
return ColorGradePalette
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
@class ColorGradePalette.story
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local require =
|
|
6
|
-
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
5
|
+
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
7
6
|
|
|
7
|
+
local Maid = require("Maid")
|
|
8
8
|
local Blend = require("Blend")
|
|
9
9
|
local ColorGradePalette = require("ColorGradePalette")
|
|
10
|
-
local ColorPickerStoryUtils = require("ColorPickerStoryUtils")
|
|
11
10
|
local ColorSwatch = require("ColorSwatch")
|
|
12
|
-
local
|
|
11
|
+
local ColorPickerStoryUtils = require("ColorPickerStoryUtils")
|
|
13
12
|
local ValueObject = require("ValueObject")
|
|
14
13
|
|
|
15
14
|
return function(target)
|
|
@@ -60,173 +59,163 @@ return function(target)
|
|
|
60
59
|
local percentMouseOver = Blend.Spring(mouseOver, 60)
|
|
61
60
|
|
|
62
61
|
return Blend.New "Frame" {
|
|
63
|
-
BackgroundColor3 = surface:ObserveGraded(gradePalette:ObserveGrade("surface"))
|
|
64
|
-
Size = UDim2.new(0, 250, 0, 100)
|
|
62
|
+
BackgroundColor3 = surface:ObserveGraded(gradePalette:ObserveGrade("surface"));
|
|
63
|
+
Size = UDim2.new(0, 250, 0, 100);
|
|
65
64
|
|
|
66
65
|
[Blend.Children] = {
|
|
67
66
|
Blend.New "TextLabel" {
|
|
68
|
-
TextColor3 = text:ObserveGraded(gradePalette:ObserveGrade("text"))
|
|
69
|
-
Text = labelText
|
|
70
|
-
Font = Enum.Font.FredokaOne
|
|
71
|
-
Size = UDim2.new(1, 0, 1, 0)
|
|
72
|
-
BackgroundTransparency = 1
|
|
73
|
-
TextScaled = true
|
|
74
|
-
ZIndex = 2
|
|
75
|
-
}
|
|
67
|
+
TextColor3 = text:ObserveGraded(gradePalette:ObserveGrade("text"));
|
|
68
|
+
Text = labelText;
|
|
69
|
+
Font = Enum.Font.FredokaOne;
|
|
70
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
71
|
+
BackgroundTransparency = 1;
|
|
72
|
+
TextScaled = true;
|
|
73
|
+
ZIndex = 2;
|
|
74
|
+
};
|
|
76
75
|
|
|
77
76
|
Blend.New "UIPadding" {
|
|
78
|
-
PaddingTop = UDim.new(0, 10)
|
|
79
|
-
PaddingBottom = UDim.new(0, 10)
|
|
80
|
-
PaddingLeft = UDim.new(0, 10)
|
|
81
|
-
PaddingRight = UDim.new(0, 10)
|
|
82
|
-
}
|
|
77
|
+
PaddingTop = UDim.new(0, 10);
|
|
78
|
+
PaddingBottom = UDim.new(0, 10);
|
|
79
|
+
PaddingLeft = UDim.new(0, 10);
|
|
80
|
+
PaddingRight = UDim.new(0, 10);
|
|
81
|
+
};
|
|
83
82
|
|
|
84
83
|
Blend.New "UIStroke" {
|
|
85
|
-
Color = surface:ObserveGraded(gradePalette:ObserveGrade("border"))
|
|
86
|
-
Thickness = 5
|
|
87
|
-
}
|
|
84
|
+
Color = surface:ObserveGraded(gradePalette:ObserveGrade("border"));
|
|
85
|
+
Thickness = 5;
|
|
86
|
+
};
|
|
88
87
|
|
|
89
88
|
Blend.New "UICorner" {
|
|
90
|
-
CornerRadius = UDim.new(0, 10)
|
|
91
|
-
}
|
|
89
|
+
CornerRadius = UDim.new(0, 10);
|
|
90
|
+
};
|
|
92
91
|
|
|
93
92
|
Blend.New "Frame" {
|
|
94
|
-
Name = "Highlight"
|
|
95
|
-
Size = UDim2.new(0.8, 0, 0, 20)
|
|
96
|
-
Position = UDim2.fromScale(0.5, 0.75)
|
|
97
|
-
AnchorPoint = Vector2.new(0.5, 0.5)
|
|
98
|
-
BackgroundColor3 = accent:ObserveGraded(gradePalette:ObserveGrade("highlight"))
|
|
93
|
+
Name = "Highlight";
|
|
94
|
+
Size = UDim2.new(0.8, 0, 0, 20);
|
|
95
|
+
Position = UDim2.fromScale(0.5, 0.75);
|
|
96
|
+
AnchorPoint = Vector2.new(0.5, 0.5);
|
|
97
|
+
BackgroundColor3 = accent:ObserveGraded(gradePalette:ObserveGrade("highlight"));
|
|
99
98
|
[Blend.Children] = {
|
|
100
99
|
Blend.New "UICorner" {
|
|
101
|
-
CornerRadius = UDim.new(0, 10)
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
100
|
+
CornerRadius = UDim.new(0, 10);
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
105
104
|
|
|
106
105
|
Blend.New "Frame" {
|
|
107
|
-
Name =
|
|
108
|
-
Size = UDim2.new(0.5, 0, 0, 40)
|
|
109
|
-
AnchorPoint = Vector2.new(1, 1)
|
|
110
|
-
BackgroundColor3 = action:ObserveGraded(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
Position = UDim2.new(1, 30, 1, 40),
|
|
114
|
-
ZIndex = 2,
|
|
106
|
+
Name ="Button";
|
|
107
|
+
Size = UDim2.new(0.5, 0, 0, 40);
|
|
108
|
+
AnchorPoint = Vector2.new(1, 1);
|
|
109
|
+
BackgroundColor3 = action:ObserveGraded(gradePalette:ObserveModified("action", "mouseOver", percentMouseOver));
|
|
110
|
+
Position = UDim2.new(1, 30, 1, 40);
|
|
111
|
+
ZIndex = 2;
|
|
115
112
|
|
|
116
113
|
[Blend.OnEvent "MouseEnter"] = function()
|
|
117
114
|
mouseOver.Value = 1
|
|
118
|
-
end
|
|
115
|
+
end;
|
|
119
116
|
|
|
120
117
|
[Blend.OnEvent "MouseLeave"] = function()
|
|
121
118
|
mouseOver.Value = 0
|
|
122
|
-
end
|
|
119
|
+
end;
|
|
123
120
|
|
|
124
121
|
[Blend.Children] = {
|
|
125
122
|
Blend.New "UICorner" {
|
|
126
|
-
CornerRadius = UDim.new(0, 10)
|
|
127
|
-
}
|
|
123
|
+
CornerRadius = UDim.new(0, 10);
|
|
124
|
+
};
|
|
128
125
|
|
|
129
126
|
Blend.New "TextLabel" {
|
|
130
|
-
TextColor3 = action:ObserveGraded(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
TextScaled = true,
|
|
139
|
-
Font = Enum.Font.FredokaOne,
|
|
140
|
-
Size = UDim2.new(1, 0, 1, 0),
|
|
141
|
-
BackgroundTransparency = 1,
|
|
142
|
-
ZIndex = 2,
|
|
143
|
-
},
|
|
127
|
+
TextColor3 = action:ObserveGraded(gradePalette:ObserveModified(gradePalette:ObserveOn("text", "action"), "mouseOver", percentMouseOver));
|
|
128
|
+
Text = "Action";
|
|
129
|
+
TextScaled = true;
|
|
130
|
+
Font = Enum.Font.FredokaOne;
|
|
131
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
132
|
+
BackgroundTransparency = 1;
|
|
133
|
+
ZIndex = 2;
|
|
134
|
+
};
|
|
144
135
|
|
|
145
136
|
[Blend.Children] = {
|
|
146
137
|
Blend.New "UIStroke" {
|
|
147
|
-
Color = action:ObserveGraded(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
percentMouseOver
|
|
152
|
-
)
|
|
153
|
-
),
|
|
154
|
-
Thickness = 5,
|
|
155
|
-
},
|
|
156
|
-
},
|
|
138
|
+
Color = action:ObserveGraded(gradePalette:ObserveModified(gradePalette:ObserveOn("border", "action"), "mouseOver", percentMouseOver));
|
|
139
|
+
Thickness = 5;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
157
142
|
|
|
158
143
|
Blend.New "Frame" {
|
|
159
|
-
Name = "Highlight"
|
|
160
|
-
Size = UDim2.new(0.9, 0, 0, 10)
|
|
161
|
-
Position = UDim2.fromScale(0.5, 0.75)
|
|
162
|
-
AnchorPoint = Vector2.new(0.5, 0.5)
|
|
163
|
-
BackgroundColor3 = accent:ObserveGraded(gradePalette:ObserveOn("highlight", "action"))
|
|
144
|
+
Name = "Highlight";
|
|
145
|
+
Size = UDim2.new(0.9, 0, 0, 10);
|
|
146
|
+
Position = UDim2.fromScale(0.5, 0.75);
|
|
147
|
+
AnchorPoint = Vector2.new(0.5, 0.5);
|
|
148
|
+
BackgroundColor3 = accent:ObserveGraded(gradePalette:ObserveOn("highlight", "action"));
|
|
164
149
|
[Blend.Children] = {
|
|
165
150
|
Blend.New "UICorner" {
|
|
166
|
-
CornerRadius = UDim.new(0, 10)
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
151
|
+
CornerRadius = UDim.new(0, 10);
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
|
|
170
156
|
|
|
171
157
|
Blend.New "UIPadding" {
|
|
172
|
-
PaddingTop = UDim.new(0, 5)
|
|
173
|
-
PaddingBottom = UDim.new(0, 5)
|
|
174
|
-
PaddingLeft = UDim.new(0, 5)
|
|
175
|
-
PaddingRight = UDim.new(0, 5)
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
158
|
+
PaddingTop = UDim.new(0, 5);
|
|
159
|
+
PaddingBottom = UDim.new(0, 5);
|
|
160
|
+
PaddingLeft = UDim.new(0, 5);
|
|
161
|
+
PaddingRight = UDim.new(0, 5);
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
181
167
|
end
|
|
182
168
|
|
|
183
169
|
maid:GiveTask((Blend.New "ScrollingFrame" {
|
|
184
|
-
Size = UDim2.new(1, 0, 1, 0)
|
|
185
|
-
BackgroundColor3 = Color3.new(0, 0, 0)
|
|
186
|
-
AutomaticCanvasSize = Enum.AutomaticSize.Y
|
|
187
|
-
CanvasSize = UDim2.new(1, 0, 0, 0)
|
|
188
|
-
Parent = target
|
|
170
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
171
|
+
BackgroundColor3 = Color3.new(0, 0, 0);
|
|
172
|
+
AutomaticCanvasSize = Enum.AutomaticSize.Y;
|
|
173
|
+
CanvasSize = UDim2.new(1, 0, 0, 0);
|
|
174
|
+
Parent = target;
|
|
189
175
|
|
|
190
176
|
[Blend.Children] = {
|
|
191
177
|
ColorPickerStoryUtils.create(maid, function(createPicker)
|
|
192
|
-
createPicker("Surface", surfaceColorValue)
|
|
193
|
-
createPicker("Text", textColorValue)
|
|
194
|
-
createPicker("Accent", accentColorValue)
|
|
195
|
-
createPicker("Action", actionColorValue)
|
|
196
|
-
end)
|
|
178
|
+
createPicker("Surface", surfaceColorValue);
|
|
179
|
+
createPicker("Text", textColorValue);
|
|
180
|
+
createPicker("Accent", accentColorValue);
|
|
181
|
+
createPicker("Action", actionColorValue);
|
|
182
|
+
end);
|
|
183
|
+
|
|
197
184
|
|
|
198
185
|
Blend.New "Frame" {
|
|
199
|
-
Size = UDim2.new(1, 0, 0, 0)
|
|
200
|
-
BackgroundTransparency = 1
|
|
201
|
-
AutomaticSize = Enum.AutomaticSize.Y
|
|
186
|
+
Size = UDim2.new(1, 0, 0, 0);
|
|
187
|
+
BackgroundTransparency = 1;
|
|
188
|
+
AutomaticSize = Enum.AutomaticSize.Y;
|
|
202
189
|
|
|
203
190
|
[Blend.Children] = {
|
|
204
|
-
sampleGui("Light", light)
|
|
205
|
-
sampleGui("Dark", dark)
|
|
191
|
+
sampleGui("Light", light);
|
|
192
|
+
sampleGui("Dark", dark);
|
|
206
193
|
|
|
207
194
|
Blend.New "UIListLayout" {
|
|
208
|
-
Padding = UDim.new(0, 50)
|
|
209
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
210
|
-
VerticalAlignment = Enum.VerticalAlignment.Top
|
|
211
|
-
FillDirection = Enum.FillDirection.Vertical
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
195
|
+
Padding = UDim.new(0, 50);
|
|
196
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
197
|
+
VerticalAlignment = Enum.VerticalAlignment.Top;
|
|
198
|
+
FillDirection = Enum.FillDirection.Vertical;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
|
|
215
203
|
|
|
216
204
|
Blend.New "UIListLayout" {
|
|
217
|
-
Padding = UDim.new(0, 20)
|
|
218
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
219
|
-
VerticalAlignment = Enum.VerticalAlignment.Top
|
|
220
|
-
FillDirection = Enum.FillDirection.Vertical
|
|
221
|
-
}
|
|
205
|
+
Padding = UDim.new(0, 20);
|
|
206
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
207
|
+
VerticalAlignment = Enum.VerticalAlignment.Top;
|
|
208
|
+
FillDirection = Enum.FillDirection.Vertical;
|
|
209
|
+
};
|
|
222
210
|
|
|
223
211
|
Blend.New "UIPadding" {
|
|
224
|
-
PaddingTop = UDim.new(0, 10)
|
|
225
|
-
}
|
|
226
|
-
}
|
|
212
|
+
PaddingTop = UDim.new(0, 10);
|
|
213
|
+
};
|
|
214
|
+
}
|
|
227
215
|
}):Subscribe())
|
|
228
216
|
|
|
217
|
+
|
|
229
218
|
return function()
|
|
230
219
|
maid:DoCleaning()
|
|
231
220
|
end
|
|
232
|
-
end
|
|
221
|
+
end
|
|
@@ -126,12 +126,12 @@ function ColorGradeUtils.getGradedColor(baseColor: Color3, colorGrade: number, v
|
|
|
126
126
|
-- local towardsOffset = (colorGrade - v)/100
|
|
127
127
|
-- local scaleTowards = math.clamp(math.abs(towardsOffset), 0, 1)^vividness
|
|
128
128
|
-- u = math.clamp(Math.map(scaleTowards, 0, 1, u, 0), 0, 100)
|
|
129
|
-
u = math.clamp(vividness
|
|
129
|
+
u = math.clamp(vividness*u, 0, 100)
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
v = 100 - colorGrade
|
|
133
133
|
|
|
134
|
-
return LuvColor3Utils.toColor3({
|
|
134
|
+
return LuvColor3Utils.toColor3({l, u, v})
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
-
return ColorGradeUtils
|
|
137
|
+
return ColorGradeUtils
|
|
@@ -2,105 +2,103 @@
|
|
|
2
2
|
@class ColorSwatch.story
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local require =
|
|
6
|
-
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
5
|
+
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
7
6
|
|
|
7
|
+
local Maid = require("Maid")
|
|
8
8
|
local Blend = require("Blend")
|
|
9
9
|
local ColorSwatch = require("ColorSwatch")
|
|
10
|
-
local Maid = require("Maid")
|
|
11
10
|
|
|
12
11
|
return function(target)
|
|
13
12
|
local maid = Maid.new()
|
|
14
13
|
|
|
15
14
|
local function entry(color, text, isBaseColor)
|
|
16
15
|
return Blend.New "Frame" {
|
|
17
|
-
Name = "Entry"
|
|
18
|
-
Size = UDim2.new(0, 25, 0, 45)
|
|
19
|
-
BackgroundTransparency = 1
|
|
16
|
+
Name = "Entry";
|
|
17
|
+
Size = UDim2.new(0, 25, 0, 45);
|
|
18
|
+
BackgroundTransparency = 1;
|
|
20
19
|
|
|
21
20
|
[Blend.Children] = {
|
|
22
21
|
Blend.New "Frame" {
|
|
23
|
-
BackgroundColor3 = color
|
|
24
|
-
Size = UDim2.new(0, 25, 0, 25)
|
|
25
|
-
}
|
|
22
|
+
BackgroundColor3 = color;
|
|
23
|
+
Size = UDim2.new(0, 25, 0, 25);
|
|
24
|
+
};
|
|
26
25
|
|
|
27
26
|
Blend.New "TextLabel" {
|
|
28
|
-
Text = tostring(text)
|
|
29
|
-
Size = UDim2.new(1, 0, 0, 15)
|
|
30
|
-
Position = UDim2.new(0, 0, 1, 0)
|
|
31
|
-
AnchorPoint = Vector2.new(0, 1)
|
|
32
|
-
Font = Enum.Font.Code
|
|
33
|
-
TextScaled = true
|
|
27
|
+
Text = tostring(text);
|
|
28
|
+
Size = UDim2.new(1, 0, 0, 15);
|
|
29
|
+
Position = UDim2.new(0, 0, 1, 0);
|
|
30
|
+
AnchorPoint = Vector2.new(0, 1);
|
|
31
|
+
Font = Enum.Font.Code;
|
|
32
|
+
TextScaled = true;
|
|
34
33
|
|
|
35
34
|
[Blend.Children] = {
|
|
36
35
|
Blend.New "UIStroke" {
|
|
37
|
-
Color = Color3.new(0.6, 1, 0.6)
|
|
38
|
-
Thickness = isBaseColor and 3 or 0
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
36
|
+
Color = Color3.new(0.6, 1, 0.6);
|
|
37
|
+
Thickness = isBaseColor and 3 or 0;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
44
43
|
end
|
|
45
44
|
|
|
45
|
+
|
|
46
46
|
local function palette(color)
|
|
47
47
|
local grades = {}
|
|
48
48
|
|
|
49
49
|
local colorSwatch = ColorSwatch.new(color, 1)
|
|
50
50
|
|
|
51
|
-
for i
|
|
52
|
-
table.insert(
|
|
53
|
-
grades,
|
|
54
|
-
entry(colorSwatch:GetGraded(i), tostring(i), math.abs(colorSwatch:GetBaseGrade() - i) <= 5)
|
|
55
|
-
)
|
|
51
|
+
for i=0, 100, 10 do
|
|
52
|
+
table.insert(grades, entry(colorSwatch:GetGraded(i), tostring(i), math.abs(colorSwatch:GetBaseGrade() - i) <= 5))
|
|
56
53
|
end
|
|
57
54
|
|
|
58
55
|
return Blend.New "Frame" {
|
|
59
|
-
Size = UDim2.new(1, 0, 0, 45)
|
|
56
|
+
Size = UDim2.new(1, 0, 0, 45);
|
|
60
57
|
[Blend.Children] = {
|
|
61
|
-
grades
|
|
58
|
+
grades;
|
|
62
59
|
Blend.New "UIListLayout" {
|
|
63
|
-
Padding = UDim.new(0, 0)
|
|
64
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
65
|
-
VerticalAlignment = Enum.VerticalAlignment.Center
|
|
66
|
-
FillDirection = Enum.FillDirection.Horizontal
|
|
67
|
-
}
|
|
68
|
-
}
|
|
60
|
+
Padding = UDim.new(0, 0);
|
|
61
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
62
|
+
VerticalAlignment = Enum.VerticalAlignment.Center;
|
|
63
|
+
FillDirection = Enum.FillDirection.Horizontal;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
69
66
|
}
|
|
70
67
|
end
|
|
71
68
|
|
|
69
|
+
|
|
72
70
|
maid:GiveTask((Blend.New "ScrollingFrame" {
|
|
73
|
-
Size = UDim2.new(1, 0, 1, 0)
|
|
74
|
-
Parent = target
|
|
71
|
+
Size = UDim2.new(1, 0, 1, 0);
|
|
72
|
+
Parent = target;
|
|
75
73
|
[Blend.Children] = {
|
|
76
|
-
palette(Color3.new(0, 0, 0))
|
|
74
|
+
palette(Color3.new(0, 0, 0));
|
|
77
75
|
-- palette(Color3.new(1, 1, 1));
|
|
78
76
|
-- palette(Color3.new(0.5, 0.5, 0.5));
|
|
79
|
-
palette(Color3.fromRGB(117, 117, 117))
|
|
80
|
-
palette(Color3.fromRGB(245, 238, 214))
|
|
81
|
-
palette(Color3.fromRGB(96, 58, 58))
|
|
82
|
-
palette(Color3.fromRGB(85, 170, 127))
|
|
83
|
-
palette(Color3.new(1, 0, 0))
|
|
84
|
-
palette(Color3.new(0, 1, 0))
|
|
85
|
-
palette(Color3.new(0, 0, 1))
|
|
86
|
-
palette(Color3.new(1, 0, 1))
|
|
87
|
-
palette(Color3.new(1, 1, 0))
|
|
88
|
-
palette(Color3.new(0, 1, 1))
|
|
77
|
+
palette(Color3.fromRGB(117, 117, 117));
|
|
78
|
+
palette(Color3.fromRGB(245, 238, 214));
|
|
79
|
+
palette(Color3.fromRGB(96, 58, 58));
|
|
80
|
+
palette(Color3.fromRGB(85, 170, 127));
|
|
81
|
+
palette(Color3.new(1, 0, 0));
|
|
82
|
+
palette(Color3.new(0, 1, 0));
|
|
83
|
+
palette(Color3.new(0, 0, 1));
|
|
84
|
+
palette(Color3.new(1, 0, 1));
|
|
85
|
+
palette(Color3.new(1, 1, 0));
|
|
86
|
+
palette(Color3.new(0, 1, 1));
|
|
89
87
|
|
|
90
88
|
Blend.New "UIListLayout" {
|
|
91
|
-
Padding = UDim.new(0, 5)
|
|
92
|
-
HorizontalAlignment = Enum.HorizontalAlignment.Center
|
|
93
|
-
VerticalAlignment = Enum.VerticalAlignment.Top
|
|
94
|
-
FillDirection = Enum.FillDirection.Vertical
|
|
95
|
-
}
|
|
89
|
+
Padding = UDim.new(0, 5);
|
|
90
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center;
|
|
91
|
+
VerticalAlignment = Enum.VerticalAlignment.Top;
|
|
92
|
+
FillDirection = Enum.FillDirection.Vertical;
|
|
93
|
+
};
|
|
96
94
|
|
|
97
95
|
Blend.New "UIPadding" {
|
|
98
|
-
PaddingTop = UDim.new(0, 10)
|
|
99
|
-
}
|
|
100
|
-
}
|
|
96
|
+
PaddingTop = UDim.new(0, 10);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
101
99
|
}):Subscribe())
|
|
102
100
|
|
|
103
101
|
return function()
|
|
104
102
|
maid:DoCleaning()
|
|
105
103
|
end
|
|
106
|
-
end
|
|
104
|
+
end
|