Remove the now useless ButtonInfo.color value

This commit is contained in:
Username404 2021-05-15 00:49:37 +02:00
parent f43f5569b2
commit a8c4bf4709
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 5 additions and 6 deletions

View File

@ -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))) }
}
}

View File

@ -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
}
}
}