[1.0] Alt view layered icon scaling issue

Place to get help with not working mods / modding interface.
Post Reply
Qon
Smart Inserter
Smart Inserter
Posts: 2118
Joined: Thu Mar 17, 2016 6:27 am
Contact:

[1.0] Alt view layered icon scaling issue

Post by Qon »

With correctly scaled (icon for recipe and item is correctly scaled in inventory and crafting tab) icons, the alt view for entities is at the same time not correctly scaled.
For https://mods.factorio.com/mod/CapsuleAmmo it means the items introduced gets a 1x1 pixel sized icon in alt view on assemblers and in chests even though the code is correct and is using the proper bug workarounds with invisible first layer 69221.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.0] Alt view layered icon scaling issue

Post by posila »

I'm gonna move this to modding help instead of won't fix, so it can be helpful to others.

In GUI, the icon is scaled so that first layer fills the slot.

In game, the icon is rendered with scale you defined it with.

So if you use 1x1px first layer placeholder and configure subsequent layers so that they operate within the 1x1px region, that's what you'll get in the alt-view, while GUI magnifies this to fill the slot.

Either use 32x32px base layer, or set scale 32 to your 1x1px base layer.

Post Reply

Return to “Modding help”