diff --git a/changelog.txt b/changelog.txt index 79111fd..820c3e3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Date: ???? - Updated Simplified Chinese locale courtesy of @alone on Discord - Add compatibility with AAI Signal Transmission. Now researched after logistics science and uses contemporary ingredients + - Recipe signals are now sorted into their own item-group in the crafting tab --------------------------------------------------------------------------------------------------- Version: 3.0.39 Date: 2025-09-15 diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 81affff..0f530b0 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -124,6 +124,7 @@ if create_signal_mode then end end end + recipe.subgroup = "py-recipes" recipe.hide_from_signal_gui = false end end diff --git a/data.lua b/data.lua index 50ebf18..4f34740 100644 --- a/data.lua +++ b/data.lua @@ -1,3 +1,4 @@ +require("prototypes.item-groups") require("prototypes.custom-input") -- Log all mods & versions, Alien Biomes already does this so we skip if it is active if not mods["alien-biomes"] then diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index ad74603..99bfdd3 100644 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -32,3 +32,6 @@ recipe-amount=(__1__ ×) __2__ [modifier-description] change-recipe-productivity=__1__ productivity: __2__ + +[item-group-name] +py-postprocessing=Py Postprocessing diff --git a/prototypes/item-groups.lua b/prototypes/item-groups.lua new file mode 100644 index 0000000..bd478c0 --- /dev/null +++ b/prototypes/item-groups.lua @@ -0,0 +1,20 @@ +local create_signal_mode = settings.startup["pypp-extended-recipe-signals"].value + +if create_signal_mode then + data:extend { + { + type = "item-group", + name = "py-postprocessing", + order = "v", + inventory_order = "v", + icon = "__pycoalprocessinggraphics__/graphics/icons/automated-factory-mk01.png", + icon_size = 64 + }, + { + type = "item-subgroup", + name = "py-recipes", + group = "py-postprocessing", + order = "a-a" + }, + } +end