From 4c2487b839a157e02a5156733f75d72c42dc0ef9 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 16 Jul 2021 12:24:27 +0200 Subject: [PATCH] Make the info final variable a jvm field in ButtonImpl.kt --- .../kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt index 8c2099f..6dcf884 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt @@ -53,6 +53,7 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) { field = value hidden = value } + @JvmField val info = this::class.findAnnotation() ?: throw Exception("Missing @ButtonInfo annotaton") override var color = info.parent.categoryColor; get() { return info.parent.box.color.let {