Make the info final variable a jvm field in ButtonImpl.kt

This commit is contained in:
Username404 2021-07-16 12:24:27 +02:00
parent 56255825e2
commit 4c2487b839
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 0 deletions

View File

@ -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<ButtonInfo>() ?: throw Exception("Missing @ButtonInfo annotaton")
override var color = info.parent.categoryColor; get() {
return info.parent.box.color.let {