Add a comment about the buttons limit
This commit is contained in:
parent
06c4dea9be
commit
88f097be01
|
@ -18,7 +18,7 @@ class ClickBox(
|
||||||
x: Double, y: Double,
|
x: Double, y: Double,
|
||||||
private val name: TranslatableComponent? = null
|
private val name: TranslatableComponent? = null
|
||||||
): ColoredElement(x, y, 80, 10, 0x6C9E9D, 0.5F) {
|
): ColoredElement(x, y, 80, 10, 0x6C9E9D, 0.5F) {
|
||||||
val buttons = mutableMapOf<String, ClickButton>()
|
val buttons = mutableMapOf<String, ClickButton>() // Can contain up to 16 buttons
|
||||||
fun addButtons(vararg collect: Pair<String, (() -> Unit)?>, color: Int = 0x6C9E9D, kind: Type = Type.TOGGLE): ClickBox {
|
fun addButtons(vararg collect: Pair<String, (() -> Unit)?>, color: Int = 0x6C9E9D, kind: Type = Type.TOGGLE): ClickBox {
|
||||||
buttons.putAll(
|
buttons.putAll(
|
||||||
collect.map {
|
collect.map {
|
||||||
|
|
Loading…
Reference in New Issue