[0.17.56]Sprite ignores "extra-high-no-scale"

Place to get help with not working mods / modding interface.
Post Reply
TheFunnySide
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Jun 08, 2019 1:19 pm
Contact:

[0.17.56]Sprite ignores "extra-high-no-scale"

Post by TheFunnySide »

I have a "burned_brick_icon.png" with the dimensions 64x64 and display it in my GUI.
But in the atlas it only has 44x48 pixels and displays with artefacts of other sprites.

Code: Select all

        {
            type = "sprite",
            name = "burned_brick_icon",
            filename = "__Annotorio__/graphics/icons/burned_brick_icon.png",
            priority = "extra-high-no-scale",
            width = 64,
            height = 64
        }
Attachments
bug.jpg
bug.jpg (350.6 KiB) Viewed 1023 times

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

Re: [0.17.56]Sprite ignores "extra-high-no-scale"

Post by posila »

The underlying problem is that the sprite got cropped (transparent pixels on borders got removed), so you need flags = { "no-crop" }, but since you use it as a icon in GUI, you should use flags = { "icon" } (which implies no-crop)

TheFunnySide
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Jun 08, 2019 1:19 pm
Contact:

Re: [0.17.56]Sprite ignores "extra-high-no-scale"

Post by TheFunnySide »

Thank you for your time. I was able to fix with your advice

Post Reply

Return to “Modding help”