Add a comment to ClickButton.kt, and another one to ClickBox.kt
This commit is contained in:
parent
d8231aadfb
commit
a417ebe86f
|
@ -33,7 +33,7 @@ class ClickBox(
|
||||||
(x + width), y + height + 3,
|
(x + width), y + height + 3,
|
||||||
color = color, width = 3, height = clickboxHeightOffset - 6,
|
color = color, width = 3, height = clickboxHeightOffset - 6,
|
||||||
opacity = 0.75F
|
opacity = 0.75F
|
||||||
) {
|
) { // TODO Fix the progress bar when scrolling a lot
|
||||||
override fun render(poseStack: PoseStack?) {
|
override fun render(poseStack: PoseStack?) {
|
||||||
RenderSystem.disableTexture()
|
RenderSystem.disableTexture()
|
||||||
RenderSystem.enableBlend()
|
RenderSystem.enableBlend()
|
||||||
|
|
|
@ -19,7 +19,7 @@ class ClickButton(
|
||||||
companion object {
|
companion object {
|
||||||
enum class Type {
|
enum class Type {
|
||||||
TOGGLE,
|
TOGGLE,
|
||||||
CLICK
|
CLICK // TODO Fix the CLICK behaviour
|
||||||
}
|
}
|
||||||
internal var lightningFactor: Float = 0.33F
|
internal var lightningFactor: Float = 0.33F
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue