List hidden boxes too in the colors section of the config screen
This commit is contained in:
parent
3b1fe46b12
commit
79a75f7681
|
@ -52,7 +52,7 @@ val SnowyConfigScreen: Screen get() {
|
||||||
}.setTooltip(Component.nullToEmpty("WARNING: Do not use this on servers or you might get banned.")).build()
|
}.setTooltip(Component.nullToEmpty("WARNING: Do not use this on servers or you might get banned.")).build()
|
||||||
).addEntry(startSubCategory(TranslatableComponent("$confPrefix.colors")).also { builder ->
|
).addEntry(startSubCategory(TranslatableComponent("$confPrefix.colors")).also { builder ->
|
||||||
builder.addAll(
|
builder.addAll(
|
||||||
ClickGui.clickboxes.filterNot { it.hidden }.map { box ->
|
ClickGui.clickboxes.map { box ->
|
||||||
startColorField(box.name, box.color).setSaveConsumer {
|
startColorField(box.name, box.color).setSaveConsumer {
|
||||||
box.color = it
|
box.color = it
|
||||||
}.setDefaultValue(Category.values().find {
|
}.setDefaultValue(Category.values().find {
|
||||||
|
|
Loading…
Reference in New Issue