less fancy inventory transition WIP

This commit is contained in:
minjaesong
2020-08-22 18:23:17 +09:00
parent ba424accf2
commit dd1989320d
24 changed files with 153 additions and 132 deletions

View File

@@ -22,8 +22,8 @@ import net.torvald.terrarum.ui.UIItemTextButton
*/
class UIItemInventoryElemSimple(
parentUI: UIInventoryFull,
override var posX: Int,
override var posY: Int,
initialX: Int,
initialY: Int,
override var item: GameItem?,
override var amount: Int,
override var itemImage: TextureRegion?,
@@ -37,7 +37,7 @@ class UIItemInventoryElemSimple(
override var quickslot: Int? = null,
override var equippedSlot: Int? = null,
val drawBackOnNull: Boolean = true
) : UIItemInventoryCellBase(parentUI, posX, posY, item, amount, itemImage, quickslot, equippedSlot) {
) : UIItemInventoryCellBase(parentUI, initialX, initialY, item, amount, itemImage, quickslot, equippedSlot) {
// deal with the moving position
override var oldPosX = posX