You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/docs/index.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,10 @@ Always use the latest version of package! Latest Version: v1.1.7.
37
37
38
38
## Buttons
39
39
40
+
### Bedrock Buttons
41
+
42
+
#### Normal
43
+
40
44
- To get a Minecraft BE/PE styled button you need to add `.button` class to your `button` element. Unfortunately, `.button` class will not work with links but you can still use it with Java Script.
41
45
42
46
<buttonclass="button">Click Me</button>
@@ -45,6 +49,8 @@ Always use the latest version of package! Latest Version: v1.1.7.
45
49
<buttonclass="button">Click Me</button>
46
50
```
47
51
52
+
#### Dark
53
+
48
54
- There is a dark variant of it also. To get dark button, use class `.button-dark` to your `button` element.
49
55
50
56
<buttonclass="button-dark">Click Me</button>
@@ -53,6 +59,10 @@ Always use the latest version of package! Latest Version: v1.1.7.
53
59
<buttonclass="button-dark">Click Me</button>
54
60
```
55
61
62
+
### Java Buttons
63
+
64
+
#### Normal
65
+
56
66
- To get a Minecraft Java Edition (New) styled button you need to add `.button-java` class to your `button` element. Unfortunately, `.button-java` class will not work with links but you can still use it with Java Script.
57
67
58
68
<buttonclass="button-java">Click Me</button>
@@ -61,6 +71,8 @@ Always use the latest version of package! Latest Version: v1.1.7.
61
71
<buttonclass="button-java">Click Me</button>
62
72
```
63
73
74
+
#### Old
75
+
64
76
- To get a Minecraft Java Edition (Old) styled button you need to add `.button-java-old` class to your `button` element.
65
77
66
78
<buttonclass="button-java-old">Click Me</button>
@@ -69,6 +81,8 @@ Always use the latest version of package! Latest Version: v1.1.7.
69
81
<buttonclass="button-java-old">Click Me</button>
70
82
```
71
83
84
+
#### Full Width
85
+
72
86
- There is also more width style of Java buttons. Add `-w` to the classes. Warning: They might be broken because of the styling of the Documentation.
73
87
74
88
<buttonclass="button-java-w">Click Me</button>
@@ -93,7 +107,7 @@ Always use the latest version of package! Latest Version: v1.1.7.
93
107
</div>
94
108
```
95
109
96
-
**Button Sounds (Java Script)**
110
+
#### Button Sounds (Java Script)
97
111
98
112
- There is click sound in Minecraft called random.click which is for button click. So, to add this to your `button`, you need to add `onclick` event: `onclick="soundOn()"`. Make sure that you linked the Script tag to your file!
0 commit comments