@quenty/colorpalette 5.0.0 → 5.1.0-canary.425.adcf9ca.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 +11 -0
- package/package.json +13 -13
- package/src/Shared/Font/FontPalette.lua +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [5.1.0-canary.425.adcf9ca.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@5.0.0...@quenty/colorpalette@5.1.0-canary.425.adcf9ca.0) (2023-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix errors with font palette ([dc477fa](https://github.com/Quenty/NevermoreEngine/commit/dc477fa3e23026f023a5fddafb0caf7a159c4149))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@4.34.0...@quenty/colorpalette@5.0.0) (2023-10-11)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/colorpalette",
|
|
3
|
-
"version": "5.0.0",
|
|
3
|
+
"version": "5.1.0-canary.425.adcf9ca.0",
|
|
4
4
|
"description": "Color palette system for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/baseobject": "
|
|
32
|
-
"@quenty/blend": "
|
|
33
|
-
"@quenty/color3utils": "
|
|
34
|
-
"@quenty/colorpicker": "
|
|
35
|
-
"@quenty/loader": "
|
|
36
|
-
"@quenty/maid": "
|
|
37
|
-
"@quenty/math": "
|
|
38
|
-
"@quenty/rx": "
|
|
39
|
-
"@quenty/signal": "
|
|
40
|
-
"@quenty/table": "
|
|
41
|
-
"@quenty/valueobject": "
|
|
31
|
+
"@quenty/baseobject": "7.0.0",
|
|
32
|
+
"@quenty/blend": "7.0.0",
|
|
33
|
+
"@quenty/color3utils": "6.0.0",
|
|
34
|
+
"@quenty/colorpicker": "5.0.0",
|
|
35
|
+
"@quenty/loader": "7.0.0",
|
|
36
|
+
"@quenty/maid": "2.6.0",
|
|
37
|
+
"@quenty/math": "2.5.0",
|
|
38
|
+
"@quenty/rx": "8.0.0",
|
|
39
|
+
"@quenty/signal": "3.0.0",
|
|
40
|
+
"@quenty/table": "3.3.0",
|
|
41
|
+
"@quenty/valueobject": "8.0.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "adcf9caccea602c5bb69c2306321c7e43c499383"
|
|
44
44
|
}
|
|
@@ -28,8 +28,7 @@ function FontPalette.new()
|
|
|
28
28
|
self._fontFaces = {}
|
|
29
29
|
self._defaultFontMap = {} -- [name] = Enum.Font.?
|
|
30
30
|
|
|
31
|
-
self.FontAdded = Signal.new() -- :Fire(name)
|
|
32
|
-
self._maid:GiveTask(self.FontAdded)
|
|
31
|
+
self.FontAdded = self._maid:Add(Signal.new()) -- :Fire(name)
|
|
33
32
|
|
|
34
33
|
return self
|
|
35
34
|
end
|
|
@@ -123,7 +122,7 @@ function FontPalette:GetFontFaceValue(fontName)
|
|
|
123
122
|
|
|
124
123
|
local fontValue = self._fontFaces[fontName]
|
|
125
124
|
if not fontValue then
|
|
126
|
-
error(("No font with name %q"
|
|
125
|
+
error(string.format("No font with name %q", fontName))
|
|
127
126
|
end
|
|
128
127
|
|
|
129
128
|
return fontValue
|
|
@@ -140,7 +139,7 @@ function FontPalette:GetFontValue(fontName)
|
|
|
140
139
|
|
|
141
140
|
local fontValue = self._fonts[fontName]
|
|
142
141
|
if not fontValue then
|
|
143
|
-
error(("No font with name %q"
|
|
142
|
+
error(string.format("No font with name %q", fontName))
|
|
144
143
|
end
|
|
145
144
|
|
|
146
145
|
return fontValue
|