kaplay-ui 0.18.0 → 0.18.2

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/README.md CHANGED
@@ -26,6 +26,17 @@ npm install kaplay-ui
26
26
 
27
27
  ### Inputs
28
28
 
29
+ #### Checkbox
30
+
31
+ Makes a checkbow that takes the following parameters:
32
+
33
+ | Parameter | Type | Default | Required | Description |
34
+ | --------- | -------- | ------- | -------- | ------------------- |
35
+ | `x` | `number` | 0 | ❌ No | Checkbox x position |
36
+ | `y` | `number` | 0 | ❌ No | Checkbox x position |
37
+ | `width` | `number` | 25 | ❌ No | Checkbox width |
38
+ | `height` | `number` | 25 | ❌ No | Checkbox height |
39
+
29
40
  #### Text Button
30
41
 
31
42
  Makes a button with centered text that takes the following parameters:
package/inputs/index.js CHANGED
@@ -97,11 +97,11 @@ export const makeToggle = (x = 0, y = 0, width = 50, height = 25) => {
97
97
  * Makes checkbox
98
98
  * @param {number} x - The x postion to set (default is 0)
99
99
  * @param {number} y - The x postion to set (default is 0)
100
- * @param {number} width - Checkbox width (default is 50)
101
- * @param {number} height - Checkbox height (default is 50)
100
+ * @param {number} width - Checkbox width (default is 25)
101
+ * @param {number} height - Checkbox height (default is 25)
102
102
  * @returns {GameObj}
103
103
  */
104
- export const makeCheckbox = (x = 0, y = 0, width = 50, height = 50) => {
104
+ export const makeCheckbox = (x = 0, y = 0, width = 25, height = 25) => {
105
105
  loadSprite("cb", cbIcon);
106
106
 
107
107
  const checkbox = make([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaplay-ui",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "UI components for KAPLAY",
5
5
  "main": "index.js",
6
6
  "repository": {