Page 1 of 1

[posila] [0.17.10] Multilayered icon shifts incorrectly while holding it in your hand

Posted: Mon Mar 11, 2019 7:46 pm
by lovely_santa
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:

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
  },
unknown.png
unknown.png (40.62 KiB) Viewed 1562 times
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.
unknown (1).png
unknown (1).png (33.62 KiB) Viewed 1562 times
I've attached the mod in question to test this out.

Kind regards
lovely_santa

Re: [posila] [0.17.10] Multilayered icon shifts incorrectly while holding it in your hand

Posted: Wed May 15, 2019 1:17 pm
by posila
Thansk for the report.
Fixed for 0.17.40 by fix for with 67210