Seefaaa / aseprite-dmi

This project is a DMI (BYOND's Dream Maker icon files) editor extension for Aseprite, a popular pixel art tool. It is built with Rust and Lua, and is designed to enhance the Aseprite experience by providing tools for editing and managing DMI files.
GNU General Public License v3.0
19 stars 1 forks source link

Transparency problem #7

Closed Boopideedoo closed 4 months ago

Boopideedoo commented 4 months ago

I am unable to make the state of the dmi file transparent when needed as aesprite loves to not allow it to how its supposed to be. Mind taking a look at it and seeing if anything can be done to fix it?

Seefaaa commented 4 months ago

Normally, you can make states transparent. Its only rendered wrong in dialog and thats Aseprite's issue since you cannot draw transparent on dialog canvas. Aseprite messes up the alpha channel of the image when drawing it to the canvas.

But you can still save transparency even if its looking wrong on dialog. So I made a workaround for this and currenly this is the best I can do.

See this post on Aseprite's forum.

This is what it looks like when I include the alpha channel in dialog: image

This is what I can achieve best in dialog: image

This is how it is actually when you open the state in editor: image

This is the proof that it works fine in Dream Maker: image

Boopideedoo commented 4 months ago

Ah ok thanks for letting me know! I will try the same workaround.

Seefaaa commented 4 months ago

I have now completely fixed this problem in here 9fd155e0a4ba3bc0ea0cf26fa294cee5b5f8de47 and it will be fixed properly in the next release.