is_visible filter for choose-elem-button filters
Posted: Wed Sep 02, 2026 9:37 pm
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.
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.