foxnne / pixi

Pixel art editor made with Zig.
https://foxnne.github.io/pixi/
MIT License
645 stars 20 forks source link

Proposal - Allow specifying name and export location of the generated atlas file #22

Open VisenDev opened 9 months ago

VisenDev commented 9 months ago

It would be nice to have some functionality which would allow you to specify where the atlas file is sent to, and what it is called

foxnne commented 9 months ago

I think this may just be an issue of how I set it up, but when you click Export on the Pack window, it should open a native file dialog to select where you want the atlas to be saved. The name you input here will be the name of the exported atlas and image. It's just not clear that all you need to input is a name with no extension as .png will be added to the name for the image and .atlas for the atlas.

VisenDev commented 9 months ago

the name you input here will be the name of the exported atlas and image

Yes, I know you can specify where the output folder is, what I meant is using a different folder for the exported png and for the exported JSON data

For example, putting the png in the images folder of your game, and the .atlas in config

and what it is called

By this I meant that you could specify a custom name for the exported atlas, such as textures.json instead of using .atlas

Hope that clarifies

foxnne commented 9 months ago

Ah okay! Yes that does. I'll have to think about the best way to go about it, but I think that's doable.