Add a color argument to the Category enum

This commit is contained in:
Username404-59 2021-05-15 00:08:34 +02:00
parent a023f93b87
commit 9a133f31fe
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 3 deletions

View File

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