inventory ui: getting actor is now dynamic

This commit is contained in:
minjaesong
2021-08-28 17:10:36 +09:00
parent b84a0a770b
commit 043bd3a1db
4 changed files with 34 additions and 34 deletions

View File

@@ -136,7 +136,7 @@ internal class UIStorageChest : UICanvas(
itemListChest = UIItemInventoryItemGrid(
this,
catBar,
getFixtureInventory(),
{ getFixtureInventory() },
INVENTORY_CELLS_OFFSET_X - halfSlotOffset,
INVENTORY_CELLS_OFFSET_Y,
6, CELLS_VRT,
@@ -153,7 +153,7 @@ internal class UIStorageChest : UICanvas(
itemListPlayer = UIItemInventoryItemGrid(
this,
catBar,
Terrarum.ingame!!.actorNowPlaying!!.inventory, // literally a player's inventory
{ Terrarum.ingame!!.actorNowPlaying!!.inventory }, // literally a player's inventory
INVENTORY_CELLS_OFFSET_X - halfSlotOffset + (listGap + UIItemInventoryElem.height) * 7,
INVENTORY_CELLS_OFFSET_Y,
6, CELLS_VRT,