[posila] [0.17.10] Multilayered icon shifts incorrectly while holding it in your hand
Posted: Mon Mar 11, 2019 7:46 pm
Hi,
I have a multilayered icon as shown in the picture below. It is made of two layers: the lower layer is the flare (the red/orange thingy) and the upper layer is made out of the yellow warning sign (in the bottom right). This warning sighn has a slight shift to it (as in, it is not in the center).
The prototype looks like this:
In the above picture, the icon is in my inventory as you can see. When I pick it up (with my cursor) the shifted layer (the warning sign) is slightly shifted less (as in, moved towards the center) as shown in the image below.
I've attached the mod in question to test this out.
Kind regards
lovely_santa
I have a multilayered icon as shown in the picture below. It is made of two layers: the lower layer is the flare (the red/orange thingy) and the upper layer is made out of the yellow warning sign (in the bottom right). This warning sighn has a slight shift to it (as in, it is not in the center).
The prototype looks like this:
Code: Select all
{
type = "item",
name = "corpse-flare",
icons = {
{
icon = "__CorpseFlare__/graphics/icons/corpse-flare-1.png",
icon_size = 176,
scale = 32/176,
},
{
icon = "__CorpseFlare__/graphics/icons/corpse-flare-2.png",
icon_size = 500,
scale = 32/500 * .65,
shift = {7.5,7.5},
}
},
--flags = {},
subgroup = "tool",
order = "z[mining]-z[shovel]",
stack_size = 1
},
I've attached the mod in question to test this out.
Kind regards
lovely_santa