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)
|
||||
annotation class ButtonInfo(
|
||||
val parent: Category,
|
||||
val kind: Type = Type.TOGGLE,
|
||||
val color: Colors = Colors.BLUE
|
||||
val kind: Type = Type.TOGGLE
|
||||
) {
|
||||
companion object {
|
||||
internal var lightningFactor: Float = 0.33F
|
||||
|
@ -22,4 +21,4 @@ annotation class ButtonInfo(
|
|||
MISC("snowy.clickbox.misc", Colors.BLUE),
|
||||
RISKY("snowy.clickbox.risky", Colors.RED);
|
||||
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
|
||||
|
||||
@ButtonInfo(Category.RISKY, color = Colors.RED)
|
||||
@ButtonInfo(Category.RISKY)
|
||||
object NoHurtCamera: ButtonImpl()
|
||||
|
||||
@ButtonInfo(Category.RISKY, color = Colors.RED)
|
||||
@ButtonInfo(Category.RISKY)
|
||||
object NoGravity: ButtonImpl() {
|
||||
override fun execAction() {
|
||||
Minecraft.getInstance().player?.isNoGravity = this.toggled
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue