From 81f492318597f5edbe5d510ae94d8f76ce68492a Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 15 May 2021 01:57:21 +0200 Subject: [PATCH] Remove a TODO comment and remove the usage of ApiStatus.Internal in ButtonImpl.kt --- .../kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt | 4 ++-- .../kotlin/fr/username404/snowygui/gui/feature/ButtonImpl.kt | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt index 7ba22cb..6501475 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt @@ -27,7 +27,7 @@ class ClickBox( (x + width), y + height + 3, color = color, width = 3, height = clickboxHeightOffset - 6, opacity = 0.75F - ) { // TODO Fix the progress bar when scrolling a lot + ) { override fun render(poseStack: PoseStack?) { RenderSystem.disableTexture() RenderSystem.enableBlend() @@ -106,4 +106,4 @@ class ClickBox( } } init { baseXAxis += 86 } -} \ No newline at end of file +} 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 9e50dd1..f5238dd 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 @@ -9,11 +9,8 @@ import fr.username404.snowygui.gui.FontUtil import fr.username404.snowygui.gui.Renderable.Rendering.defaultRectFunc import fr.username404.snowygui.gui.elements.ClickBox import fr.username404.snowygui.gui.feature.ButtonInfo.Companion.Type -import org.jetbrains.annotations.ApiStatus import kotlin.reflect.full.findAnnotation - -@ApiStatus.Internal abstract class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) { private val info = this::class.findAnnotation() ?: throw Exception("Missing @Button annotaton") override var color = info.parent.categoryColor