mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
inventory ui won't always draw item count
This commit is contained in:
@@ -96,8 +96,8 @@ class UIItemInventoryElemSimple(
|
|||||||
batch.drawStraightLine(barOffset, posY + height - thickness, barOffset + barFullLen * (item!!.durability / item!!.maxDurability), thickness, false)
|
batch.drawStraightLine(barOffset, posY + height - thickness, barOffset + barFullLen * (item!!.durability / item!!.maxDurability), thickness, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
// draw item count when applicable
|
||||||
// draw item count
|
else if (item!!.stackable) {
|
||||||
val amountString = amount.toString()
|
val amountString = amount.toString()
|
||||||
|
|
||||||
// highlight item count (blocks/walls) if the item is equipped
|
// highlight item count (blocks/walls) if the item is equipped
|
||||||
|
|||||||
Reference in New Issue
Block a user