kaplay-ui 0.20.7-alpha.0 → 0.20.7

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.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -59,7 +59,17 @@ const k = kaplay({
59
59
  Text-based button with centered text:
60
60
 
61
61
  ```ts
62
- const txtBtn = addTextButton("Play!", 200, 100);
62
+ // Button with default centered "Button" text, width of 200, height of 100
63
+ const txtBtn = addTextButton();
64
+
65
+ // Button with centered "Play!" text, default width of 200, height of 100
66
+ const txtBtn = addTextButton("Play!");
67
+
68
+ // Button with default centered "Play!" text, width of 250, default height of 100
69
+ const txtBtn = addTextButton("Play!", 250);
70
+
71
+ // Button with default centered "Play!" text, width of 250, height of 150
72
+ const txtBtn = addTextButton("Play!", 250, 150);
63
73
  ```
64
74
 
65
75
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaplay-ui",
3
- "version": "0.20.7-alpha.0",
3
+ "version": "0.20.7",
4
4
  "description": "UI components for KAPLAY",
5
5
  "main": "index.js",
6
6
  "repository": {