There is currently no easy way to create a selectable UI like choose-elem-button that only shows items (or recipes) that are visible to the current force.
In short, I am looking to create a UI element that would show the same as what a player force sees in the crafting side of the inventory for certain groups and returns an item that they select. If this is already implemented in some element, I would use that instead. The only options I can think of are either a choose-elem-button with a new filter for is_visible or a custom UI, right now.
Possibly a custom-managed inventory, I guess? If there is an on-clicked/selected event for each slot.
is_visible filter for choose-elem-button filters
Re: is_visible filter for choose-elem-button filters
Unfortunately the current filter system doesn't support runtime information. All of the filters and filtering provided for mods to use references values that don't change runtime. That's to say: the filters do not have any reference to the force-based visibility of things and adding it would require reworking the filter system. I don't see that happening any time soon, if ever.
If you want to get ahold of me I'm almost always on Discord.
Re: is_visible filter for choose-elem-button filters
Awesome -- I appreciate the details. I can work with that.

