diff --git a/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt b/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt index a29475a..ca8bc55 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/ClickGui.kt @@ -17,7 +17,7 @@ internal fun newBox(translationKey: String): ClickBox { object ClickGui: SnowyScreen() { private var GuiDragging: Boolean = false override val components = mutableSetOf() - fun addComps(vararg toAdd: Element) = components.addAll(toAdd) + internal fun addComps(vararg toAdd: Element) = components.addAll(toAdd) private inline fun boxContext(args: (ClickBox) -> Unit) = components.filterIsInstance().forEach(args) private inline fun buttonsContext(args: (ClickButton) -> Unit) = boxContext { it.buttons.values.forEach(args) }