Page 1 of 1

Fixing unclickable areas in inventory

Posted: Sun Sep 17, 2017 5:11 pm
by Zaflis
How often does it happen to you, that you are trying to move stack of items to your inventory, click it and notice that the stack is still in your hand? That is because there is a 2 pixels wide gap between all the slots.
factorio_uigrid.png
factorio_uigrid.png (166.55 KiB) Viewed 768 times
What i'm proposing is basically making the grid between slots count for nearest slot aswell. How to do that is trivial, but i can't go into too much detail without knowing internals of Factorio. You can incorporate 1 pixel wide transparent border in the inventory slot graphics and make the gap between slots 0 for example. Or even better if the sprite size and clickable area aren't tied together, then it's just a matter of changing a couple numbers in code.