Add a color argument to the Category enum
This commit is contained in:
parent
a023f93b87
commit
9a133f31fe
|
@ -18,8 +18,8 @@ annotation class ButtonInfo(
|
|||
CLICK // TODO Fix the CLICK behaviour
|
||||
}
|
||||
}
|
||||
}; enum class Category(val translationKey: String) {
|
||||
MISC("snowy.clickbox.misc"),
|
||||
RISKY("snowy.clickbox.risky");
|
||||
}; enum class Category(val translationKey: String, val color: Colors) {
|
||||
MISC("snowy.clickbox.misc", Colors.BLUE),
|
||||
RISKY("snowy.clickbox.risky", Colors.RED);
|
||||
init { ClickGui.components.add(ClickBox(y = 0.0, name = TranslatableComponent(translationKey))) }
|
||||
}
|
Loading…
Reference in New Issue