I'm creating a LUA code generator with a GUI to allow drag/drop rearranging of groups/subsgroups/icons in the players crafting window.
I want to make sure I understand the functionality around Item/fluid subgroups and Recipe subgroups - particularly how it affects when & where icons are shown in the players Crafting window.
Does the following sound correct?
- Group icons (Logistics, Production etc.) appear only if its LuaGroup.subgroups is not empty.
- Subgroups appear only if at least one item/fluid/recipe is assigned to it.
- If a Recipe has a subgroup defined, it overrides the Item/Fluid subgroup - the Item/Fluid being selected by Recipe.result rather than Recipe.name. What happens where there are mulitple products? (Recipe.results)
- If multiple recipes have the same resulting product, each recipe without a subgroup will use the subgroup of that resulting product.
- If no subgroup is assigned at all, the icon appears in the unsorted "?" group.