Equipment image layer shift issue

Place to get help with not working mods / modding interface.
Post Reply
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Equipment image layer shift issue

Post by moon69 »

How can I shift my equipment mask?
"no-crop"
"no-crop"
Fusion-no-crop.png (32.48 KiB) Viewed 677 times
The mask image is 128 x 128 like the base image...

Code: Select all

    sprite = {
      layers = {
        {filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", height = 128, priority = "medium", width = 128},
        {
          filename = "__TestMod__/graphics/fusion-reactor-equipment-mask.png",
          flags = {"no-crop", "mask"},
          height = 128,
          priority = "medium",
          tint = {a = 0.5, b = 0.1, g = 0.1, r = 0.9},
          width = 128
        }
      }
    }
Since I specify "no-crop" I expected that shift would be not required, but I did notice in the in-game protoype explorer gui (ctrl+shift+F), that the base image sprite does pick up a {0.0625, 0.125} shift from somewhere. So I added a shift to the mask sprite definition to no visible effect (even at {0.5, 0.5}).

The other oddity in the prototype explorer for the mask sprite was that the "flags" showed only "no-crop" but not "mask" (that being said I've no idea what "mask" is supposed to actually do!).

Post Reply

Return to “Modding help”