Page 1 of 1

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

Posted: Sun Jul 14, 2019 12:30 am
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
        }

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

Posted: Sun Jul 14, 2019 6:11 am
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)

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

Posted: Sun Jul 14, 2019 12:57 pm
by TheFunnySide
Thank you for your time. I was able to fix with your advice