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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

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

Post 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 1550 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 1550 times
I've attached the mod in question to test this out.

Kind regards
lovely_santa
Attachments
CorpseFlare_0.1.3.zip
(290.93 KiB) Downloaded 83 times
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image

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

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

Post by posila »

Thansk for the report.
Fixed for 0.17.40 by fix for with 67210

Post Reply

Return to “Resolved Problems and Bugs”