Move Alt Icon Below


Render the item icons of all buildings in Alt viewing mode to the bottom of the device, compatible with all original/mod machines

Tweaks
7 hours ago
2.1
0
Mining

b alt images for inserters are offset when there is a quality filter

7 hours ago

When an inserter is set with a filter that has a specific quality (or even only quality with no item), the alt image gets shifted down and the size of the quality indicator may be wrong.

6 hours ago

When an inserter is set with a filter that has a specific quality (or even only quality with no item), the alt image gets shifted down and the size of the quality indicator may be wrong.
UP

an hour ago

There was another similar issue with chests. I realized it's not enough to mark what categories of items should be included, because chests can come in various sizes. The real solution is to check if the item is too small to have the icon shifted (ie. height of 1 tile). I'm not sure if this is the best solution but this worked for me:

if table.contains(entity_proto.flags or {}, "player-creation") then
                local bounding_box = entity_proto.selection_box
                if bounding_box and bounding_box[2][2] - bounding_box[1][2] > 1 then

New response