From 9a133f31fe845d5c8ee378fb5ccb5601a8ee6508 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 15 May 2021 00:08:34 +0200 Subject: [PATCH] Add a color argument to the Category enum --- .../fr/username404/snowygui/gui/feature/ButtonInfo.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt index 6feded0..73c79cc 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/ButtonInfo.kt @@ -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))) } } \ No newline at end of file