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
|
||||||
|
|
|
@ -2,10 +2,10 @@ 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