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.
- package/README.md +11 -1
- 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
|
-
|
|
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
|
---
|