inventory now shows equipped position

Former-commit-id: 10950ffc409accfa914b9f531193b2fac0783f7d
This commit is contained in:
Song Minjae
2017-03-31 17:26:44 +09:00
parent 84f91e6a7a
commit 5bfc5c3a38
4 changed files with 50 additions and 26 deletions

View File

@@ -83,7 +83,8 @@ class UIItemInventoryElem(
// if mouse is over, text lights up
g.color = item!!.nameColour * if (mouseUp) mouseOverTextCol else UIItemTextButton.defaultInactiveCol
g.drawString(
item!!.name + (if (amount > 0 && !item!!.isUnique) "${0x3000.toChar()}($amount)" else "")
item!!.name + (if (amount > 0 && !item!!.isUnique) "${0x3000.toChar()}($amount)" else "") +
(if (equippedSlot != null) " <eq $equippedSlot>" else "")
, posX + textOffsetX
, posY + textOffsetY
)