Closed bell07 closed 5 years ago
Because there's no event callback when you open the inventory up.
But there should be a way to trigger the update. Even I search for a string and reset the search the crafting guide does not know the added aspen tree. My proposal is the redo progessive check at least the reset button is pressed.
Using a button to actualize is not the best approach. Instead the engine should have a callback when the inventory is opened. @rubenwardy maybe? (I don't have the ability to submit PRs anymore).
Since the inventory is client-side that would probably have to wait until we get server sent client mods.
Maybe the ideal solution would be to update the progressive items when a new item type is added to the inventory or the last item of some type is removed from the inventory. We would need a new callback for this too, similar to on_player_inventory_action
, but it needs to be called for any addition/removal, not just when the player adds/removes an item from their inventory.
Steps to reproduce:
Please also note the progressive selection should be refresheable in case of active search using search button