Description
The bug manifests as a strange rendering of recipe icon generated using theCode: Select all
icons
First, when rendering on an assembler in alt-mode, the top layer isn't properly shadowed: Second, when rendering in the crafting menu, the icon spills out of bounds:
How to replicate
A mod with the following `data.lua` file was used to generate this errorCode: Select all
data:extend{
{
type='recipe',
name='crush-brick',
enabled='true',
ingredients = { { 'stone-brick', 1 } },
result = 'stone',
energy_required = 0.5,
category = 'advanced-crafting',
icon_size = 64,
icon_mipmaps = 4,
icons = {
{
icon = '__base__/graphics/icons/stone-brick.png',
icon_size = 64,
icon_mipmaps = 4,
scale = 0.3,
shift = {-7, -7},
},
{
icon = '__base__/graphics/icons/stone.png',
icon_size = 64,
icon_mipmaps = 4,
scale = 0.3,
shift = {7, 7},
},
},
}
}
Expected behavior
The alt-mode recipe graphic should be properly outlined in shadow to maximize legibility.Additionally, the recipe icon should at the very least be clipped to fit within the recipe "button."