mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
UIItemInventoryElemWide: removed temporary equippedslot marker: is unnecessary as we've already got UIItemInventoryEquippedView
This commit is contained in:
@@ -38,7 +38,7 @@ class UIItemInventoryElemSimple(
|
||||
) : UIItemInventoryCellBase(parentUI, initialX, initialY, item, amount, itemImage, quickslot, equippedSlot, keyDownFun, touchDownFun) {
|
||||
|
||||
companion object {
|
||||
val height = UIItemInventoryElem.height
|
||||
val height = UIItemInventoryElemWide.height
|
||||
}
|
||||
|
||||
override val width = UIItemInventoryElemSimple.height
|
||||
@@ -91,7 +91,7 @@ class UIItemInventoryElemSimple(
|
||||
// draw durability metre
|
||||
val barFullLen = width
|
||||
val barOffset = posX.toFloat()
|
||||
val thickness = UIItemInventoryElem.durabilityBarThickness
|
||||
val thickness = UIItemInventoryElemWide.durabilityBarThickness
|
||||
val percentage = item!!.durability / item!!.maxDurability
|
||||
val durabilityCol = UIItemInventoryCellCommonRes.getHealthMeterColour(percentage, 0f, 1f)
|
||||
val durabilityBack = durabilityCol mul UIItemInventoryCellCommonRes.meterBackDarkening
|
||||
|
||||
Reference in New Issue
Block a user