kaplay-ui 0.13.0 → 0.14.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/buttons/index.js +3 -1
- package/package.json +1 -1
package/buttons/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import "kaplay/global";
|
|
|
8
8
|
* @param {number} width - Width of button (default is 100)
|
|
9
9
|
* @param {number} height - Height of button (default is 50)
|
|
10
10
|
* @param {number} btnRadius - Border radius of button (default is 8)
|
|
11
|
+
* @param {number} outline - Button radius (default is 1)
|
|
11
12
|
* @param {number} txtSize - Text size of button (default is 15)
|
|
12
13
|
* @returns {GameObj}
|
|
13
14
|
*/
|
|
@@ -18,6 +19,7 @@ export const makeTextButton = (
|
|
|
18
19
|
width = 100,
|
|
19
20
|
height = 50,
|
|
20
21
|
btnRadius = 8,
|
|
22
|
+
outline = 1,
|
|
21
23
|
txtSize = 15
|
|
22
24
|
) => {
|
|
23
25
|
// Make button
|
|
@@ -26,7 +28,7 @@ export const makeTextButton = (
|
|
|
26
28
|
pos(x, y),
|
|
27
29
|
area(),
|
|
28
30
|
scale(1),
|
|
29
|
-
outline(
|
|
31
|
+
outline(outline),
|
|
30
32
|
color(255, 255, 255),
|
|
31
33
|
]);
|
|
32
34
|
|