data:extend(
{
{
type = "item-subgroup",
name = "virtual-signal-technology",
group = "signals",
order = "t"
}
})
for _, technology in pairs(data.raw["technology"]) do
local icon = technology.icon
local icon_size = technology.icon_size or 64
if icon == nil then
icon = technology.icons[1].icon
icon_size = technology.icons[1].icon_size
end
data:extend({
{
type = "virtual-signal",
name = technology.name,
icon = icon,
icon_size = icon_size,
subgroup = "virtual-signal-technology",
localised_name = technology.localised_name or {"technology-name." .. technology.name},
order = technology.name
}
})
end