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
a month ago
2.1
70
Mining

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

a month 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.

a month 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

a month 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
a month 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:
lua 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

Can you correct it? Do you want to be granted permission to update?

a month ago

If you don't mind, it's fine by me.

New response