UIItemInventoryElemWide: removed temporary equippedslot marker: is unnecessary as we've already got UIItemInventoryEquippedView

This commit is contained in:
minjaesong
2021-09-20 17:10:10 +09:00
parent a532f4601b
commit c63b31e964
5 changed files with 12 additions and 17 deletions

View File

@@ -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