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

@@ -56,7 +56,7 @@ class UIItemInventoryElemSimple(
}
// cell border
batch.color = if (equippedSlot != null || forceHighlighted) Toolkit.Theme.COL_HIGHLIGHT
else if (mouseUp) Toolkit.Theme.COL_ACTIVE
else if (mouseUp && item != null) Toolkit.Theme.COL_ACTIVE
else Toolkit.Theme.COL_INVENTORY_CELL_BORDER
Toolkit.drawBoxBorder(batch, posX, posY, width, height)
@@ -96,7 +96,7 @@ class UIItemInventoryElemSimple(
// highlight item count (blocks/walls) if the item is equipped
batch.color = item!!.nameColour mul (
if (equippedSlot != null || forceHighlighted) Toolkit.Theme.COL_HIGHLIGHT
else if (mouseUp) Toolkit.Theme.COL_ACTIVE
else if (mouseUp && item != null) Toolkit.Theme.COL_ACTIVE
else Color.WHITE
)