From 029382c9b5ce514423729e13969be1ead31f2e0a Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 10 Apr 2021 15:34:30 +0200 Subject: [PATCH] Name the companion object of Element and rename BaseColor to TransparentColor. --- common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f656c41..5d04334 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/Element.kt @@ -9,10 +9,10 @@ abstract class Element( var x: Int, var y: Int, val width: Int, val height: Int ): Renderable { - companion object { + companion object Rendering { @JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance() @JvmStatic protected val buffer: BufferBuilder = tessellator.builder - const val BaseColor: Int = -0x1 + const val TransparentColor: Int = -0x1 } fun display(stack: PoseStack? = null) { if (!hidden) render(stack) } var hidden: Boolean = false