From 88f097be014bba81726043869552b54cb17122ad Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 4 May 2021 18:45:41 +0200 Subject: [PATCH] Add a comment about the buttons limit --- .../kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt index 09e597f..f19ceb2 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt @@ -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() + val buttons = mutableMapOf() // Can contain up to 16 buttons fun addButtons(vararg collect: Pair Unit)?>, color: Int = 0x6C9E9D, kind: Type = Type.TOGGLE): ClickBox { buttons.putAll( collect.map {