q&d fix for spinner initialise to blank label on crafting ui

This commit is contained in:
minjaesong
2022-06-29 02:53:17 +09:00
parent 9edfc90ad8
commit 068721376f
7 changed files with 65 additions and 37 deletions

View File

@@ -37,9 +37,9 @@ class UIItemCraftingCandidateGrid(
internal val recipesSortList = ArrayList<CraftingCodex.CraftingRecipe>() // a dual to the [inventorySortList] which contains the actual recipes instead of crafting recipes
fun highlightButton(button: UIItemInventoryCellBase) {
fun highlightButton(button: UIItemInventoryCellBase?) {
items.forEach { it.forceHighlighted = false }
button.forceHighlighted = true
button?.forceHighlighted = true
}
override fun rebuild(filter: Array<String>) {