mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
proper way of setting quickslot #
Former-commit-id: 5cd21f043def3c7622290df5bf11f0b3f0080d30
This commit is contained in:
@@ -23,6 +23,7 @@ class UIItemInventoryElem(
|
||||
var item: InventoryItem?,
|
||||
var amount: Int,
|
||||
var itemImage: Image?,
|
||||
val mouseOverTextCol: Color = Color(0xfff066),
|
||||
val mouseoverBackCol: Color = Color(0,0,0,0),
|
||||
val mouseoverBackBlendMode: String = BlendMode.NORMAL,
|
||||
val backCol: Color = Color(0,0,0,0),
|
||||
@@ -80,7 +81,7 @@ class UIItemInventoryElem(
|
||||
g.drawImage(itemImage!!, posX + imgOffset, posY + imgOffset)
|
||||
|
||||
// if mouse is over, text lights up
|
||||
g.color = item!!.nameColour * if (mouseUp) Color(0xffffff) else UIItemTextButton.defaultInactiveCol
|
||||
g.color = item!!.nameColour * if (mouseUp) mouseOverTextCol else UIItemTextButton.defaultInactiveCol
|
||||
g.drawString(
|
||||
item!!.name + (if (amount > 0 && !item!!.isUnique) "${0x3000.toChar()}($amount)" else "")
|
||||
, posX + textOffsetX
|
||||
|
||||
Reference in New Issue
Block a user