Add a comment about the buttons limit

This commit is contained in:
Username404-59 2021-05-04 18:45:41 +02:00
parent 06c4dea9be
commit 88f097be01
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class ClickBox(
x: Double, y: Double,
private val name: TranslatableComponent? = null
): 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 {
buttons.putAll(
collect.map {