Store the Category enum class in the companion object of ButtonInfo
This commit is contained in:
parent
2d679bf0e3
commit
dbc7f6b8bf
|
@ -20,8 +20,7 @@ annotation class ButtonInfo(
|
||||||
TOGGLE,
|
TOGGLE,
|
||||||
CLICK
|
CLICK
|
||||||
}
|
}
|
||||||
}
|
enum class Category(val translationKey: String, val categoryColor: Int, val shouldHide: Boolean = false) {
|
||||||
}; enum class Category(val translationKey: String, val categoryColor: Int, val shouldHide: Boolean = false) {
|
|
||||||
MISC("snowy.clickbox.misc", Colors.BLUE),
|
MISC("snowy.clickbox.misc", Colors.BLUE),
|
||||||
RISKY("snowy.clickbox.risky", Colors.RED, !riskyCheats),
|
RISKY("snowy.clickbox.risky", Colors.RED, !riskyCheats),
|
||||||
MACROS("snowy.clickbox.macros", Colors.GREEN);
|
MACROS("snowy.clickbox.macros", Colors.GREEN);
|
||||||
|
@ -45,3 +44,7 @@ annotation class ButtonInfo(
|
||||||
ClickGui.components.add(box.apply { if (shouldHide) hidden = true })
|
ClickGui.components.add(box.apply { if (shouldHide) hidden = true })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
typealias Category = ButtonInfo.Companion.Category
|
Loading…
Reference in New Issue