From c54ac5b1f89812335d1729baa1db67486f44c2d4 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 30 Apr 2021 14:58:36 +0200 Subject: [PATCH] Make the color and opacity properties of the ColoredElement class private --- common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt index 2da1772..f51ee69 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt @@ -32,7 +32,7 @@ abstract class Element( var hidden: Boolean = false; protected set } -abstract class ColoredElement(x: Double, y: Double, width: Int, height: Int, val color: Int, val opacity: Float) : Element(x, y, width, height) { +abstract class ColoredElement(x: Double, y: Double, width: Int, height: Int, private val color: Int, private val opacity: Float) : Element(x, y, width, height) { companion object { const val TransparentColor: Int = -0x1 @JvmStatic protected fun VertexConsumer.colorIt(color: Int, opacity: Float = 1F): VertexConsumer {