In one of my town Tasks, it defines the following list to access the items in my main inventory.
List<Item> itemlist = Loki.Game.LokiPoe.InGameState.InventoryPanel.Main;
One of the first things that I check is the number of members in itemlist by accessing itemlist.Count()
Somewhere in the task, it goes to an NPC and sells some of the items from the inventory, so the total number of members in itemlist should change.
However, in the next pass of this task, itemlist.Count() sometimes would have the old number of items in my inventory. Do I have to do something in order to update the content in Loki.Game.LokiPoe.InGameState.InventoryPanel.Main?
Thanks.
List<Item> itemlist = Loki.Game.LokiPoe.InGameState.InventoryPanel.Main;
One of the first things that I check is the number of members in itemlist by accessing itemlist.Count()
Somewhere in the task, it goes to an NPC and sells some of the items from the inventory, so the total number of members in itemlist should change.
However, in the next pass of this task, itemlist.Count() sometimes would have the old number of items in my inventory. Do I have to do something in order to update the content in Loki.Game.LokiPoe.InGameState.InventoryPanel.Main?
Thanks.