foxnne / pixi

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

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

Open VisenDev opened 1 year ago

VisenDev commented 1 year 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 1 year 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 1 year 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 1 year 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.

foxnne commented 3 months ago

I think @slimsag had a better suggestion for this: we need a config file for a "project". It shouldn't be required for pixi to allow editing files and exporting simple things, but maybe it should be required to use the packing functionality. If a .pixiproject file is located in the root folder, it will be read for project specific settings, such as export file names and paths, ldtk compatibility, etc.