Remove the now useless ButtonInfo.color value
This commit is contained in:
parent
f43f5569b2
commit
a8c4bf4709
|
@ -8,8 +8,7 @@ import net.minecraft.network.chat.TranslatableComponent
|
||||||
@Retention(AnnotationRetention.RUNTIME)
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
annotation class ButtonInfo(
|
annotation class ButtonInfo(
|
||||||
val parent: Category,
|
val parent: Category,
|
||||||
val kind: Type = Type.TOGGLE,
|
val kind: Type = Type.TOGGLE
|
||||||
val color: Colors = Colors.BLUE
|
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
internal var lightningFactor: Float = 0.33F
|
internal var lightningFactor: Float = 0.33F
|
||||||
|
@ -22,4 +21,4 @@ annotation class ButtonInfo(
|
||||||
MISC("snowy.clickbox.misc", Colors.BLUE),
|
MISC("snowy.clickbox.misc", Colors.BLUE),
|
||||||
RISKY("snowy.clickbox.risky", Colors.RED);
|
RISKY("snowy.clickbox.risky", Colors.RED);
|
||||||
init { ClickGui.components.add(ClickBox(y = 0.0, name = TranslatableComponent(translationKey))) }
|
init { ClickGui.components.add(ClickBox(y = 0.0, name = TranslatableComponent(translationKey))) }
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@ package fr.username404.snowygui.gui.feature
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft
|
import net.minecraft.client.Minecraft
|
||||||
|
|
||||||
@ButtonInfo(Category.RISKY, color = Colors.RED)
|
@ButtonInfo(Category.RISKY)
|
||||||
object NoHurtCamera: ButtonImpl()
|
object NoHurtCamera: ButtonImpl()
|
||||||
|
|
||||||
@ButtonInfo(Category.RISKY, color = Colors.RED)
|
@ButtonInfo(Category.RISKY)
|
||||||
object NoGravity: ButtonImpl() {
|
object NoGravity: ButtonImpl() {
|
||||||
override fun execAction() {
|
override fun execAction() {
|
||||||
Minecraft.getInstance().player?.isNoGravity = this.toggled
|
Minecraft.getInstance().player?.isNoGravity = this.toggled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue