Remove a TODO comment and remove the usage of ApiStatus.Internal in ButtonImpl.kt
This commit is contained in:
parent
b524693b2a
commit
81f4923185
|
@ -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()
|
||||
|
|
|
@ -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<ButtonInfo>() ?: throw Exception("Missing @Button annotaton")
|
||||
override var color = info.parent.categoryColor
|
||||
|
|
Loading…
Reference in New Issue