Force a full inventory update...
Greetings fellow Moon coders!
I have recently found a need to perform a full refresh of the active inventory when performing a certain action. This is because I am adding icons to tracked recipes in the inventory and want to be able to dynamically update the appearance as you enable and disable tracking.
The in-game function to "Rescan Bag" does NOT work. It would need to work like switching tabs, which does cause the list to update properly.
I have tried several functions, PlayerInventory:RefreshAllInventorySlots(INVENTORY_BACKPACK) being the latest, but they seem to be private or otherwise do not work and throw errors.
Also, I would need this to be able to update the inventory list regardless of whether it is your backpack, the bank, guild bank, buyback, and preferable the guild stores, though that may be trickier.
Any help would be much appreciated!
|